protected GoogleOcrResult(TimeSpan processTime, ImageContent imageContent, Exception error, RawGoogleOcrResult rawGoogleOcrResult) : base(processTime, imageContent, error) { RawResult = rawGoogleOcrResult; }
public static GoogleOcrResult CreateSuccessResult(TimeSpan processTime, ImageContent imageContent, RawGoogleOcrResult rawGoogleOcrResult) { if (imageContent == null) { throw new ArgumentNullException(nameof(imageContent)); } if (rawGoogleOcrResult == null) { throw new ArgumentNullException(nameof(rawGoogleOcrResult)); } return(new GoogleOcrResult(processTime, imageContent, null, rawGoogleOcrResult)); }