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.
Readarr/src/NzbDrone.Core/Parser/Model/ParsedBookInfo.cs

38 lines
1.2 KiB

using System.Collections.Generic;
using System.Text.Json.Serialization;
using NzbDrone.Core.Qualities;
namespace NzbDrone.Core.Parser.Model
{
public class ParsedBookInfo
{
public string BookTitle { get; set; }
public string AuthorName { get; set; }
public AuthorTitleInfo AuthorTitleInfo { get; set; }
public QualityModel Quality { get; set; }
public string ReleaseDate { get; set; }
public bool Discography { get; set; }
public int DiscographyStart { get; set; }
public int DiscographyEnd { get; set; }
public string ReleaseGroup { get; set; }
public string ReleaseHash { get; set; }
public string ReleaseVersion { get; set; }
public string ReleaseTitle { get; set; }
[JsonIgnore]
public Dictionary<string, object> ExtraInfo { get; set; } = new Dictionary<string, object>();
public override string ToString()
{
var bookString = "[Unknown Book]";
if (BookTitle != null)
{
bookString = string.Format("{0}", BookTitle);
}
return string.Format("{0} - {1} {2}", AuthorName, bookString, Quality);
}
}
}