parent
c0747512d6
commit
693760e38a
@ -1,12 +1,18 @@
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace Emby.Naming.AudioBook
|
||||
{
|
||||
/// <summary>
|
||||
/// Data object for passing result of audiobook part/chapter extraction.
|
||||
/// </summary>
|
||||
public struct AudioBookFilePathParserResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets optional number of path extracted from audiobook filename.
|
||||
/// </summary>
|
||||
public int? PartNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional number of chapter extracted from audiobook filename.
|
||||
/// </summary>
|
||||
public int? ChapterNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,18 @@
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace Emby.Naming.AudioBook
|
||||
{
|
||||
/// <summary>
|
||||
/// Data object used to pass result of name and year parsing.
|
||||
/// </summary>
|
||||
public struct AudioBookNameParserResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets name of audiobook.
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional year of release.
|
||||
/// </summary>
|
||||
public int? Year { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -1,25 +1,54 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace Emby.Naming.TV
|
||||
{
|
||||
/// <summary>
|
||||
/// Holder object for <see cref="EpisodePathParser"/> result.
|
||||
/// </summary>
|
||||
public class EpisodePathParserResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets optional season number.
|
||||
/// </summary>
|
||||
public int? SeasonNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional episode number.
|
||||
/// </summary>
|
||||
public int? EpisodeNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional ending episode number. For multi-episode files 1-13.
|
||||
/// </summary>
|
||||
public int? EndingEpisodeNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the series.
|
||||
/// </summary>
|
||||
/// <value>The name of the series.</value>
|
||||
public string? SeriesName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether parsing was successful.
|
||||
/// </summary>
|
||||
public bool Success { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether by date expression was used.
|
||||
/// </summary>
|
||||
public bool IsByDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional year of release.
|
||||
/// </summary>
|
||||
public int? Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional year of release.
|
||||
/// </summary>
|
||||
public int? Month { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional day of release.
|
||||
/// </summary>
|
||||
public int? Day { get; set; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue