1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-27 10:19:41 +00:00
Radarr/NzbDrone.Core/Annotations/FieldDefinitionAttribute.cs
2013-07-27 13:57:41 -07:00

28 lines
No EOL
671 B
C#

using System;
namespace NzbDrone.Core.Annotations
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class FieldDefinitionAttribute : Attribute
{
public FieldDefinitionAttribute(int order)
{
Order = order;
}
public int 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 Type SelectOptions { get; set; }
}
public enum FieldType
{
Textbox,
Password,
Checkbox,
Select
}
}