Exemplo n.º 1
0
 private Task UpdateShortStatus(ShortStatusJsonEvent ev)
 {
     return(OnUiThread(() => {
         CurrentPlayerState = PimpWebSocket.FromName(ev.state);
         TrackPosition = TimeSpan.FromSeconds(ev.position);
         Volume = ev.volume;
         IsMute = ev.mute;
     }));
 }
Exemplo n.º 2
0
 private static PlayerState playerState(StatusPimpResponse status)
 {
     return(PimpWebSocket.FromName(status.state));
 }