2011-02-11 01:22:29 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using NzbDrone.Core.Repository;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Models
|
|
|
|
|
{
|
|
|
|
|
public class IndexerSettingsModel
|
|
|
|
|
{
|
|
|
|
|
[DataType(DataType.Text)]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
[DisplayName("Username")]
|
2011-07-01 20:33:03 +00:00
|
|
|
|
[Description("Username for NZB Matrix")]
|
2011-02-15 01:20:17 +00:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2011-04-10 02:44:01 +00:00
|
|
|
|
public String NzbMatrixUsername { get; set; }
|
2011-02-11 01:22:29 +00:00
|
|
|
|
|
|
|
|
|
[DataType(DataType.Text)]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
[DisplayName("API Key")]
|
2011-07-01 20:33:03 +00:00
|
|
|
|
[Description("API Key for NZB Matrix")]
|
2011-02-15 01:20:17 +00:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2011-04-10 02:44:01 +00:00
|
|
|
|
public String NzbMatrixApiKey { get; set; }
|
2011-02-11 01:22:29 +00:00
|
|
|
|
|
|
|
|
|
[DataType(DataType.Text)]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
[DisplayName("UID")]
|
2011-07-01 20:33:03 +00:00
|
|
|
|
[Description("User ID for Nzbs.org")]
|
2011-02-15 01:20:17 +00:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2011-04-10 02:44:01 +00:00
|
|
|
|
public String NzbsOrgUId { get; set; }
|
2011-02-11 01:22:29 +00:00
|
|
|
|
|
|
|
|
|
[DataType(DataType.Text)]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
[DisplayName("Hash")]
|
2011-07-01 20:33:03 +00:00
|
|
|
|
[Description("Hash for Nzbs.org")]
|
2011-02-15 01:20:17 +00:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2011-04-10 02:44:01 +00:00
|
|
|
|
public String NzbsOrgHash { get; set; }
|
2011-02-11 01:22:29 +00:00
|
|
|
|
|
|
|
|
|
[DataType(DataType.Text)]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
[DisplayName("UID")]
|
2011-07-01 20:33:03 +00:00
|
|
|
|
[Description("User ID for NZBsRus")]
|
2011-02-15 01:20:17 +00:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2011-04-10 02:44:01 +00:00
|
|
|
|
public String NzbsrusUId { get; set; }
|
2011-02-11 01:22:29 +00:00
|
|
|
|
|
|
|
|
|
[DataType(DataType.Text)]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
[DisplayName("Hash")]
|
2011-07-01 20:33:03 +00:00
|
|
|
|
[Description("Hash for NZBsRus")]
|
2011-02-15 01:20:17 +00:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2011-04-10 02:44:01 +00:00
|
|
|
|
public String NzbsrusHash { get; set; }
|
2011-02-11 01:22:29 +00:00
|
|
|
|
|
2011-04-19 23:46:21 +00:00
|
|
|
|
[DataType(DataType.Text)]
|
|
|
|
|
[DisplayName("Username")]
|
2011-07-01 20:33:03 +00:00
|
|
|
|
[Description("Username for Newzbin")]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
|
|
|
|
public String NewzbinUsername { get; set; }
|
|
|
|
|
|
|
|
|
|
[DataType(DataType.Text)]
|
|
|
|
|
[DisplayName("Password")]
|
2011-07-01 20:33:03 +00:00
|
|
|
|
[Description("Password for Newzbin")]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
|
|
|
|
public String NewzbinPassword { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("NZBs.org")]
|
2011-09-23 00:18:41 +00:00
|
|
|
|
[Description("Enable downloading episodes from Nzbs.org")]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
public bool NzbsOrgEnabled { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("NZB Matrix")]
|
2011-09-23 00:18:41 +00:00
|
|
|
|
[Description("Enable downloading episodes from NZB Matrix")]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
public bool NzbMatrixEnabled { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("NZBsRUs")]
|
2011-09-23 00:18:41 +00:00
|
|
|
|
[Description("Enable downloading episodes from NZBsRus")]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
public bool NzbsRUsEnabled { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Newzbin")]
|
2011-09-23 00:18:41 +00:00
|
|
|
|
[Description("Enable downloading episodes from Newzbin")]
|
2011-04-19 23:46:21 +00:00
|
|
|
|
public bool NewzbinEnabled { get; set; }
|
2011-11-13 20:51:15 +00:00
|
|
|
|
|
|
|
|
|
[DisplayName("Newznab")]
|
|
|
|
|
[Description("Enable downloading episodes from Newznab Providers")]
|
|
|
|
|
public bool NewznabEnabled { get; set; }
|
|
|
|
|
|
2012-02-17 09:32:33 +00:00
|
|
|
|
[Required(ErrorMessage = "Please enter a valid number of days")]
|
|
|
|
|
[DataType(DataType.Text)]
|
|
|
|
|
[DisplayName("Retention")]
|
|
|
|
|
[Description("Usenet provider retention in days (0 = unlimited)")]
|
|
|
|
|
public int Retention { get; set; }
|
|
|
|
|
|
2011-11-13 20:51:15 +00:00
|
|
|
|
public List<NewznabDefinition> NewznabDefinitions { get; set; }
|
2011-02-11 01:22:29 +00:00
|
|
|
|
}
|
|
|
|
|
}
|