477045704e
Added "allWarningsAsErrors": true to NuGet config files across the solution to treat all warnings as errors, increasing build strictness. Updated project cache hashes and assembly info files to reflect these changes. Refactored C# code to use explicit `this.` for field and property assignments, improving clarity. Note: some method signatures were incorrectly changed to use `this.` as a prefix, which is invalid C# syntax and must be corrected before compiling. Binary files updated due to build changes.
58 lines
1.6 KiB
C#
58 lines
1.6 KiB
C#
// <copyright file="VideoInfo.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace Emby.Naming.Video
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
/// <summary>
|
|
/// Represents a complete video, including all parts and subtitles.
|
|
/// </summary>
|
|
public class VideoInfo
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="VideoInfo" /> class.
|
|
/// </summary>
|
|
/// <param name="name">The name.</param>
|
|
public VideoInfo(string? name)
|
|
{
|
|
this.Name = name;
|
|
|
|
this.Files = Array.Empty<VideoFileInfo>();
|
|
this.AlternateVersions = Array.Empty<VideoFileInfo>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name.
|
|
/// </summary>
|
|
/// <value>The name.</value>
|
|
public string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the year.
|
|
/// </summary>
|
|
/// <value>The year.</value>
|
|
public int? Year { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the files.
|
|
/// </summary>
|
|
/// <value>The files.</value>
|
|
public IReadOnlyList<VideoFileInfo> Files { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the alternate versions.
|
|
/// </summary>
|
|
/// <value>The alternate versions.</value>
|
|
public IReadOnlyList<VideoFileInfo> AlternateVersions { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the extra type.
|
|
/// </summary>
|
|
public ExtraType? ExtraType { get; set; }
|
|
}
|
|
}
|