2012-04-20 06:42:13 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using NzbDrone.Core.Model;
|
|
|
|
|
using NzbDrone.Core.Repository.Quality;
|
|
|
|
|
using PetaPoco;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Repository.Search
|
|
|
|
|
{
|
|
|
|
|
[PrimaryKey("Id", autoIncrement = true)]
|
2012-04-23 07:38:42 +00:00
|
|
|
|
[TableName("SearchHistory")]
|
|
|
|
|
public class SearchHistory
|
2012-04-20 06:42:13 +00:00
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public int SeriesId { get; set; }
|
|
|
|
|
public int? SeasonNumber { get; set; }
|
|
|
|
|
public int? EpisodeId { get; set; }
|
|
|
|
|
public DateTime SearchTime { get; set; }
|
2012-04-21 08:16:15 +00:00
|
|
|
|
public bool SuccessfulDownload { get; set; }
|
2012-04-20 06:42:13 +00:00
|
|
|
|
|
|
|
|
|
[ResultColumn]
|
2012-04-23 07:38:42 +00:00
|
|
|
|
public List<SearchHistoryItem> SearchHistoryItems { get; set; }
|
2012-04-21 08:16:15 +00:00
|
|
|
|
|
2012-04-23 06:31:11 +00:00
|
|
|
|
[Ignore]
|
|
|
|
|
public List<int> Successes { get; set; }
|
|
|
|
|
|
2012-04-21 08:16:15 +00:00
|
|
|
|
[ResultColumn]
|
|
|
|
|
public string SeriesTitle { get; set; }
|
|
|
|
|
|
|
|
|
|
[ResultColumn]
|
|
|
|
|
public bool IsDaily { get; set; }
|
|
|
|
|
|
|
|
|
|
[ResultColumn]
|
|
|
|
|
public int? EpisodeNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
[ResultColumn]
|
|
|
|
|
public string EpisodeTitle { get; set; }
|
|
|
|
|
|
|
|
|
|
[ResultColumn]
|
|
|
|
|
public DateTime AirDate { get; set; }
|
|
|
|
|
|
|
|
|
|
[ResultColumn]
|
|
|
|
|
public int TotalItems { get; set; }
|
|
|
|
|
|
|
|
|
|
[ResultColumn]
|
2012-04-23 06:31:11 +00:00
|
|
|
|
public int SuccessfulCount { get; set; }
|
2012-04-20 06:42:13 +00:00
|
|
|
|
}
|
|
|
|
|
}
|