Selector/Selector.SignalR/INow.cs
2023-01-22 10:28:52 +00:00

25 lines
749 B
C#

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);
public Task OnNewCard(ICard card);
}
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);
}