public static CreateIntentResponse Unmarshall(UnmarshallerContext context) { CreateIntentResponse createIntentResponse = new CreateIntentResponse(); createIntentResponse.HttpResponse = context.HttpResponse; createIntentResponse.RequestId = context.StringValue("CreateIntent.RequestId"); createIntentResponse.IntentId = context.StringValue("CreateIntent.IntentId"); return(createIntentResponse); }
public static CreateIntentResponse Unmarshall(UnmarshallerContext context) { CreateIntentResponse createIntentResponse = new CreateIntentResponse(); createIntentResponse.HttpResponse = context.HttpResponse; createIntentResponse.RequestId = context.StringValue("CreateIntent.RequestId"); createIntentResponse.Success = context.BooleanValue("CreateIntent.Success"); createIntentResponse.Code = context.StringValue("CreateIntent.Code"); createIntentResponse.Message = context.StringValue("CreateIntent.Message"); createIntentResponse.HttpStatusCode = context.IntegerValue("CreateIntent.HttpStatusCode"); createIntentResponse.IntentId = context.StringValue("CreateIntent.IntentId"); return createIntentResponse; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateIntentResponse response = new CreateIntentResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("botId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BotId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("botVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BotVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creationDateTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationDateTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dialogCodeHook", targetDepth)) { var unmarshaller = DialogCodeHookSettingsUnmarshaller.Instance; response.DialogCodeHook = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fulfillmentCodeHook", targetDepth)) { var unmarshaller = FulfillmentCodeHookSettingsUnmarshaller.Instance; response.FulfillmentCodeHook = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("inputContexts", targetDepth)) { var unmarshaller = new ListUnmarshaller <InputContext, InputContextUnmarshaller>(InputContextUnmarshaller.Instance); response.InputContexts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("intentClosingSetting", targetDepth)) { var unmarshaller = IntentClosingSettingUnmarshaller.Instance; response.IntentClosingSetting = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("intentConfirmationSetting", targetDepth)) { var unmarshaller = IntentConfirmationSettingUnmarshaller.Instance; response.IntentConfirmationSetting = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("intentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IntentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("intentName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IntentName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kendraConfiguration", targetDepth)) { var unmarshaller = KendraConfigurationUnmarshaller.Instance; response.KendraConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("localeId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LocaleId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outputContexts", targetDepth)) { var unmarshaller = new ListUnmarshaller <OutputContext, OutputContextUnmarshaller>(OutputContextUnmarshaller.Instance); response.OutputContexts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("parentIntentSignature", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ParentIntentSignature = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sampleUtterances", targetDepth)) { var unmarshaller = new ListUnmarshaller <SampleUtterance, SampleUtteranceUnmarshaller>(SampleUtteranceUnmarshaller.Instance); response.SampleUtterances = unmarshaller.Unmarshall(context); continue; } } return(response); }