2019-12-13 12:11:37 -07:00
|
|
|
#pragma warning disable CS1591
|
2020-01-11 13:16:36 -07:00
|
|
|
#nullable enable
|
2019-12-13 12:11:37 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
namespace Emby.Naming.Video
|
|
|
|
{
|
2020-01-11 13:16:36 -07:00
|
|
|
public readonly struct CleanDateTimeResult
|
2018-09-12 10:26:21 -07:00
|
|
|
{
|
2020-01-11 13:16:36 -07:00
|
|
|
public CleanDateTimeResult(string name, int? year)
|
|
|
|
{
|
|
|
|
Name = name;
|
|
|
|
Year = year;
|
|
|
|
}
|
|
|
|
|
|
|
|
public CleanDateTimeResult(string name)
|
|
|
|
{
|
|
|
|
Name = name;
|
|
|
|
Year = null;
|
|
|
|
}
|
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
2020-01-11 13:16:36 -07:00
|
|
|
/// Gets the name.
|
2018-09-12 10:26:21 -07:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The name.</value>
|
2020-01-11 13:16:36 -07:00
|
|
|
public string Name { get; }
|
2019-12-13 12:11:37 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
2020-01-11 13:16:36 -07:00
|
|
|
/// Gets the year.
|
2018-09-12 10:26:21 -07:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The year.</value>
|
2020-01-11 13:16:36 -07:00
|
|
|
public int? Year { get; }
|
2018-09-12 10:26:21 -07:00
|
|
|
}
|
|
|
|
}
|