/
EntityHistory.cs
44 lines (39 loc) · 1.18 KB
/
EntityHistory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using NzbDrone.Core.Books;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Qualities;
namespace NzbDrone.Core.History
{
public class EntityHistory : ModelBase
{
public const string DOWNLOAD_CLIENT = "downloadClient";
public EntityHistory()
{
Data = new Dictionary<string, string>();
}
public int BookId { get; set; }
public int AuthorId { get; set; }
public string SourceTitle { get; set; }
public QualityModel Quality { get; set; }
public DateTime Date { get; set; }
public Book Book { get; set; }
public Author Author { 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,
BookFileImported = 3,
DownloadFailed = 4,
BookFileDeleted = 5,
BookFileRenamed = 6,
BookImportIncomplete = 7,
DownloadImported = 8,
BookFileRetagged = 9,
DownloadIgnored = 10
}
}