You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using NzbDrone.Core.Datastore;
|
|
using NzbDrone.Core.Music;
|
|
using NzbDrone.Core.Qualities;
|
|
|
|
namespace NzbDrone.Core.History
|
|
{
|
|
public class EntityHistory : ModelBase
|
|
{
|
|
public const string DOWNLOAD_CLIENT = "downloadClient";
|
|
public const string RELEASE_SOURCE = "releaseSource";
|
|
|
|
public EntityHistory()
|
|
{
|
|
Data = new Dictionary<string, string>();
|
|
}
|
|
|
|
public int TrackId { get; set; }
|
|
public int AlbumId { get; set; }
|
|
public int ArtistId { get; set; }
|
|
public string SourceTitle { get; set; }
|
|
public QualityModel Quality { get; set; }
|
|
public DateTime Date { get; set; }
|
|
public Album Album { get; set; }
|
|
public Artist Artist { get; set; }
|
|
public Track Track { get; set; }
|
|
public EntityHistoryEventType EventType { get; set; }
|
|
public Dictionary<string, string> Data { get; set; }
|
|
|
|
public string DownloadId { get; set; }
|
|
}
|
|
|
|
public enum EntityHistoryEventType
|
|
{
|
|
Unknown = 0,
|
|
Grabbed = 1,
|
|
ArtistFolderImported = 2,
|
|
TrackFileImported = 3,
|
|
DownloadFailed = 4,
|
|
TrackFileDeleted = 5,
|
|
TrackFileRenamed = 6,
|
|
AlbumImportIncomplete = 7,
|
|
DownloadImported = 8,
|
|
TrackFileRetagged = 9,
|
|
DownloadIgnored = 10
|
|
}
|
|
}
|