// -------------------------------------------------------------------------------------------------------------------- // // 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 scanned DVD // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrake.ApplicationServices.Parsing { using System.Collections.Generic; using System.Runtime.Serialization; /// /// An object representing a scanned DVD /// [DataContract] public class Source { /// /// Initializes a new instance of the class. /// Default constructor for this object /// public Source() { Titles = new List(); } /// <summary> /// Gets or sets ScanPath. /// The Path used by the Scan Service. /// </summary> [DataMember] public string ScanPath { get; set; } /// <summary> /// Gets or sets Titles. A list of titles from the source /// </summary> [DataMember] public List<Title> Titles { get; set; } /// <summary> /// Copy this Source to another Source Model /// </summary> /// <param name="source"> /// The source. /// </param> public void CopyTo(Source source) { source.Titles = this.Titles; source.ScanPath = this.ScanPath; } } }