ExternalPathParserResult.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. namespace Emby.Naming.ExternalFiles
  2. {
  3. /// <summary>
  4. /// Class holding information about external files.
  5. /// </summary>
  6. public class ExternalPathParserResult
  7. {
  8. /// <summary>
  9. /// Initializes a new instance of the <see cref="ExternalPathParserResult"/> class.
  10. /// </summary>
  11. /// <param name="path">Path to file.</param>
  12. /// <param name="isDefault">Is default.</param>
  13. /// <param name="isForced">Is forced.</param>
  14. /// <param name="isHearingImpaired">For the hearing impaired.</param>
  15. public ExternalPathParserResult(string path, bool isDefault = false, bool isForced = false, bool isHearingImpaired = false)
  16. {
  17. Path = path;
  18. IsDefault = isDefault;
  19. IsForced = isForced;
  20. IsHearingImpaired = isHearingImpaired;
  21. }
  22. /// <summary>
  23. /// Gets or sets the path.
  24. /// </summary>
  25. /// <value>The path.</value>
  26. public string Path { get; set; }
  27. /// <summary>
  28. /// Gets or sets the language.
  29. /// </summary>
  30. /// <value>The language.</value>
  31. public string? Language { get; set; }
  32. /// <summary>
  33. /// Gets or sets the title.
  34. /// </summary>
  35. /// <value>The title.</value>
  36. public string? Title { get; set; }
  37. /// <summary>
  38. /// Gets or sets a value indicating whether this instance is default.
  39. /// </summary>
  40. /// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value>
  41. public bool IsDefault { get; set; }
  42. /// <summary>
  43. /// Gets or sets a value indicating whether this instance is forced.
  44. /// </summary>
  45. /// <value><c>true</c> if this instance is forced; otherwise, <c>false</c>.</value>
  46. public bool IsForced { get; set; }
  47. /// <summary>
  48. /// Gets or sets a value indicating whether this instance is for the hearing impaired.
  49. /// </summary>
  50. /// <value><c>true</c> if this instance is for the hearing impaired; otherwise, <c>false</c>.</value>
  51. public bool IsHearingImpaired { get; set; }
  52. }
  53. }