using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.Models.ContentEditing
{
///
/// Represents a content property to be saved
///
[DataContract(Name = "property", Namespace = "")]
public class ContentPropertyBasic
{
///
/// This is the PropertyData ID
///
///
/// This is not really used for anything
///
[DataMember(Name = "id", IsRequired = true)]
[Required]
public int Id { get; set; }
[DataMember(Name = "value")]
public object Value { get; set; }
[DataMember(Name = "alias", IsRequired = true)]
[Required(AllowEmptyStrings = false)]
public string Alias { get; set; }
[DataMember(Name = "editor", IsRequired = false)]
public string Editor { get; set; }
///
/// Flags the property to denote that it can contain sensitive data
///
[DataMember(Name = "isSensitive", IsRequired = false)]
public bool IsSensitive { get; set; }
///
/// Used internally during model mapping
///
[IgnoreDataMember]
internal IDataEditor PropertyEditor { get; set; }
}
}