mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-10-17 15:33:09 +01:00
38 lines
702 B
C#
38 lines
702 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SpotifyAPIv1
|
|
{
|
|
public class MusicHandler
|
|
{
|
|
RemoteHandler rh;
|
|
StatusResponse sr;
|
|
public MusicHandler()
|
|
{
|
|
rh = RemoteHandler.GetInstance();
|
|
}
|
|
public Boolean IsPlaying()
|
|
{
|
|
return sr.playing;
|
|
}
|
|
|
|
public Track GetCurrentTrack()
|
|
{
|
|
return sr.track;
|
|
}
|
|
|
|
public StatusResponse GetStatusResponse()
|
|
{
|
|
return sr;
|
|
}
|
|
|
|
internal void Update(StatusResponse sr)
|
|
{
|
|
this.sr = sr;
|
|
}
|
|
}
|
|
}
|