2011-11-13 23:51:15 +03:00
|
|
|
using System;
|
2012-05-12 20:16:07 +03:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2011-11-13 23:51:15 +03: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 20:25:59 +03:00
|
|
|
[StringLength(100, MinimumLength = 2)]
|
2012-05-12 20:16:07 +03:00
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2011-11-13 23:51:15 +03:00
|
|
|
public String Name { get; set; }
|
|
|
|
|
2012-05-12 20:16:07 +03:00
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2012-05-12 20:25:59 +03:00
|
|
|
[RegularExpression(@"^http[s]?://.+")]
|
2011-11-13 23:51:15 +03:00
|
|
|
public String Url { get; set; }
|
|
|
|
|
|
|
|
public String ApiKey { get; set; }
|
2012-05-04 18:30:30 +03:00
|
|
|
|
|
|
|
public bool BuiltIn { get; set; }
|
2011-11-13 23:51:15 +03:00
|
|
|
}
|
|
|
|
}
|