/// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            DeleteImageResponse response = new DeleteImageResponse();


            return(response);
        }
Example #2
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            DeleteImageResponse response = new DeleteImageResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("imageBuildVersionArn", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.ImageBuildVersionArn = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("requestId", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.RequestId = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return(response);
        }
        public static DeleteImageResponse Unmarshall(UnmarshallerContext context)
        {
            DeleteImageResponse deleteImageResponse = new DeleteImageResponse();

            deleteImageResponse.HttpResponse = context.HttpResponse;

            return(deleteImageResponse);
        }
Example #4
0
        public static DeleteImageResponse Unmarshall(UnmarshallerContext context)
        {
            DeleteImageResponse deleteImageResponse = new DeleteImageResponse();

            deleteImageResponse.HttpResponse = context.HttpResponse;
            deleteImageResponse.RequestId    = context.StringValue("DeleteImage.RequestId");

            return(deleteImageResponse);
        }
        public static DeleteImageResponse Unmarshall(UnmarshallerContext context)
        {
            DeleteImageResponse deleteImageResponse = new DeleteImageResponse();

            deleteImageResponse.HttpResponse = context.HttpResponse;
            deleteImageResponse.RequestId = context.StringValue("DeleteImage.RequestId");

            return deleteImageResponse;
        }
        public static DeleteImageResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DeleteImageResponse deleteImageResponse = new DeleteImageResponse();

            deleteImageResponse.HttpResponse = _ctx.HttpResponse;
            deleteImageResponse.RequestId    = _ctx.StringValue("DeleteImage.RequestId");
            deleteImageResponse.ImageUri     = _ctx.StringValue("DeleteImage.ImageUri");
            deleteImageResponse.SetId        = _ctx.StringValue("DeleteImage.SetId");

            return(deleteImageResponse);
        }
        public static DeleteImageResponse Unmarshall(UnmarshallerContext context)
        {
            DeleteImageResponse deleteImageResponse = new DeleteImageResponse();

            deleteImageResponse.HttpResponse = context.HttpResponse;
            deleteImageResponse.RequestId    = context.StringValue("DeleteImage.RequestId");
            deleteImageResponse.Success      = context.BooleanValue("DeleteImage.Success");
            deleteImageResponse.Message      = context.StringValue("DeleteImage.Message");
            deleteImageResponse.Code         = context.IntegerValue("DeleteImage.Code");

            return(deleteImageResponse);
        }
        /// <summary>
        /// 删除图片
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public DeleteImageResponse DeleteImage(DeleteImageRequest request)
        {
            DeleteImageResponse response = new DeleteImageResponse();

            try
            {
                response = acsClient.GetAcsResponse(request);
            }
            catch (Exception ex)
            {
            }
            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)
        {
            DeleteImageResponse response = new DeleteImageResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("Image", targetDepth))
                {
                    var unmarshaller = ImageUnmarshaller.Instance;
                    response.Image = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return(response);
        }
        /// <summary>
        /// 删除图片
        /// </summary>
        /// <param name="imgUrls">多个用,分割</param>
        /// <returns></returns>
        public void DeleteImage(string imgUrls)
        {
            DeleteImageRequest request = new DeleteImageRequest();

            request.DeleteImageType = "ImageURL";
            request.ImageURLs       = imgUrls;
            //根据ImageId删除图片文件
            //request.DeleteImageType = "ImageId";
            //request.ImageIds = "ImageId1,ImageId2";
            //根据VideoId删除指定ImageType的图片文件
            //request.DeleteImageType = "VideoId";
            //request.VideoId = "VideoId";
            //request.ImageType = "SpriteSnapshot";
            DeleteImageResponse response = new DeleteImageResponse();

            try
            {
                response = acsClient.GetAcsResponse(request);
            }
            catch (Exception ex)
            {
                throw;
            }
        }