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