This commit is contained in:
Stephan
2018-05-08 11:06:07 +02:00
parent 389fb100bb
commit 6051891280
10 changed files with 83 additions and 69 deletions

View File

@@ -5,11 +5,22 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
internal class PropertyData
{
private string _culture;
private string _segment;
[JsonProperty("culture")]
public string Culture { get; set; }
public string Culture
{
get => _culture;
set => _culture = value ?? throw new ArgumentNullException(nameof(value)); // fixme or fallback to string.Empty? CANNOT be null
}
[JsonProperty("seg")]
public string Segment { get; set; }
public string Segment
{
get => _segment;
set => _segment = value ?? throw new ArgumentNullException(nameof(value)); // fixme or fallback to string.Empty? CANNOT be null
}
[JsonProperty("val")]
public object Value { get; set; }