new TextractDocument(results) code example

Example: 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;
		}