jellyfin-server/Emby.Naming/Video/CleanDateTimeResult.cs

32 lines
841 B
C#
Raw Normal View History

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