2021-10-07 20:40:47 +02:00
|
|
|
using System;
|
2018-06-13 15:17:31 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Runtime.Serialization;
|
2018-06-13 20:19:18 +02:00
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
namespace Umbraco.Cms.Core.Models.ContentEditing
|
2018-06-13 15:17:31 +02:00
|
|
|
{
|
2018-06-13 20:19:18 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// The dictionary display model
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataContract(Name = "dictionary", Namespace = "")]
|
|
|
|
|
public class DictionaryDisplay : EntityBasic, INotificationModel
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="DictionaryDisplay"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DictionaryDisplay()
|
|
|
|
|
{
|
2020-10-29 12:45:35 +01:00
|
|
|
Notifications = new List<BackOfficeNotification>();
|
|
|
|
|
Translations = new List<DictionaryTranslationDisplay>();
|
2021-10-07 20:40:47 +02:00
|
|
|
ContentApps = new List<ContentApp>();
|
2018-06-13 20:19:18 +02:00
|
|
|
}
|
|
|
|
|
|
2018-06-13 15:17:31 +02:00
|
|
|
/// <inheritdoc />
|
2018-06-13 20:19:18 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// This is used to add custom localized messages/strings to the response for the app to use for localized UI purposes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataMember(Name = "notifications")]
|
2020-01-20 11:37:19 +01:00
|
|
|
public List<BackOfficeNotification> Notifications { get; private set; }
|
2018-06-13 20:19:18 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the parent id.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataMember(Name = "parentId")]
|
|
|
|
|
public new Guid ParentId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the translations.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataMember(Name = "translations")]
|
|
|
|
|
public List<DictionaryTranslationDisplay> Translations { get; private set; }
|
2021-10-07 20:40:47 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Apps for the dictionary item
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataMember(Name = "apps")]
|
|
|
|
|
public List<ContentApp> ContentApps { get; private set; }
|
2018-06-13 20:19:18 +02:00
|
|
|
}
|
|
|
|
|
}
|