2018-04-28 21:57:07 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using Newtonsoft.Json;
|
2018-04-24 01:31:01 +10:00
|
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
|
namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource
|
2018-04-24 01:31:01 +10:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents the culture variation information on a content item
|
|
|
|
|
|
/// </summary>
|
2020-02-06 14:40:46 +01:00
|
|
|
|
public class CultureVariation
|
2018-04-24 01:31:01 +10:00
|
|
|
|
{
|
2020-06-02 21:35:19 +12:00
|
|
|
|
[JsonProperty("nm")]
|
2018-04-24 01:31:01 +10:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
2020-06-02 21:35:19 +12:00
|
|
|
|
[JsonProperty("us")]
|
2019-03-05 11:15:30 +01:00
|
|
|
|
public string UrlSegment { get; set; }
|
|
|
|
|
|
|
2020-06-02 21:35:19 +12:00
|
|
|
|
[JsonProperty("dt")]
|
2018-04-28 21:57:07 +02:00
|
|
|
|
public DateTime Date { get; set; }
|
2018-12-13 15:08:12 +01:00
|
|
|
|
|
2020-06-02 21:35:19 +12:00
|
|
|
|
[JsonProperty("isd")]
|
2018-12-13 15:08:12 +01:00
|
|
|
|
public bool IsDraft { get; set; }
|
2020-06-02 21:35:19 +12:00
|
|
|
|
|
|
|
|
|
|
//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; } }
|
2018-04-24 01:31:01 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|