/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteSubscriptionResponse response = new DeleteSubscriptionResponse(); return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteSubscriptionResponse response = new DeleteSubscriptionResponse(); return response; }
/// <summary> /// 删除订阅 /// </summary> public DeleteSubscriptionResponse DeleteSubscription(DeleteSubscriptionRequest deleteSubscriptionRequest) { Dictionary <string, string> urlParam = new Dictionary <string, string>(); urlParam.Add("subscription_id", deleteSubscriptionRequest.SubscriptionId.ToString()); string urlPath = HttpUtils.AddUrlPath("/v5/iot/{project_id}/subscriptions/{subscription_id}", urlParam); SdkRequest request = HttpUtils.InitSdkRequest(urlPath, deleteSubscriptionRequest); HttpResponseMessage response = DoHttpRequestSync("DELETE", request); DeleteSubscriptionResponse deleteSubscriptionResponse = JsonUtils.DeSerializeNull <DeleteSubscriptionResponse>(response); return(deleteSubscriptionResponse); }