ExternalPathParserResult.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. public ExternalPathParserResult(string path, bool isDefault = false, bool isForced = false)
  15. {
  16. Path = path;
  17. IsDefault = isDefault;
  18. IsForced = isForced;
  19. }
  20. /// <summary>
  21. /// Gets or sets the path.
  22. /// </summary>
  23. /// <value>The path.</value>
  24. public string Path { get; set; }
  25. /// <summary>
  26. /// Gets or sets the language.
  27. /// </summary>
  28. /// <value>The language.</value>
  29. public string? Language { get; set; }
  30. /// <summary>
  31. /// Gets or sets the title.
  32. /// </summary>
  33. /// <value>The title.</value>
  34. public string? Title { get; set; }
  35. /// <summary>
  36. /// Gets or sets a value indicating whether this instance is default.
  37. /// </summary>
  38. /// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value>
  39. public bool IsDefault { get; set; }
  40. /// <summary>
  41. /// Gets or sets a value indicating whether this instance is forced.
  42. /// </summary>
  43. /// <value><c>true</c> if this instance is forced; otherwise, <c>false</c>.</value>
  44. public bool IsForced { get; set; }
  45. }
  46. }