SubtitleInfo.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. namespace Emby.Naming.Subtitles
  2. {
  3. /// <summary>
  4. /// Class holding information about subtitle.
  5. /// </summary>
  6. public class SubtitleInfo
  7. {
  8. /// <summary>
  9. /// Initializes a new instance of the <see cref="SubtitleInfo"/> class.
  10. /// </summary>
  11. /// <param name="path">Path to file.</param>
  12. /// <param name="isDefault">Is subtitle default.</param>
  13. /// <param name="isForced">Is subtitle forced.</param>
  14. public SubtitleInfo(string path, bool isDefault, bool isForced)
  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 a value indicating whether this instance is default.
  32. /// </summary>
  33. /// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value>
  34. public bool IsDefault { get; set; }
  35. /// <summary>
  36. /// Gets or sets a value indicating whether this instance is forced.
  37. /// </summary>
  38. /// <value><c>true</c> if this instance is forced; otherwise, <c>false</c>.</value>
  39. public bool IsForced { get; set; }
  40. }
  41. }