Exemplo n.º 1
0
        public void DeleteIOSCertTest()
        {
            var request = new AppIOSCertDeleteRequest();

            var client   = new Client(_apiKey, _secretKey);
            var response = client.DeleteAppIOSCert(request);

            Assert.NotNull(response);
            Assert.Greater(response.RequestId, 0);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Delete App IOS Cert
        /// </summary>
        /// <param name="request">Push request parameter</param>
        /// <returns></returns>
        public AppIOSCertDeleteResponse DeleteAppIOSCert(AppIOSCertDeleteRequest request)
        {
            var postStr = request.GeneratePostData(Apikey, SecretKey);

            var response = PostData(request.ServiceUrl, postStr);

            if (response == null)
            {
                return(null);
            }

            AppIOSCertDeleteResponse result = null;

            try
            {
                result = JsonConvert.DeserializeObject <AppIOSCertDeleteResponse>(response);
            }
            catch (Exception ex)
            {
                Debug.WriteLine("DeleteAppIOSCert Error Response Deserialize Fail, May not valid json:" + ex.Message + " " + response);
            }
            return(result);
        }