jellyfin/Emby.Naming/Video/CleanDateTimeResult.cs

33 lines
678 B
C#
Raw Normal View History

#pragma warning disable CS1591
2020-01-11 20:16:36 +00:00
#nullable enable
2018-09-12 17:26:21 +00:00
namespace Emby.Naming.Video
{
2020-01-11 20:16:36 +00:00
public readonly struct CleanDateTimeResult
2018-09-12 17:26:21 +00:00
{
2020-01-11 20:16:36 +00:00
public CleanDateTimeResult(string name, int? year)
{
Name = name;
Year = year;
}
public CleanDateTimeResult(string name)
{
Name = name;
Year = null;
}
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
}
}