/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteDataSetResponse response = new DeleteDataSetResponse(); 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) { DeleteDataSetResponse response = new DeleteDataSetResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DataSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DataSetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RequestId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RequestId = unmarshaller.Unmarshall(context); continue; } } response.Status = (int)context.ResponseData.StatusCode; return(response); }
public static DeleteDataSetResponse Unmarshall(UnmarshallerContext _ctx) { DeleteDataSetResponse deleteDataSetResponse = new DeleteDataSetResponse(); deleteDataSetResponse.HttpResponse = _ctx.HttpResponse; deleteDataSetResponse.RequestId = _ctx.StringValue("DeleteDataSet.RequestId"); deleteDataSetResponse.Success = _ctx.BooleanValue("DeleteDataSet.Success"); deleteDataSetResponse.Code = _ctx.StringValue("DeleteDataSet.Code"); deleteDataSetResponse.Message = _ctx.StringValue("DeleteDataSet.Message"); return(deleteDataSetResponse); }
public static DeleteDataSetResponse Unmarshall(UnmarshallerContext context) { DeleteDataSetResponse deleteDataSetResponse = new DeleteDataSetResponse(); deleteDataSetResponse.HttpResponse = context.HttpResponse; deleteDataSetResponse.RequestId = context.StringValue("DeleteDataSet.RequestId"); deleteDataSetResponse.Code = context.StringValue("DeleteDataSet.Code"); deleteDataSetResponse.Message = context.StringValue("DeleteDataSet.Message"); DeleteDataSetResponse.DeleteDataSet_Result result = new DeleteDataSetResponse.DeleteDataSet_Result(); result.InstanceId = context.StringValue("DeleteDataSet.Result.InstanceId"); result.VersionId = context.StringValue("DeleteDataSet.Result.VersionId"); result.State = context.StringValue("DeleteDataSet.Result.State"); result.GmtCreate = context.LongValue("DeleteDataSet.Result.GmtCreate"); result.GmtModified = context.LongValue("DeleteDataSet.Result.GmtModified"); deleteDataSetResponse.Result = result; return(deleteDataSetResponse); }