mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 06:17:14 -04:00
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
#pragma warning disable CS1591
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
using MediaType = Emby.Naming.Common.MediaType;
|
|
|
|
namespace Emby.Naming.Video
|
|
{
|
|
/// <summary>
|
|
/// A rule used to match a file path with an <see cref="MediaBrowser.Model.Entities.ExtraType"/>.
|
|
/// </summary>
|
|
public class ExtraRule
|
|
{
|
|
public ExtraRule(ExtraType extraType, ExtraRuleType ruleType, string token, MediaType mediaType)
|
|
{
|
|
Token = token;
|
|
ExtraType = extraType;
|
|
RuleType = ruleType;
|
|
MediaType = mediaType;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the token to use for matching against the file path.
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the type of the extra to return when matched.
|
|
/// </summary>
|
|
public ExtraType ExtraType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the type of the rule.
|
|
/// </summary>
|
|
public ExtraRuleType RuleType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the type of the media to return when matched.
|
|
/// </summary>
|
|
public MediaType MediaType { get; set; }
|
|
}
|
|
}
|