Files
Umbraco-CMS/src/Umbraco.PublishedCache.NuCache/DataSource/CultureVariation.cs

37 lines
1.0 KiB
C#
Raw Normal View History

2018-04-28 21:57:07 +02:00
using System;
using Newtonsoft.Json;
namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource
{
/// <summary>
/// Represents the culture variation information on a content item
/// </summary>
public class CultureVariation
{
[JsonProperty("nm")]
public string Name { get; set; }
[JsonProperty("us")]
2019-03-05 11:15:30 +01:00
public string UrlSegment { get; set; }
[JsonProperty("dt")]
2018-04-28 21:57:07 +02:00
public DateTime Date { get; set; }
[JsonProperty("isd")]
public bool IsDraft { get; set; }
//Legacy properties used to deserialize existing nucache db entries
[JsonProperty("name")]
private string LegacyName { set { Name = value; } }
[JsonProperty("urlSegment")]
private string LegacyUrlSegment { set { UrlSegment = value; } }
[JsonProperty("date")]
private DateTime LegacyDate { set { Date = value; } }
[JsonProperty("isDraft")]
private bool LegacyIsDraft { set { IsDraft = value; } }
}
}