Files
Umbraco-CMS/src/Umbraco.Infrastructure/Models/ContentEditing/DictionarySave.cs

40 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Umbraco.Web.Models.ContentEditing
{
/// <summary>
/// Dictionary Save model
/// </summary>
[DataContract(Name = "dictionary", Namespace = "")]
public class DictionarySave : EntityBasic
{
/// <summary>
/// Initializes a new instance of the <see cref="DictionarySave"/> class.
/// </summary>
public DictionarySave()
{
this.Translations = new List<DictionaryTranslationSave>();
}
/// <summary>
/// Gets or sets a value indicating whether name is dirty.
/// </summary>
[DataMember(Name = "nameIsDirty")]
public bool NameIsDirty { get; set; }
/// <summary>
/// Gets the translations.
/// </summary>
[DataMember(Name = "translations")]
public List<DictionaryTranslationSave> Translations { get; private set; }
/// <summary>
/// Gets or sets the parent id.
/// </summary>
[DataMember(Name = "parentId")]
public new Guid ParentId { get; set; }
}
}