Exemplo n.º 1
0
 public void PlayingTrackChanged(QueuedTrack track)
 {
     try
     {
         using (var client = new SpotifyCallbackServiceClient())
         {
             client.PlayingTrackChanged(track);
         }
     }
     catch (Exception ex)
     {
         logger.Error("PlayingTrackChanged failed with exception {0}", ex.Message);
     }
 }
Exemplo n.º 2
0
 public void QueueChanged(IEnumerable<QueuedTrack> notifyQueue)
 {
     try
     {
         using (var client = new SpotifyCallbackServiceClient())
         {
             client.QueueChanged(notifyQueue.ToList());
         }
     }
     catch (Exception ex)
     {
         logger.Error("QueueChanged failed with exception {0}", ex.Message);
     }
 }
Exemplo n.º 3
0
 public void TrackHistoryChanged(PagedResult<QueuedTrack> trackHistory)
 {
     try
     {
         using (var client = new SpotifyCallbackServiceClient())
         {
             client.TrackHistoryChanged(trackHistory);
         }
     }
     catch (Exception ex)
     {
         logger.Error("TrackHistoryChanged failed with exception {0}", ex.Message);
     }
 }
Exemplo n.º 4
0
 public void PlayingTrackChanged(QueuedTrack track)
 {
     try
     {
         using (var client = new SpotifyCallbackServiceClient())
         {
             client.PlayingTrackChanged(track);
         }
     }
     catch (Exception ex)
     {
         logger.Error("PlayingTrackChanged failed with exception {0}", ex.Message);
     }
 }
Exemplo n.º 5
0
 public void QueueChanged(IEnumerable <QueuedTrack> notifyQueue)
 {
     try
     {
         using (var client = new SpotifyCallbackServiceClient())
         {
             client.QueueChanged(notifyQueue.ToList());
         }
     }
     catch (Exception ex)
     {
         logger.Error("QueueChanged failed with exception {0}", ex.Message);
     }
 }
Exemplo n.º 6
0
 public void TrackHistoryChanged(PagedResult <QueuedTrack> trackHistory)
 {
     try
     {
         using (var client = new SpotifyCallbackServiceClient())
         {
             client.TrackHistoryChanged(trackHistory);
         }
     }
     catch (Exception ex)
     {
         logger.Error("TrackHistoryChanged failed with exception {0}", ex.Message);
     }
 }