VideoInfo.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Entities;
  4. namespace Emby.Naming.Video
  5. {
  6. /// <summary>
  7. /// Represents a complete video, including all parts and subtitles.
  8. /// </summary>
  9. public class VideoInfo
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="VideoInfo" /> class.
  13. /// </summary>
  14. /// <param name="name">The name.</param>
  15. public VideoInfo(string? name)
  16. {
  17. Name = name;
  18. Files = 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 alternate versions.
  38. /// </summary>
  39. /// <value>The alternate versions.</value>
  40. public IReadOnlyList<VideoFileInfo> AlternateVersions { get; set; }
  41. /// <summary>
  42. /// Gets or sets the extra type.
  43. /// </summary>
  44. public ExtraType? ExtraType { get; set; }
  45. }
  46. }