// 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 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 RecentlyPlayedViewModel : PlayableCollectionGroupViewModel, ISdkViewModel, IRecentlyPlayed { private readonly IRecentlyPlayed _recentlyPlayed; /// /// Initializes a new instance of the class. /// /// The to wrap. public RecentlyPlayedViewModel(IRecentlyPlayed recentlyPlayed) : base(recentlyPlayed) { _recentlyPlayed = recentlyPlayed; } /// IReadOnlyList IMerged.Sources => this.GetSources(); /// public bool Equals(ICoreRecentlyPlayed other) => _recentlyPlayed.Equals(other); } }