ExtraRule.cs 968 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma warning disable CS1591
  2. using MediaBrowser.Model.Entities;
  3. using MediaType = Emby.Naming.Common.MediaType;
  4. namespace Emby.Naming.Video
  5. {
  6. /// <summary>
  7. /// A rule used to match a file path with an <see cref="MediaBrowser.Model.Entities.ExtraType"/>.
  8. /// </summary>
  9. public class ExtraRule
  10. {
  11. /// <summary>
  12. /// Gets or sets the token to use for matching against the file path.
  13. /// </summary>
  14. public string Token { get; set; }
  15. /// <summary>
  16. /// Gets or sets the type of the extra to return when matched.
  17. /// </summary>
  18. public ExtraType ExtraType { get; set; }
  19. /// <summary>
  20. /// Gets or sets the type of the rule.
  21. /// </summary>
  22. public ExtraRuleType RuleType { get; set; }
  23. /// <summary>
  24. /// Gets or sets the type of the media to return when matched.
  25. /// </summary>
  26. public MediaType MediaType { get; set; }
  27. }
  28. }