2018-09-12 10:26:21 -07:00
|
|
|
namespace Emby.Naming.Video
|
|
|
|
{
|
2020-11-10 09:11:48 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Holder structure for name and year.
|
|
|
|
/// </summary>
|
2020-01-11 13:16:36 -07:00
|
|
|
public readonly struct CleanDateTimeResult
|
2018-09-12 10:26:21 -07:00
|
|
|
{
|
2020-11-10 09:11:48 -07:00
|
|
|
/// <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)
|
2020-01-11 13:16:36 -07:00
|
|
|
{
|
|
|
|
Name = name;
|
|
|
|
Year = year;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|