public static RunMedQAResponse Unmarshall(UnmarshallerContext _ctx) { RunMedQAResponse runMedQAResponse = new RunMedQAResponse(); runMedQAResponse.HttpResponse = _ctx.HttpResponse; runMedQAResponse.Message = _ctx.StringValue("RunMedQA.Message"); runMedQAResponse.RequestId = _ctx.StringValue("RunMedQA.RequestId"); runMedQAResponse.Code = _ctx.StringValue("RunMedQA.Code"); RunMedQAResponse.RunMedQA_Data data = new RunMedQAResponse.RunMedQA_Data(); data.Reports = _ctx.StringValue("RunMedQA.Data.Reports"); data.QuestionType = _ctx.StringValue("RunMedQA.Data.QuestionType"); data.AnswerType = _ctx.StringValue("RunMedQA.Data.AnswerType"); data.Question = _ctx.StringValue("RunMedQA.Data.Question"); data.SessionId = _ctx.StringValue("RunMedQA.Data.SessionId"); List <string> data_options = new List <string>(); for (int i = 0; i < _ctx.Length("RunMedQA.Data.Options.Length"); i++) { data_options.Add(_ctx.StringValue("RunMedQA.Data.Options[" + i + "]")); } data.Options = data_options; runMedQAResponse.Data = data; return(runMedQAResponse); }
public static RunMedQAResponse Unmarshall(UnmarshallerContext _ctx) { RunMedQAResponse runMedQAResponse = new RunMedQAResponse(); runMedQAResponse.HttpResponse = _ctx.HttpResponse; runMedQAResponse.RequestId = _ctx.StringValue("RunMedQA.RequestId"); RunMedQAResponse.RunMedQA_Data data = new RunMedQAResponse.RunMedQA_Data(); data.Answer = _ctx.StringValue("RunMedQA.Data.Answer"); List <string> data_similarQuestion = new List <string>(); for (int i = 0; i < _ctx.Length("RunMedQA.Data.SimilarQuestion.Length"); i++) { data_similarQuestion.Add(_ctx.StringValue("RunMedQA.Data.SimilarQuestion[" + i + "]")); } data.SimilarQuestion = data_similarQuestion; runMedQAResponse.Data = data; return(runMedQAResponse); }