// --------------------------------------------------------------------------------------------------------------------
//
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
//
//
// An object that represents a subtitle associated with a Title, in a DVD
//
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop.SourceData
{
///
/// An object that represents a subtitle associated with a Title, in a DVD
///
public class Subtitle
{
///
/// Gets or sets the track number of this Subtitle
///
public int TrackNumber { get; set; }
///
/// Gets or sets the language (if detected) of this Subtitle
///
public string Language { get; set; }
///
/// Gets or sets Langauage Code
///
public string LanguageCode { get; set; }
///
/// Gets or sets SubtitleType.
///
public SubtitleType SubtitleType { get; set; }
///
/// Gets Subtitle Type
///
public string TypeString
{
get
{
return this.SubtitleType == SubtitleType.Picture ? "Bitmap" : "Text";
}
}
///
/// Override of the ToString method to make this object easier to use in the UI
///
/// A string formatted as: {track #} {language}
public override string ToString()
{
return string.Format("{0} {1} ({2})", this.TrackNumber, this.Language, this.TypeString);
}
}
}