1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-03-06 11:40:00 +00:00
Sonarr/NzbDrone.Core/Annotations/FieldDefinitionAttribute.cs

25 lines
562 B
C#
Raw Normal View History

2013-05-02 22:24:52 -07:00
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; }
2013-05-19 21:19:54 -07:00
public FieldType Type { get; set; }
}
public enum FieldType
{
Textbox,
Password,
Checkbox
2013-05-02 22:24:52 -07:00
}
}