jellyfin/Emby.Naming/Video/CleanDateTimeResult.cs

32 lines
841 B
C#
Raw Normal View History

2018-09-12 19:26:21 +02:00
namespace Emby.Naming.Video
{
2020-11-10 17:11:48 +01:00
/// <summary>
/// Holder structure for name and year.
/// </summary>
2020-01-11 21:16:36 +01:00
public readonly struct CleanDateTimeResult
2018-09-12 19:26:21 +02:00
{
2020-11-10 17:11:48 +01: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 21:16:36 +01:00
{
Name = name;
Year = year;
}
2018-09-12 19:26:21 +02:00
/// <summary>
2020-01-11 21:16:36 +01:00
/// Gets the name.
2018-09-12 19:26:21 +02:00
/// </summary>
/// <value>The name.</value>
2020-01-11 21:16:36 +01:00
public string Name { get; }
2018-09-12 19:26:21 +02:00
/// <summary>
2020-01-11 21:16:36 +01:00
/// Gets the year.
2018-09-12 19:26:21 +02:00
/// </summary>
/// <value>The year.</value>
2020-01-11 21:16:36 +01:00
public int? Year { get; }
2018-09-12 19:26:21 +02:00
}
}