2013-05-23 22:15:52 -10:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.Runtime.Serialization;
|
2013-07-25 15:31:26 +10:00
|
|
|
|
using Umbraco.Core.PropertyEditors;
|
2013-05-23 22:15:52 -10:00
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Models.ContentEditing
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents a content property to be saved
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataContract(Name = "property", Namespace = "")]
|
2013-06-10 10:36:59 -02:00
|
|
|
|
public class ContentPropertyBasic
|
2013-05-23 22:15:52 -10:00
|
|
|
|
{
|
2016-08-09 13:39:40 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is the cmsPropertyData ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>
|
|
|
|
|
|
/// This is not really used for anything
|
|
|
|
|
|
/// </remarks>
|
2013-05-23 22:15:52 -10:00
|
|
|
|
[DataMember(Name = "id", IsRequired = true)]
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "value")]
|
2013-08-26 18:03:35 +10:00
|
|
|
|
public object Value { get; set; }
|
2013-05-23 22:15:52 -10:00
|
|
|
|
|
2013-06-10 11:15:33 -02:00
|
|
|
|
[DataMember(Name = "alias", IsRequired = true)]
|
|
|
|
|
|
[Required(AllowEmptyStrings = false)]
|
|
|
|
|
|
public string Alias { get; set; }
|
|
|
|
|
|
|
2014-02-19 00:14:25 +01:00
|
|
|
|
[DataMember(Name = "editor", IsRequired = false)]
|
|
|
|
|
|
public string Editor { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 15:31:26 +10:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Used internally during model mapping
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
|
internal PropertyEditor PropertyEditor { get; set; }
|
|
|
|
|
|
|
2013-05-23 22:15:52 -10:00
|
|
|
|
}
|
2017-07-20 11:21:28 +02:00
|
|
|
|
}
|