mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 18:28:19 +00:00
27 lines
No EOL
708 B
C#
27 lines
No EOL
708 B
C#
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; }
|
|
}
|
|
} |