Added Sonarr API

This commit is contained in:
zone117x
2015-04-18 00:05:30 -06:00
parent c13d59f6ad
commit 0f89b630c9
9 changed files with 470 additions and 122 deletions

View File

@@ -73,19 +73,40 @@ namespace Jackett
public string ID { get { return Name.Replace(" ", "").ToLower(); } }
}
public class DisplayItem : StringItem
{
public DisplayItem(string value)
{
Value = value;
ItemType = ItemType.DisplayInfo;
}
}
public class StringItem : Item
{
public string Value { get; set; }
public StringItem()
{
ItemType = ConfigurationData.ItemType.InputString;
}
}
public class BoolItem : Item
{
public bool Value { get; set; }
public BoolItem()
{
ItemType = ConfigurationData.ItemType.InputBool;
}
}
public class ImageItem : Item
{
public byte[] Value { get; set; }
public ImageItem()
{
ItemType = ConfigurationData.ItemType.DisplayImage;
}
}
public abstract Item[] GetItems();