// --------------------------------------------------------------------------------------------------------------------
//
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
//
//
// An object representing a Chapter aosciated with a Title, in a DVD
//
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Interop.Model.Scan
{
using System;
using System.Globalization;
///
/// An object representing a Chapter aosciated with a Title, in a DVD
///
public class Chapter
{
///
/// Gets or sets the name.
///
public string Name { get; set; }
///
/// Gets or sets the number of this Chapter, in regards to its parent Title
///
public int ChapterNumber { get; set; }
///
/// Gets or sets the duration of this chapter.
///
public TimeSpan Duration { get; set; }
///
/// Override of the ToString method to make this object easier to use in the UI
///
/// A string formatted as: {chapter #}
public override string ToString()
{
return this.ChapterNumber.ToString(CultureInfo.InvariantCulture);
}
}
}