2019-01-13 14:54:44 -05:00
|
|
|
using System.Collections.Generic;
|
2018-09-12 13:26:21 -04:00
|
|
|
|
|
|
|
namespace Emby.Naming.AudioBook
|
|
|
|
{
|
|
|
|
/// <summary>
|
2019-10-25 06:47:20 -04:00
|
|
|
/// Represents a complete video, including all parts and subtitles.
|
2018-09-12 13:26:21 -04:00
|
|
|
/// </summary>
|
|
|
|
public class AudioBookInfo
|
|
|
|
{
|
2019-12-13 14:11:37 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="AudioBookInfo" /> class.
|
|
|
|
/// </summary>
|
2020-11-01 04:47:31 -05:00
|
|
|
/// <param name="name">Name of audiobook.</param>
|
2020-11-02 14:03:12 -05:00
|
|
|
/// <param name="year">Year of audiobook release.</param>
|
|
|
|
public AudioBookInfo(string name, int? year)
|
2019-05-10 14:37:42 -04:00
|
|
|
{
|
|
|
|
Files = new List<AudioBookFileInfo>();
|
|
|
|
Extras = new List<AudioBookFileInfo>();
|
|
|
|
AlternateVersions = new List<AudioBookFileInfo>();
|
2020-11-01 04:47:31 -05:00
|
|
|
Name = name;
|
2020-11-02 14:03:12 -05:00
|
|
|
Year = year;
|
2019-05-10 14:37:42 -04:00
|
|
|
}
|
|
|
|
|
2018-09-12 13:26:21 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the name.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The name.</value>
|
|
|
|
public string Name { get; set; }
|
2019-05-10 14:37:42 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the year.
|
|
|
|
/// </summary>
|
2018-09-12 13:26:21 -04:00
|
|
|
public int? Year { get; set; }
|
2019-05-10 14:37:42 -04:00
|
|
|
|
2018-09-12 13:26:21 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the files.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The files.</value>
|
|
|
|
public List<AudioBookFileInfo> Files { get; set; }
|
2019-05-10 14:37:42 -04:00
|
|
|
|
2018-09-12 13:26:21 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the extras.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The extras.</value>
|
|
|
|
public List<AudioBookFileInfo> Extras { get; set; }
|
2019-05-10 14:37:42 -04:00
|
|
|
|
2018-09-12 13:26:21 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the alternate versions.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The alternate versions.</value>
|
|
|
|
public List<AudioBookFileInfo> AlternateVersions { get; set; }
|
|
|
|
}
|
|
|
|
}
|