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.
50 lines
1.3 KiB
50 lines
1.3 KiB
3 years ago
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace NzbDrone.Core.Applications.Mylar
|
||
|
{
|
||
|
public class MylarIndexerResponse
|
||
|
{
|
||
|
public bool Success { get; set; }
|
||
|
public MylarIndexerData Data { get; set; }
|
||
|
public MylarError Error { get; set; }
|
||
|
}
|
||
|
|
||
|
public class MylarIndexerData
|
||
|
{
|
||
|
public List<MylarIndexer> Torznabs { get; set; }
|
||
|
public List<MylarIndexer> Newznabs { get; set; }
|
||
|
}
|
||
|
|
||
|
public enum MylarProviderType
|
||
|
{
|
||
|
Newznab,
|
||
|
Torznab
|
||
|
}
|
||
|
|
||
|
public class MylarIndexer
|
||
|
{
|
||
|
public string Name { get; set; }
|
||
|
public string Host { get; set; }
|
||
|
public string Apikey { get; set; }
|
||
|
public string Categories { get; set; }
|
||
|
public bool Enabled { get; set; }
|
||
|
public string Altername { get; set; }
|
||
|
public MylarProviderType Type { get; set; }
|
||
|
|
||
|
public bool Equals(MylarIndexer other)
|
||
|
{
|
||
|
if (ReferenceEquals(null, other))
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return other.Host == Host &&
|
||
|
other.Apikey == Apikey &&
|
||
|
other.Name == Name &&
|
||
|
other.Categories == Categories &&
|
||
|
other.Enabled == Enabled &&
|
||
|
other.Altername == Altername;
|
||
|
}
|
||
|
}
|
||
|
}
|