using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Umbraco.Web.Models.ContentEditing
{
[DataContract(Name = "relation", Namespace = "")]
public class Relation
{
public Relation()
{
RelationType = new RelationType();
}
///
/// Gets or sets the Parent Id of the Relation (Source)
///
[DataMember(Name = "parentId")]
public int ParentId { get; set; }
///
/// Gets or sets the Child Id of the Relation (Destination)
///
[DataMember(Name = "childId")]
public int ChildId { get; set; }
///
/// Gets or sets the for the Relation
///
[DataMember(Name = "relationType", IsRequired = true)]
public RelationType RelationType { get; set; }
///
/// Gets or sets a comment for the Relation
///
[DataMember(Name = "comment")]
public string Comment { get; set; }
}
}