VideoInfo.cs 1.5 KB

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