Lidarr/src/NzbDrone.Core/History/History.cs

41 lines
1.1 KiB
C#
Raw Normal View History

using System;
2013-05-03 06:53:32 +00:00
using System.Collections.Generic;
2013-02-23 21:29:22 +00:00
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Qualities;
2013-02-23 21:29:22 +00:00
using NzbDrone.Core.Tv;
namespace NzbDrone.Core.History
{
public class History : ModelBase
{
public const string DOWNLOAD_CLIENT = "downloadClient";
2013-06-09 06:20:38 +00:00
public History()
{
Data = new Dictionary<string, string>();
}
2013-03-25 01:38:11 +00:00
public int EpisodeId { get; set; }
public int SeriesId { get; set; }
2013-06-09 06:20:38 +00:00
public string SourceTitle { get; set; }
2013-02-23 21:29:22 +00:00
public QualityModel Quality { get; set; }
public DateTime Date { get; set; }
2013-05-10 22:33:04 +00:00
public Episode Episode { get; set; }
public Series Series { get; set; }
2013-06-11 01:55:05 +00:00
public HistoryEventType EventType { get; set; }
2013-06-09 06:20:38 +00:00
public Dictionary<string, string> Data { get; set; }
public string DownloadId { get; set; }
2013-02-23 21:29:22 +00:00
}
2013-06-09 06:20:38 +00:00
2013-06-11 01:55:05 +00:00
public enum HistoryEventType
{
Unknown = 0,
Grabbed = 1,
SeriesFolderImported = 2,
2013-10-22 07:31:36 +00:00
DownloadFolderImported = 3,
DownloadFailed = 4,
EpisodeFileDeleted = 5
2013-06-11 01:55:05 +00:00
}
2013-02-23 21:29:22 +00:00
}