mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-01 00:12:30 +01:00
27 lines
626 B
C#
27 lines
626 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 FieldType Type { get; set; }
|
|
public Type SelectOptions { get; set; }
|
|
}
|
|
|
|
public enum FieldType
|
|
{
|
|
Textbox,
|
|
Password,
|
|
Checkbox,
|
|
Select
|
|
}
|
|
} |