2019-12-13 20:11:37 +01:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2020-01-09 18:26:22 +01:00
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
using MediaType = Emby.Naming.Common.MediaType;
|
2018-09-12 19:26:21 +02:00
|
|
|
|
|
|
|
namespace Emby.Naming.Video
|
|
|
|
{
|
2020-04-01 18:54:06 +02:00
|
|
|
/// <summary>
|
|
|
|
/// A rule used to match a file path with an <see cref="MediaBrowser.Model.Entities.ExtraType"/>.
|
|
|
|
/// </summary>
|
2018-09-12 19:26:21 +02:00
|
|
|
public class ExtraRule
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-04-01 18:54:06 +02:00
|
|
|
/// Gets or sets the token to use for matching against the file path.
|
2018-09-12 19:26:21 +02:00
|
|
|
/// </summary>
|
|
|
|
public string Token { get; set; }
|
2019-12-06 20:40:06 +01:00
|
|
|
|
2018-09-12 19:26:21 +02:00
|
|
|
/// <summary>
|
2020-04-01 18:54:06 +02:00
|
|
|
/// Gets or sets the type of the extra to return when matched.
|
2018-09-12 19:26:21 +02:00
|
|
|
/// </summary>
|
2020-01-09 18:26:22 +01:00
|
|
|
public ExtraType ExtraType { get; set; }
|
2019-12-06 20:40:06 +01:00
|
|
|
|
2018-09-12 19:26:21 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the type of the rule.
|
|
|
|
/// </summary>
|
|
|
|
public ExtraRuleType RuleType { get; set; }
|
2019-12-06 20:40:06 +01:00
|
|
|
|
2018-09-12 19:26:21 +02:00
|
|
|
/// <summary>
|
2020-04-01 18:54:06 +02:00
|
|
|
/// Gets or sets the type of the media to return when matched.
|
2018-09-12 19:26:21 +02:00
|
|
|
/// </summary>
|
|
|
|
public MediaType MediaType { get; set; }
|
|
|
|
}
|
|
|
|
}
|