jellyfin-server/Emby.Naming/TV/EpisodePathParserResult.cs

55 lines
1.6 KiB
C#
Raw Normal View History

2018-09-12 17:26:21 +00:00
namespace Emby.Naming.TV
{
2020-11-10 16:11:48 +00:00
/// <summary>
/// Holder object for <see cref="EpisodePathParser"/> result.
/// </summary>
2018-09-12 17:26:21 +00:00
public class EpisodePathParserResult
{
2020-11-10 16:11:48 +00:00
/// <summary>
/// Gets or sets optional season number.
/// </summary>
2018-09-12 17:26:21 +00:00
public int? SeasonNumber { get; set; }
2019-05-10 18:37:42 +00:00
2020-11-10 16:11:48 +00:00
/// <summary>
/// Gets or sets optional episode number.
/// </summary>
2018-09-12 17:26:21 +00:00
public int? EpisodeNumber { get; set; }
2019-05-10 18:37:42 +00:00
2020-11-10 16:11:48 +00:00
/// <summary>
/// Gets or sets optional ending episode number. For multi-episode files 1-13.
/// </summary>
2020-11-01 10:19:22 +00:00
public int? EndingEpisodeNumber { get; set; }
2019-05-10 18:37:42 +00:00
2020-11-10 16:11:48 +00:00
/// <summary>
/// Gets or sets the name of the series.
/// </summary>
/// <value>The name of the series.</value>
2020-11-01 09:47:31 +00:00
public string? SeriesName { get; set; }
2019-05-10 18:37:42 +00:00
2020-11-10 16:11:48 +00:00
/// <summary>
/// Gets or sets a value indicating whether parsing was successful.
/// </summary>
2018-09-12 17:26:21 +00:00
public bool Success { get; set; }
2020-11-10 16:11:48 +00:00
/// <summary>
/// Gets or sets a value indicating whether by date expression was used.
/// </summary>
2018-09-12 17:26:21 +00:00
public bool IsByDate { get; set; }
2019-05-10 18:37:42 +00:00
2020-11-10 16:11:48 +00:00
/// <summary>
/// Gets or sets optional year of release.
/// </summary>
2018-09-12 17:26:21 +00:00
public int? Year { get; set; }
2019-05-10 18:37:42 +00:00
2020-11-10 16:11:48 +00:00
/// <summary>
/// Gets or sets optional year of release.
/// </summary>
2018-09-12 17:26:21 +00:00
public int? Month { get; set; }
2019-05-10 18:37:42 +00:00
2020-11-10 16:11:48 +00:00
/// <summary>
/// Gets or sets optional day of release.
/// </summary>
2018-09-12 17:26:21 +00:00
public int? Day { get; set; }
}
}