Answers for "new TextractDocument(results)"

C#
0

new TextractDocument(results)

public List< GetDocumentAnalysisResponse > GetJobResults(string jobId) {
			var result = new List< GetDocumentAnalysisResponse >();
			var response = this.textract. GetDocumentAnalysisAsync(new GetDocumentAnalysisRequest {
				JobId = jobId
			});
			response.Wait();
			result.Add(response.Result);
			var nextToken = response.Result.NextToken;
			while(nextToken != null) {
				this.Wait();
				response = this.textract. GetDocumentAnalysisAsync(new GetDocumentAnalysisRequest {
					JobId = jobId,
					NextToken = response.Result.NextToken
				});
				response.Wait();
				result.Add(response.Result);
				nextToken = response.Result.NextToken;
			}
			return result;
		}
Posted by: Guest on April-18-2020

C# Answers by Framework

Browse Popular Code Answers by Language