using System.Runtime.Serialization;
namespace Umbraco.Web.Models.ContentEditing
{
///
/// Defines a pre value editable field for a data type
///
[DataContract(Name = "propertyEditor", Namespace = "")]
public class PreValueFieldDisplay
{
///
/// The name to display for this pre-value field
///
[DataMember(Name = "label", IsRequired = true)]
public string Name { get; set; }
///
/// The description to display for this pre-value field
///
[DataMember(Name = "description")]
public string Description { get; set; }
///
/// Specifies whether to hide the label for the pre-value
///
[DataMember(Name = "hideLabel")]
public bool HideLabel { get; set; }
///
/// The key to store the pre-value against
///
[DataMember(Name = "key", IsRequired = true)]
public string Key { get; set; }
///
/// The view to render for the field
///
[DataMember(Name = "view", IsRequired = true)]
public string View { get; set; }
///
/// The value stored for the pre-value field
///
[DataMember(Name = "value", IsRequired = true)]
public string Value { get; set; }
}
}