| | | 1 | | using System.Collections.Generic; |
| | | 2 | | |
| | | 3 | | namespace Emby.Naming.AudioBook |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// Represents a complete video, including all parts and subtitles. |
| | | 7 | | /// </summary> |
| | | 8 | | public class AudioBookInfo |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Initializes a new instance of the <see cref="AudioBookInfo" /> class. |
| | | 12 | | /// </summary> |
| | | 13 | | /// <param name="name">Name of audiobook.</param> |
| | | 14 | | /// <param name="year">Year of audiobook release.</param> |
| | | 15 | | /// <param name="files">List of files composing the actual audiobook.</param> |
| | | 16 | | /// <param name="extras">List of extra files.</param> |
| | | 17 | | /// <param name="alternateVersions">Alternative version of files.</param> |
| | | 18 | | public AudioBookInfo(string name, int? year, IReadOnlyList<AudioBookFileInfo> files, IReadOnlyList<AudioBookFile |
| | | 19 | | { |
| | 35 | 20 | | Name = name; |
| | 35 | 21 | | Year = year; |
| | 35 | 22 | | Files = files; |
| | 35 | 23 | | Extras = extras; |
| | 35 | 24 | | AlternateVersions = alternateVersions; |
| | 35 | 25 | | } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Gets or sets the name. |
| | | 29 | | /// </summary> |
| | | 30 | | /// <value>The name.</value> |
| | | 31 | | public string Name { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Gets or sets the year. |
| | | 35 | | /// </summary> |
| | | 36 | | public int? Year { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Gets or sets the files. |
| | | 40 | | /// </summary> |
| | | 41 | | /// <value>The files.</value> |
| | | 42 | | public IReadOnlyList<AudioBookFileInfo> Files { get; set; } |
| | | 43 | | |
| | | 44 | | /// <summary> |
| | | 45 | | /// Gets or sets the extras. |
| | | 46 | | /// </summary> |
| | | 47 | | /// <value>The extras.</value> |
| | | 48 | | public IReadOnlyList<AudioBookFileInfo> Extras { get; set; } |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// Gets or sets the alternate versions. |
| | | 52 | | /// </summary> |
| | | 53 | | /// <value>The alternate versions.</value> |
| | | 54 | | public IReadOnlyList<AudioBookFileInfo> AlternateVersions { get; set; } |
| | | 55 | | } |
| | | 56 | | } |