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.
64 lines
2.3 KiB
C#
64 lines
2.3 KiB
C#
// <copyright file="ExternalPathParserResult.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace Emby.Naming.ExternalFiles
|
|
{
|
|
/// <summary>
|
|
/// Class holding information about external files.
|
|
/// </summary>
|
|
public class ExternalPathParserResult
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ExternalPathParserResult"/> class.
|
|
/// </summary>
|
|
/// <param name="path">Path to file.</param>
|
|
/// <param name="isDefault">Is default.</param>
|
|
/// <param name="isForced">Is forced.</param>
|
|
/// <param name="isHearingImpaired">For the hearing impaired.</param>
|
|
public ExternalPathParserResult(string path, bool isDefault = false, bool isForced = false, bool isHearingImpaired = false)
|
|
{
|
|
this.Path = path;
|
|
this.IsDefault = isDefault;
|
|
this.IsForced = isForced;
|
|
this.IsHearingImpaired = isHearingImpaired;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the path.
|
|
/// </summary>
|
|
/// <value>The path.</value>
|
|
public string Path { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the language.
|
|
/// </summary>
|
|
/// <value>The language.</value>
|
|
public string? Language { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the title.
|
|
/// </summary>
|
|
/// <value>The title.</value>
|
|
public string? Title { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether this instance is default.
|
|
/// </summary>
|
|
/// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value>
|
|
public bool IsDefault { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether this instance is forced.
|
|
/// </summary>
|
|
/// <value><c>true</c> if this instance is forced; otherwise, <c>false</c>.</value>
|
|
public bool IsForced { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether this instance is for the hearing impaired.
|
|
/// </summary>
|
|
/// <value><c>true</c> if this instance is for the hearing impaired; otherwise, <c>false</c>.</value>
|
|
public bool IsHearingImpaired { get; set; }
|
|
}
|
|
}
|