Exemplo n.º 1
0
 public void OnUpdateNeighboursArtistsCompleted(NeighboursArtistsRequest request, List<Song> NeighboursArtists)
 {
   if (request.Equals(_lastRequest))
   {
     OnScrobbleLookupsCompleted(NeighboursArtists);
   }
   else
   {
     Log.Warn("GUIMusicPlaylist: OnUpdateNeighboursArtistsCompleted: unexpected response for request: {0}",
              request.Type);
   }
 }
Exemplo n.º 2
0
 private void UpdateNeighboursArtists(bool randomizeList)
 {
   NeighboursArtistsRequest request = new NeighboursArtistsRequest(
     randomizeList,
     new NeighboursArtistsRequest.NeighboursArtistsRequestHandler(OnUpdateNeighboursArtistsCompleted));
   _lastRequest = request;
   ascrobbler.AddRequest(request);
 }