2017-09-04 02:20:56 +00:00
|
|
|
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;
|
2017-08-14 02:58:42 +00:00
|
|
|
using NzbDrone.Core.Music;
|
2020-01-03 12:49:24 +00:00
|
|
|
using NzbDrone.Core.Qualities;
|
2013-02-23 21:29:22 +00:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.History
|
|
|
|
{
|
2021-12-25 01:55:32 +00:00
|
|
|
public class EntityHistory : ModelBase
|
2013-02-23 21:29:22 +00:00
|
|
|
{
|
2014-12-19 00:26:42 +00:00
|
|
|
public const string DOWNLOAD_CLIENT = "downloadClient";
|
|
|
|
|
2021-12-25 01:55:32 +00:00
|
|
|
public EntityHistory()
|
2013-06-09 06:20:38 +00:00
|
|
|
{
|
|
|
|
Data = new Dictionary<string, string>();
|
|
|
|
}
|
2017-09-26 03:44:53 +00:00
|
|
|
|
|
|
|
public int TrackId { get; set; }
|
2017-08-14 02:58:42 +00:00
|
|
|
public int AlbumId { get; set; }
|
|
|
|
public int ArtistId { 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; }
|
2017-08-14 02:58:42 +00:00
|
|
|
public Album Album { get; set; }
|
|
|
|
public Artist Artist { get; set; }
|
2017-09-26 03:44:53 +00:00
|
|
|
public Track Track { get; set; }
|
2021-12-25 01:55:32 +00:00
|
|
|
public EntityHistoryEventType EventType { get; set; }
|
2013-06-09 06:20:38 +00:00
|
|
|
public Dictionary<string, string> Data { get; set; }
|
2014-12-19 00:26:42 +00:00
|
|
|
|
|
|
|
public string DownloadId { get; set; }
|
2013-02-23 21:29:22 +00:00
|
|
|
}
|
2013-06-09 06:20:38 +00:00
|
|
|
|
2021-12-25 01:55:32 +00:00
|
|
|
public enum EntityHistoryEventType
|
2013-06-11 01:55:05 +00:00
|
|
|
{
|
|
|
|
Unknown = 0,
|
|
|
|
Grabbed = 1,
|
2018-02-18 06:29:38 +00:00
|
|
|
ArtistFolderImported = 2,
|
2019-02-16 14:49:24 +00:00
|
|
|
TrackFileImported = 3,
|
2014-08-21 06:29:34 +00:00
|
|
|
DownloadFailed = 4,
|
2017-10-29 03:09:20 +00:00
|
|
|
TrackFileDeleted = 5,
|
2019-02-16 14:49:24 +00:00
|
|
|
TrackFileRenamed = 6,
|
|
|
|
AlbumImportIncomplete = 7,
|
2019-03-15 12:10:45 +00:00
|
|
|
DownloadImported = 8,
|
2020-07-26 20:27:31 +00:00
|
|
|
TrackFileRetagged = 9,
|
|
|
|
DownloadIgnored = 10
|
2013-06-11 01:55:05 +00:00
|
|
|
}
|
2017-09-04 02:20:56 +00:00
|
|
|
}
|