From int languageId to string culture
This commit is contained in:
@@ -159,7 +159,7 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
|
||||
pdatas.Add(pdata);
|
||||
|
||||
var type = PrimitiveSerializer.Char.ReadFrom(stream);
|
||||
pdata.LanguageId = (int?) ReadObject(type, stream);
|
||||
pdata.Culture = (string) ReadObject(type, stream);
|
||||
type = PrimitiveSerializer.Char.ReadFrom(stream);
|
||||
pdata.Segment = (string) ReadObject(type, stream);
|
||||
type = PrimitiveSerializer.Char.ReadFrom(stream);
|
||||
@@ -211,7 +211,7 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
|
||||
// write each value
|
||||
foreach (var pdata in kvp.Value)
|
||||
{
|
||||
WriteObject(pdata.LanguageId, stream);
|
||||
WriteObject(pdata.Culture, stream);
|
||||
WriteObject(pdata.Segment, stream);
|
||||
WriteObject(pdata.Value, stream);
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
|
||||
{
|
||||
internal class PropertyData
|
||||
{
|
||||
[JsonProperty("lang")]
|
||||
public int? LanguageId { get; set; }
|
||||
[JsonProperty("culture")]
|
||||
public string Culture { get; set; }
|
||||
|
||||
[JsonProperty("seg")]
|
||||
public string Segment { get; set; }
|
||||
@@ -13,4 +13,4 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
|
||||
[JsonProperty("val")]
|
||||
public object Value { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user