using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace umbraco.editorControls.PickerRelations { /// /// Data Class, used to store the configuration options for the PickerRelationsPreValueEditor /// internal class PickerRelationsOptions { /// /// Alias of the pickerProperty to get a csv value of IDs from //TODO: a known format for xml fragments would be good too /// public string PropertyAlias { get; set; } /// /// The Id of the RelationType to use /// public int RelationTypeId { get; set; } /// /// only relevant with parent-child /// public bool ReverseIndexing { get; set; } /// /// if true then the property is hidden /// public bool HideDataEditor { get; set; } /// /// Initializes an instance of PickerRelationsOptions /// public PickerRelationsOptions() { // Default values this.PropertyAlias = string.Empty; this.RelationTypeId = -1; this.ReverseIndexing = false; this.HideDataEditor = false; } } }