jellyfin-server/Emby.Naming/AudioBook/AudioBookInfo.cs

57 lines
1.9 KiB
C#
Raw Normal View History

using System.Collections.Generic;
2018-09-12 17:26:21 +00:00
namespace Emby.Naming.AudioBook
{
/// <summary>
2019-10-25 10:47:20 +00:00
/// Represents a complete video, including all parts and subtitles.
2018-09-12 17:26:21 +00:00
/// </summary>
public class AudioBookInfo
{
/// <summary>
/// Initializes a new instance of the <see cref="AudioBookInfo" /> class.
/// </summary>
2020-11-01 09:47:31 +00:00
/// <param name="name">Name of audiobook.</param>
/// <param name="year">Year of audiobook release.</param>
/// <param name="files">List of files composing the actual audiobook.</param>
/// <param name="extras">List of extra files.</param>
/// <param name="alternateVersions">Alternative version of files.</param>
2021-07-05 22:01:33 +00:00
public AudioBookInfo(string name, int? year, IReadOnlyList<AudioBookFileInfo> files, IReadOnlyList<AudioBookFileInfo> extras, IReadOnlyList<AudioBookFileInfo> alternateVersions)
2019-05-10 18:37:42 +00:00
{
2020-11-01 09:47:31 +00:00
Name = name;
Year = year;
Files = files;
Extras = extras;
AlternateVersions = alternateVersions;
2019-05-10 18:37:42 +00:00
}
2018-09-12 17:26:21 +00:00
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
2019-05-10 18:37:42 +00:00
/// <summary>
/// Gets or sets the year.
/// </summary>
2018-09-12 17:26:21 +00:00
public int? Year { get; set; }
2019-05-10 18:37:42 +00:00
2018-09-12 17:26:21 +00:00
/// <summary>
/// Gets or sets the files.
/// </summary>
/// <value>The files.</value>
2021-07-05 22:01:33 +00:00
public IReadOnlyList<AudioBookFileInfo> Files { get; set; }
2019-05-10 18:37:42 +00:00
2018-09-12 17:26:21 +00:00
/// <summary>
/// Gets or sets the extras.
/// </summary>
/// <value>The extras.</value>
2021-07-05 22:01:33 +00:00
public IReadOnlyList<AudioBookFileInfo> Extras { get; set; }
2019-05-10 18:37:42 +00:00
2018-09-12 17:26:21 +00:00
/// <summary>
/// Gets or sets the alternate versions.
/// </summary>
/// <value>The alternate versions.</value>
2021-07-05 22:01:33 +00:00
public IReadOnlyList<AudioBookFileInfo> AlternateVersions { get; set; }
2018-09-12 17:26:21 +00:00
}
}