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("SearchHistoryItems")]
|
|
|
|
|
public class SearchHistoryItem
|
2012-04-20 06:42:13 +00:00
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
2012-04-23 07:38:42 +00:00
|
|
|
|
public int SearchHistoryId { get; set; }
|
2012-04-20 06:42:13 +00:00
|
|
|
|
public string ReportTitle { get; set; }
|
2012-04-21 08:16:15 +00:00
|
|
|
|
public string Indexer { get; set; }
|
2012-04-20 06:42:13 +00:00
|
|
|
|
public string NzbUrl { get; set; }
|
|
|
|
|
public string NzbInfoUrl { get; set; }
|
|
|
|
|
public bool Success { get; set; }
|
|
|
|
|
public ReportRejectionType SearchError { get; set; }
|
2012-04-23 06:31:11 +00:00
|
|
|
|
public QualityTypes Quality { get; set; }
|
|
|
|
|
public bool Proper { get; set; }
|
|
|
|
|
public int Age { get; set; }
|
|
|
|
|
public LanguageType Language { get; set; }
|
|
|
|
|
public long Size { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return String.Format("{0} - {1} - {2}", ReportTitle, Quality, SearchError);
|
|
|
|
|
}
|
2012-04-20 06:42:13 +00:00
|
|
|
|
}
|
|
|
|
|
}
|