2011-01-29 07:10:22 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
2011-02-16 08:58:39 +01:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2011-01-29 07:10:22 +01:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using SubSonic.SqlGeneration.Schema;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Repository
|
|
|
|
|
{
|
|
|
|
|
public class Indexer
|
|
|
|
|
{
|
2011-03-23 06:19:23 +01:00
|
|
|
|
[SubSonicPrimaryKey(false)]
|
|
|
|
|
public virtual int IndexerId { get; set; }
|
|
|
|
|
|
2011-01-29 07:10:22 +01:00
|
|
|
|
public string IndexerName { get; set; }
|
|
|
|
|
public string RssUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
[SubSonicNullStringAttribute]
|
2011-02-16 08:58:39 +01:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2011-01-29 07:10:22 +01:00
|
|
|
|
public string ApiUrl { get; set; }
|
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
|
public int Order { get; set; }
|
|
|
|
|
|
|
|
|
|
[SubSonicToManyRelation]
|
|
|
|
|
public virtual List<History> Histories { get; private set; }
|
|
|
|
|
}
|
|
|
|
|
}
|