2023-01-22 10:28:52 +00:00
|
|
|
|
using System;
|
|
|
|
|
using SpotifyAPI.Web;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Selector.SignalR;
|
|
|
|
|
|
|
|
|
|
public interface INowPlayingHubClient
|
|
|
|
|
{
|
|
|
|
|
public Task OnNewPlaying(CurrentlyPlayingDTO context);
|
|
|
|
|
public Task OnNewAudioFeature(TrackAudioFeatures features);
|
|
|
|
|
public Task OnNewPlayCount(PlayCount playCount);
|
2023-05-26 23:34:09 +01:00
|
|
|
|
public Task OnNewCard(Card card);
|
2023-01-22 10:28:52 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface INowPlayingHub
|
|
|
|
|
{
|
|
|
|
|
Task OnConnected();
|
|
|
|
|
Task PlayDensityFacts(string track, string artist, string album, string albumArtist);
|
|
|
|
|
Task SendAudioFeatures(string trackId);
|
|
|
|
|
Task SendFacts(string track, string artist, string album, string albumArtist);
|
|
|
|
|
Task SendNewPlaying();
|
|
|
|
|
Task SendPlayCount(string track, string artist, string album, string albumArtist);
|
|
|
|
|
}
|
|
|
|
|
|