using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; namespace Umbraco.Cms.Core.Models.ContentEditing; /// /// A model representing a model for moving or copying /// [DataContract(Name = "content", Namespace = "")] public class MoveOrCopy { /// /// The Id of the node to move or copy to /// [DataMember(Name = "parentId", IsRequired = true)] [Required] public int ParentId { get; set; } /// /// The id of the node to move or copy /// [DataMember(Name = "id", IsRequired = true)] [Required] public int Id { get; set; } /// /// Boolean indicating whether copying the object should create a relation to it's original /// [DataMember(Name = "relateToOriginal", IsRequired = true)] [Required] public bool RelateToOriginal { get; set; } /// /// Boolean indicating whether copying the object should be recursive /// [DataMember(Name = "recursive", IsRequired = true)] [Required] public bool Recursive { get; set; } }