public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateCaseResponse response = new CreateCaseResponse(); context.Read(); UnmarshallResult(context, response); return(response); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateCaseResponse response = new CreateCaseResponse(); context.Read(); response.CreateCaseResult = CreateCaseResultUnmarshaller.GetInstance().Unmarshall(context); return(response); }
public static CreateCaseResponse Unmarshall(UnmarshallerContext context) { CreateCaseResponse createCaseResponse = new CreateCaseResponse(); createCaseResponse.HttpResponse = context.HttpResponse; createCaseResponse.RequestId = context.StringValue("CreateCase.RequestId"); createCaseResponse.Success = context.BooleanValue("CreateCase.Success"); createCaseResponse.CaseId = context.StringValue("CreateCase.CaseId"); return(createCaseResponse); }
public static async Task <string> CreateCase([ActivityTrigger] IDurableActivityContext context) { var contextInput = context.GetInput <(CreateCaseRequest createCaseRequest, string archeoId)>(); CreateCaseResponse createCaseResponse = await RestService.RestService.CreateCase(contextInput.createCaseRequest, contextInput.archeoId); if (string.IsNullOrEmpty(createCaseResponse.CaseNumber)) { return(null); } return(createCaseResponse.CaseNumber); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateCaseResponse response = new CreateCaseResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("caseId", targetDepth)) { response.CaseId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } return(response); }
private static void UnmarshallResult(JsonUnmarshallerContext context, CreateCaseResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("caseId", targetDepth)) { context.Read(); response.CaseId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }