// Copyright (c) Arlo Godfrey. All Rights Reserved. // Licensed under the GNU Lesser General Public License, Version 3.0 with additional terms. // See the LICENSE, LICENSE.LESSER and LICENSE.ADDITIONAL files in the project root for more information. using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using StrixMusic.Sdk.AdapterModels; using StrixMusic.Sdk.AppModels; using StrixMusic.Sdk.CoreModels; using StrixMusic.Sdk.Extensions; namespace StrixMusic.Sdk.ViewModels { /// /// A ViewModel for . /// public sealed class LibraryViewModel : PlayableCollectionGroupViewModel, ISdkViewModel, ILibrary { private readonly ILibrary _library; /// /// Creates a new instance of the class. /// /// The to wrap. public LibraryViewModel(ILibrary library) : base(library) { _library = library; } /// IReadOnlyList IMerged.Sources => this.GetSources(); /// public bool Equals(ICoreLibrary other) => _library.Equals(other); } }