Exemple #1
0
 /// <summary>
 /// Creates an empty audiobook with an id.
 /// </summary>
 internal Audiobook(int id, Library library = null)
 {
     mID      = id;
     Chapters = new SynchronizedCollection <Chapter>();
     Metadata = new AudiobookMetadata();
     Library  = library;
 }
        public override object Clone()
        {
            AudiobookMetadata copy = new AudiobookMetadata();

            copy.Title        = Title;
            copy.Description  = Description;
            copy.Genre        = Genre;
            copy.Path         = Path;
            copy.MetadataPath = MetadataPath;
            copy.ReleaseYear  = ReleaseYear;
            copy.Contributors = (Contributors)Contributors.Clone();

            return(copy);
        }