2011-11-13 20:51:15 +00:00
|
|
|
|
using System;
|
2012-05-12 17:16:07 +00:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2011-11-13 20:51:15 +00:00
|
|
|
|
using PetaPoco;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Repository
|
|
|
|
|
{
|
|
|
|
|
[TableName("NewznabDefinitions")]
|
|
|
|
|
[PrimaryKey("Id", autoIncrement = true)]
|
|
|
|
|
public class NewznabDefinition
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public Boolean Enable { get; set; }
|
|
|
|
|
|
2012-05-12 17:25:59 +00:00
|
|
|
|
[StringLength(100, MinimumLength = 2)]
|
2012-05-12 17:16:07 +00:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2011-11-13 20:51:15 +00:00
|
|
|
|
public String Name { get; set; }
|
|
|
|
|
|
2012-05-12 17:16:07 +00:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2012-05-12 17:25:59 +00:00
|
|
|
|
[RegularExpression(@"^http[s]?://.+")]
|
2011-11-13 20:51:15 +00:00
|
|
|
|
public String Url { get; set; }
|
|
|
|
|
|
|
|
|
|
public String ApiKey { get; set; }
|
2012-05-04 15:30:30 +00:00
|
|
|
|
|
|
|
|
|
public bool BuiltIn { get; set; }
|
2011-11-13 20:51:15 +00:00
|
|
|
|
}
|
|
|
|
|
}
|