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); } }
private void UpdateNeighboursArtists(bool randomizeList) { NeighboursArtistsRequest request = new NeighboursArtistsRequest( randomizeList, new NeighboursArtistsRequest.NeighboursArtistsRequestHandler(OnUpdateNeighboursArtistsCompleted)); _lastRequest = request; ascrobbler.AddRequest(request); }