aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Subtitles/SubtitleFileInfo.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2022-01-27 14:21:53 +0100
committerShadowghost <Ghost_of_Stone@web.de>2022-02-18 22:19:24 +0100
commitca5112f45a724fa24a420fa2b62c0849f99ff756 (patch)
treef071bacdbe36bf55cc41de0cf0ae999e58d5967d /Emby.Naming/Subtitles/SubtitleFileInfo.cs
parentb92e1baa3c28870f49f82bfef9e48cd79b9b24c6 (diff)
feat(external-media): refactor external subtitle and audio provider
Diffstat (limited to 'Emby.Naming/Subtitles/SubtitleFileInfo.cs')
-rw-r--r--Emby.Naming/Subtitles/SubtitleFileInfo.cs51
1 files changed, 51 insertions, 0 deletions
diff --git a/Emby.Naming/Subtitles/SubtitleFileInfo.cs b/Emby.Naming/Subtitles/SubtitleFileInfo.cs
new file mode 100644
index 000000000..ed9ab3ebd
--- /dev/null
+++ b/Emby.Naming/Subtitles/SubtitleFileInfo.cs
@@ -0,0 +1,51 @@
+namespace Emby.Naming.Subtitles
+{
+ /// <summary>
+ /// Class holding information about subtitle.
+ /// </summary>
+ public class SubtitleFileInfo
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="SubtitleFileInfo"/> class.
+ /// </summary>
+ /// <param name="path">Path to file.</param>
+ /// <param name="isDefault">Is subtitle default.</param>
+ /// <param name="isForced">Is subtitle forced.</param>
+ public SubtitleFileInfo(string path, bool isDefault, bool isForced)
+ {
+ Path = path;
+ IsDefault = isDefault;
+ IsForced = isForced;
+ }
+
+ /// <summary>
+ /// Gets or sets the path.
+ /// </summary>
+ /// <value>The path.</value>
+ public string Path { get; set; }
+
+ /// <summary>
+ /// Gets or sets the language.
+ /// </summary>
+ /// <value>The language.</value>
+ public string? Language { get; set; }
+
+ /// <summary>
+ /// Gets or sets the title.
+ /// </summary>
+ /// <value>The title.</value>
+ public string? Title { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether this instance is default.
+ /// </summary>
+ /// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value>
+ public bool IsDefault { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether this instance is forced.
+ /// </summary>
+ /// <value><c>true</c> if this instance is forced; otherwise, <c>false</c>.</value>
+ public bool IsForced { get; set; }
+ }
+}