2018-09-12 17:26:21 +00:00
|
|
|
namespace Emby.Naming.Subtitles
|
|
|
|
{
|
2020-11-10 18:23:10 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Class holding information about subtitle.
|
|
|
|
/// </summary>
|
2018-09-12 17:26:21 +00:00
|
|
|
public class SubtitleInfo
|
|
|
|
{
|
2020-11-10 18:23:10 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="SubtitleInfo"/> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="path">Path to file.</param>
|
|
|
|
/// <param name="isDefault">Is subtitle default.</param>
|
|
|
|
/// <param name="isForced">Is subtitle forced.</param>
|
2020-11-01 09:47:31 +00:00
|
|
|
public SubtitleInfo(string path, bool isDefault, bool isForced)
|
|
|
|
{
|
|
|
|
Path = path;
|
|
|
|
IsDefault = isDefault;
|
|
|
|
IsForced = isForced;
|
|
|
|
}
|
|
|
|
|
2018-09-12 17:26:21 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the path.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The path.</value>
|
|
|
|
public string Path { get; set; }
|
2019-05-10 18:37:42 +00:00
|
|
|
|
2018-09-12 17:26:21 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the language.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The language.</value>
|
2020-11-01 09:47:31 +00:00
|
|
|
public string? Language { get; set; }
|
2019-05-10 18:37:42 +00:00
|
|
|
|
2018-09-12 17:26:21 +00:00
|
|
|
/// <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; }
|
2019-05-10 18:37:42 +00:00
|
|
|
|
2018-09-12 17:26:21 +00:00
|
|
|
/// <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; }
|
|
|
|
}
|
|
|
|
}
|