AudioBookInfo.cs 1.9 KB

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