Exemple #1
0
        private void PlaylistDeleted(HttpWebRequest request, HttpWebResponse response, String jsonData, Exception error)
        {
            if (error != null)
            {
                ThrowError(error);
                return;
            }

            DeletePlaylistResp resp = null;

            try
            {
                resp = JsonConvert.DeserializeObject <DeletePlaylistResp>(jsonData);
            }
            catch (System.Exception ex)
            {
                ThrowError(ex);
                return;
            }

            if (OnDeletePlaylist != null)
            {
                OnDeletePlaylist(resp);
            }
        }
 void api_OnDeletePlaylist(DeletePlaylistResp resp)
 {
     if (!String.IsNullOrEmpty(resp.ID))
     {
         MessageBox.Show("Deleted");
     }
 }