using Umbraco.Core;
using Umbraco.Core.PropertyEditors;

namespace Umbraco.Web.PropertyEditors
{
    /// <summary>
    /// Represents the configuration for the media picker value editor.
    /// </summary>
    public class MediaPickerConfiguration
    {
        [ConfigurationField("multiPicker", "Pick multiple items", "boolean")]
        public bool Multiple { get; set; }

        [ConfigurationField("onlyImages", "Pick only images", "boolean", Description = "Only let the editor choose images from media.")]
        public bool OnlyImages { get; set; }

        [ConfigurationField("disableFolderSelect", "Disable folder select", "boolean", Description = "Do not allow folders to be picked.")]
        public bool DisableFolderSelect { get; set; }

        [ConfigurationField("startNodeId", "Start node", "mediapicker")]
        public Udi StartNodeId { get; set; }

        [ConfigurationField("ignoreUserStartNodes", "Ignore user start nodes", "boolean", Description = "Selecting this option allows a user to choose nodes that they normally don't have access to.")]
        public bool IgnoreUserStartNodes { get; set; }
    }
}
