jellyfin/Emby.Naming/Video/CleanDateTimeResult.cs
2020-01-11 22:17:05 +01:00

34 lines
709 B
C#

#pragma warning disable CS1591
#pragma warning disable SA1600
#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; }
}
}