Exemple #1
0
        private void PlaylistSongsDeleted(HttpWebRequest request, HttpWebResponse response, String jsonData, Exception error)
        {
            MutatePlaylistResponse mutateResponse = JsonConvert.DeserializeObject <MutatePlaylistResponse>(jsonData);

            // Add the callback
            if (OnDeleteFromPlaylistComplete != null)
            {
                OnDeleteFromPlaylistComplete(mutateResponse);
            }
        }
Exemple #2
0
        private void PlaylistCreated(HttpWebRequest request, HttpWebResponse response, String jsonData, Exception error)
        {
            MutatePlaylistResponse mutateResponse = JsonConvert.DeserializeObject <MutatePlaylistResponse>(jsonData);
            MutateResponse         responseObject = mutateResponse.MutateResponses.FirstOrDefault();

            if (OnCreatePlaylistComplete != null)
            {
                OnCreatePlaylistComplete(responseObject);
            }
        }