using System; using System.ComponentModel; using System.Runtime.Serialization; namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "relation", Namespace = "")] public class RelationDisplay { /// /// Gets or sets the Parent Id of the Relation (Source). /// [DataMember(Name = "parentId")] [ReadOnly(true)] public int ParentId { get; set; } /// /// Gets or sets the Parent Name of the relation (Source). /// [DataMember(Name = "parentName")] [ReadOnly(true)] public string? ParentName { get; set; } /// /// Gets or sets the Child Id of the Relation (Destination). /// [DataMember(Name = "childId")] [ReadOnly(true)] public int ChildId { get; set; } /// /// Gets or sets the Child Name of the relation (Destination). /// [DataMember(Name = "childName")] [ReadOnly(true)] public string? ChildName { get; set; } /// /// Gets or sets the date when the Relation was created. /// [DataMember(Name = "createDate")] [ReadOnly(true)] public DateTime CreateDate { get; set; } /// /// Gets or sets a comment for the Relation. /// [DataMember(Name = "comment")] [ReadOnly(true)] public string? Comment { get; set; } } }