// 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 class DiscoverablesViewModel : PlayableCollectionGroupViewModel, ISdkViewModel, IDiscoverables
{
private readonly IDiscoverables _discoverables;
///
/// Creates a new instance of the class.
///
/// The to wrap.
public DiscoverablesViewModel(IDiscoverables discoverables)
: base(discoverables)
{
_discoverables = discoverables;
}
///
IReadOnlyList IMerged.Sources => this.GetSources();
///
public bool Equals(ICoreDiscoverables other) => _discoverables.Equals(other);
}
}