// --------------------------------------------------------------------------------------------------------------------
//
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
//
//
// A Movie Chapter
//
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrakeWPF.Services.Encode.Model.Models
{
using System;
using HandBrakeWPF.Utilities;
///
/// A Movie Chapter
///
public class ChapterMarker : PropertyChangedBase
{
///
/// Backing field for chapter name
///
private string chapterName;
///
/// Initializes a new instance of the class.
///
public ChapterMarker()
{
}
///
/// Initializes a new instance of the class.
///
///
/// The number.
///
///
/// The name.
///
///
/// The duration.
///
public ChapterMarker(int number, string name, TimeSpan duration)
{
this.ChapterName = name;
this.ChapterNumber = number;
this.Duration = duration;
}
///
/// Initializes a new instance of the class.
/// Copy Constructor
///
///
/// The chapter.
///
public ChapterMarker(ChapterMarker chapter)
{
this.ChapterName = chapter.ChapterName;
this.ChapterNumber = chapter.ChapterNumber;
this.Duration = chapter.Duration;
}
///
/// Gets or sets The number of this Chapter, in regards to it's parent Title
///
public int ChapterNumber { get; set; }
///
/// Gets or sets the duration.
///
public TimeSpan Duration { get; set; }
///
/// Gets or sets ChapterName.
///
public string ChapterName
{
get
{
return this.chapterName;
}
set
{
this.chapterName = value;
this.NotifyOfPropertyChange(() => this.ChapterName);
}
}
}
}