Files
Umbraco-CMS/src/Umbraco.Infrastructure.PublishedCache/NuCache/DataSource/PropertyData.cs

29 lines
788 B
C#
Raw Normal View History

using System;
using Newtonsoft.Json;
2017-12-07 13:22:32 +01:00
namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
internal class PropertyData
{
2018-05-08 11:06:07 +02:00
private string _culture;
private string _segment;
2018-04-21 09:57:28 +02:00
[JsonProperty("culture")]
2018-05-08 11:06:07 +02:00
public string Culture
{
get => _culture;
set => _culture = value ?? throw new ArgumentNullException(nameof(value)); // TODO: or fallback to string.Empty? CANNOT be null
2018-05-08 11:06:07 +02:00
}
2017-12-07 13:22:32 +01:00
[JsonProperty("seg")]
2018-05-08 11:06:07 +02:00
public string Segment
{
get => _segment;
set => _segment = value ?? throw new ArgumentNullException(nameof(value)); // TODO: or fallback to string.Empty? CANNOT be null
2018-05-08 11:06:07 +02:00
}
2017-12-07 13:22:32 +01:00
[JsonProperty("val")]
public object Value { get; set; }
}
2018-04-21 09:57:28 +02:00
}