| | 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 isHearingImpair |
| | 16 | | { |
| 53 | 17 | | Path = path; |
| 53 | 18 | | IsDefault = isDefault; |
| 53 | 19 | | IsForced = isForced; |
| 53 | 20 | | IsHearingImpaired = isHearingImpaired; |
| 53 | 21 | | } |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// Gets or sets the path. |
| | 25 | | /// </summary> |
| | 26 | | /// <value>The path.</value> |
| | 27 | | public string Path { get; set; } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Gets or sets the language. |
| | 31 | | /// </summary> |
| | 32 | | /// <value>The language.</value> |
| | 33 | | public string? Language { get; set; } |
| | 34 | |
|
| | 35 | | /// <summary> |
| | 36 | | /// Gets or sets the title. |
| | 37 | | /// </summary> |
| | 38 | | /// <value>The title.</value> |
| | 39 | | public string? Title { get; set; } |
| | 40 | |
|
| | 41 | | /// <summary> |
| | 42 | | /// Gets or sets a value indicating whether this instance is default. |
| | 43 | | /// </summary> |
| | 44 | | /// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value> |
| | 45 | | public bool IsDefault { get; set; } |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// Gets or sets a value indicating whether this instance is forced. |
| | 49 | | /// </summary> |
| | 50 | | /// <value><c>true</c> if this instance is forced; otherwise, <c>false</c>.</value> |
| | 51 | | public bool IsForced { get; set; } |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Gets or sets a value indicating whether this instance is for the hearing impaired. |
| | 55 | | /// </summary> |
| | 56 | | /// <value><c>true</c> if this instance is for the hearing impaired; otherwise, <c>false</c>.</value> |
| | 57 | | public bool IsHearingImpaired { get; set; } |
| | 58 | | } |
| | 59 | | } |