2020-01-22 21:18:56 +00:00
|
|
|
using System;
|
2019-01-13 19:54:44 +00:00
|
|
|
using System.Collections.Generic;
|
2018-09-12 17:26:21 +00:00
|
|
|
|
|
|
|
namespace Emby.Naming.Video
|
|
|
|
{
|
|
|
|
/// <summary>
|
2019-10-25 10:47:20 +00:00
|
|
|
/// Represents a complete video, including all parts and subtitles.
|
2018-09-12 17:26:21 +00:00
|
|
|
/// </summary>
|
|
|
|
public class VideoInfo
|
|
|
|
{
|
2019-12-13 19:11:37 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="VideoInfo" /> class.
|
|
|
|
/// </summary>
|
2020-01-22 21:18:56 +00:00
|
|
|
/// <param name="name">The name.</param>
|
2020-11-01 09:47:31 +00:00
|
|
|
public VideoInfo(string? name)
|
2019-12-13 19:11:37 +00:00
|
|
|
{
|
2020-01-22 21:18:56 +00:00
|
|
|
Name = name;
|
|
|
|
|
|
|
|
Files = Array.Empty<VideoFileInfo>();
|
|
|
|
Extras = Array.Empty<VideoFileInfo>();
|
|
|
|
AlternateVersions = Array.Empty<VideoFileInfo>();
|
2019-12-13 19:11:37 +00:00
|
|
|
}
|
|
|
|
|
2018-09-12 17:26:21 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the name.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The name.</value>
|
2020-11-01 09:47:31 +00:00
|
|
|
public string? Name { get; set; }
|
2019-05-10 18:37:42 +00:00
|
|
|
|
2018-09-12 17:26:21 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the year.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The year.</value>
|
|
|
|
public int? Year { get; set; }
|
2019-05-10 18:37:42 +00:00
|
|
|
|
2018-09-12 17:26:21 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the files.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The files.</value>
|
2020-01-22 21:18:56 +00:00
|
|
|
public IReadOnlyList<VideoFileInfo> Files { get; set; }
|
2019-05-10 18:37:42 +00:00
|
|
|
|
2018-09-12 17:26:21 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the extras.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The extras.</value>
|
2020-01-22 21:18:56 +00:00
|
|
|
public IReadOnlyList<VideoFileInfo> Extras { get; set; }
|
2019-05-10 18:37:42 +00:00
|
|
|
|
2018-09-12 17:26:21 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the alternate versions.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The alternate versions.</value>
|
2020-01-22 21:18:56 +00:00
|
|
|
public IReadOnlyList<VideoFileInfo> AlternateVersions { get; set; }
|
2018-09-12 17:26:21 +00:00
|
|
|
}
|
|
|
|
}
|