2013-05-03 05:24:52 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Annotations
|
|
|
|
|
{
|
|
|
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
|
|
|
|
|
public class FieldDefinitionAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
public FieldDefinitionAttribute(int order)
|
|
|
|
|
{
|
|
|
|
|
Order = order;
|
|
|
|
|
}
|
|
|
|
|
|
2014-05-19 19:14:41 +00:00
|
|
|
|
public Int32 Order { get; private set; }
|
|
|
|
|
public String Label { get; set; }
|
|
|
|
|
public String HelpText { get; set; }
|
|
|
|
|
public String HelpLink { get; set; }
|
2013-05-20 04:19:54 +00:00
|
|
|
|
public FieldType Type { get; set; }
|
2014-05-19 19:14:41 +00:00
|
|
|
|
public Boolean Advanced { get; set; }
|
2013-06-13 07:20:33 +00:00
|
|
|
|
public Type SelectOptions { get; set; }
|
2013-05-20 04:19:54 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum FieldType
|
|
|
|
|
{
|
|
|
|
|
Textbox,
|
|
|
|
|
Password,
|
2013-06-13 07:20:33 +00:00
|
|
|
|
Checkbox,
|
2014-02-14 05:31:49 +00:00
|
|
|
|
Select,
|
|
|
|
|
Path
|
2013-05-03 05:24:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|