public static CreateNamespaceResponse Unmarshall(UnmarshallerContext context) { CreateNamespaceResponse createNamespaceResponse = new CreateNamespaceResponse(); createNamespaceResponse.HttpResponse = context.HttpResponse; return(createNamespaceResponse); }
public static CreateNamespaceResponse Unmarshall(UnmarshallerContext context) { CreateNamespaceResponse createNamespaceResponse = new CreateNamespaceResponse(); createNamespaceResponse.HttpResponse = context.HttpResponse; createNamespaceResponse.Code = context.StringValue("CreateNamespace.Code"); createNamespaceResponse.Message = context.StringValue("CreateNamespace.Message"); createNamespaceResponse.NamespaceId = context.StringValue("CreateNamespace.NamespaceId"); createNamespaceResponse.RequestId = context.StringValue("CreateNamespace.RequestId"); return(createNamespaceResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateNamespaceResponse response = new CreateNamespaceResponse(); 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("CapacityRegion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CapacityRegion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CreationStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IdentityStore", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IdentityStore = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = 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 CreateNamespaceResponse Unmarshall(UnmarshallerContext context) { CreateNamespaceResponse createNamespaceResponse = new CreateNamespaceResponse(); createNamespaceResponse.HttpResponse = context.HttpResponse; createNamespaceResponse.RequestId = context.StringValue("CreateNamespace.RequestId"); createNamespaceResponse.Code = context.StringValue("CreateNamespace.Code"); createNamespaceResponse.ErrorCode = context.StringValue("CreateNamespace.ErrorCode"); createNamespaceResponse.Message = context.StringValue("CreateNamespace.Message"); createNamespaceResponse.Success = context.BooleanValue("CreateNamespace.Success"); createNamespaceResponse.TraceId = context.StringValue("CreateNamespace.TraceId"); CreateNamespaceResponse.CreateNamespace_Data data = new CreateNamespaceResponse.CreateNamespace_Data(); data.RegionId = context.StringValue("CreateNamespace.Data.RegionId"); data.NamespaceId = context.StringValue("CreateNamespace.Data.NamespaceId"); data.NamespaceName = context.StringValue("CreateNamespace.Data.NamespaceName"); data.NamespaceDescription = context.StringValue("CreateNamespace.Data.NamespaceDescription"); createNamespaceResponse.Data = data; return(createNamespaceResponse); }