/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetAliasResponse response = new GetAliasResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AliasArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AliasArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FunctionVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FunctionVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RevisionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RevisionId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RoutingConfig", targetDepth)) { var unmarshaller = AliasRoutingConfigurationUnmarshaller.Instance; response.RoutingConfig = unmarshaller.Unmarshall(context); continue; } } return(response); }
public async Task <IActionResult> GetVisaAliasAsync([FromBody] GetAliasRequest request) { GetAliasResponse response = await _AcbaVisaAliasService.GetVisaAliasAsync(request); return(Ok(response)); }