Readarr/src/NzbDrone.Core/Annotations/FieldDefinitionAttribute.cs
2015-05-13 08:01:39 -07:00

31 lines
No EOL
749 B
C#

using System;
namespace NzbDrone.Core.Annotations
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class FieldDefinitionAttribute : Attribute
{
public FieldDefinitionAttribute(int order)
{
Order = order;
}
public Int32 Order { get; private set; }
public String Label { get; set; }
public String HelpText { get; set; }
public String HelpLink { get; set; }
public FieldType Type { get; set; }
public Boolean Advanced { get; set; }
public Type SelectOptions { get; set; }
}
public enum FieldType
{
Textbox,
Password,
Checkbox,
Select,
Path,
Hidden
}
}