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.
Lidarr/NzbDrone.Core/Repository/NewznabDefinition.cs

27 lines
708 B

using System;
using System.ComponentModel.DataAnnotations;
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; }
[StringLength(100, MinimumLength = 2)]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public String Name { get; set; }
[DisplayFormat(ConvertEmptyStringToNull = false)]
[RegularExpression(@"^http[s]?://.+")]
public String Url { get; set; }
public String ApiKey { get; set; }
public bool BuiltIn { get; set; }
}
}