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