You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
809 B
34 lines
809 B
using System;
|
|
using System.Collections.Generic;
|
|
|
|
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 Boolean Advanced { get; set; }
|
|
public Type SelectOptions { get; set; }
|
|
}
|
|
|
|
public enum FieldType
|
|
{
|
|
Textbox,
|
|
Password,
|
|
Checkbox,
|
|
Select,
|
|
Path,
|
|
Hidden,
|
|
Tag
|
|
Action
|
|
}
|
|
} |