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

            AddPlaylistResp resp = null;

            try
            {
                resp = JsonConvert.DeserializeObject <AddPlaylistResp>(jsonData);
            }
            catch (Exception e)
            {
                ThrowError(error);
                return;
            }

            if (OnCreatePlaylistComplete != null)
            {
                OnCreatePlaylistComplete(resp);
            }
        }
 void api_OnCreatePlaylistComplete(AddPlaylistResp resp)
 {
     if (resp.Success)
         MessageBox.Show("Created pl");
 }