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