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.
36 lines
1000 B
C#
36 lines
1000 B
C#
// <copyright file="CleanDateTimeResult.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace Emby.Naming.Video
|
|
{
|
|
/// <summary>
|
|
/// Holder structure for name and year.
|
|
/// </summary>
|
|
public readonly struct CleanDateTimeResult
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="CleanDateTimeResult"/> struct.
|
|
/// </summary>
|
|
/// <param name="name">Name of video.</param>
|
|
/// <param name="year">Year of release.</param>
|
|
public CleanDateTimeResult(string name, int? year = null)
|
|
{
|
|
this.Name = name;
|
|
this.Year = year;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the name.
|
|
/// </summary>
|
|
/// <value>The name.</value>
|
|
public string Name { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the year.
|
|
/// </summary>
|
|
/// <value>The year.</value>
|
|
public int? Year { get; }
|
|
}
|
|
}
|