mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
32 lines
678 B
C#
32 lines
678 B
C#
#pragma warning disable CS1591
|
|
#nullable enable
|
|
|
|
namespace Emby.Naming.Video
|
|
{
|
|
public readonly struct CleanDateTimeResult
|
|
{
|
|
public CleanDateTimeResult(string name, int? year)
|
|
{
|
|
Name = name;
|
|
Year = year;
|
|
}
|
|
|
|
public CleanDateTimeResult(string name)
|
|
{
|
|
Name = name;
|
|
Year = null;
|
|
}
|
|
|
|
/// <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; }
|
|
}
|
|
}
|