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