public void OnUpdateFriendsArtistsCompleted(FriendsArtistsRequest request, List<Song> FriendsArtists) { if (request.Equals(_lastRequest)) { OnScrobbleLookupsCompleted(FriendsArtists); } else { Log.Warn("GUIMusicPlaylist: OnUpdateFriendsArtistsCompleted: unexpected response for request: {0}", request.Type); } }
private void UpdateFriendsArtists(bool randomizeList) { FriendsArtistsRequest request = new FriendsArtistsRequest( randomizeList, new FriendsArtistsRequest.FriendsArtistsRequestHandler(OnUpdateFriendsArtistsCompleted)); _lastRequest = request; ascrobbler.AddRequest(request); }