コード例 #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);
            }
        }
コード例 #2
0
 void api_OnCreatePlaylistComplete(AddPlaylistResp resp)
 {
     if (resp.Success)
         MessageBox.Show("Created pl");
 }