/// <summary> /// Initializes a new instance of the <see cref="CellRecognized" /> class. /// </summary> /// <param name="TextRects">Gets collection of TextRect objects that describes text containing in the cell</param> /// <param name="Rectangle">Gets rectangle that describes position of the cell on page</param> public CellRecognized(TextRects TextRects = default(TextRects), Rectangle Rectangle = default(Rectangle)) { this.TextRects = TextRects; this.Rectangle = Rectangle; }
/// <summary> /// Initializes a new instance of the <see cref="TextRectsResponse" /> class. /// </summary> /// <param name="Code">Response status code. (required)</param> /// <param name="Status">Response status.</param> /// <param name="TextOccurrences">TextRects object</param> public TextRectsResponse(int?Code = default(int?), string Status = default(string), TextRects TextOccurrences = default(TextRects)) { // to ensure "Code" is required (not null) if (Code == null) { throw new InvalidDataException("Code is a required property for TextRectsResponse and cannot be null"); } else { this.Code = Code; } this.Status = Status; this.TextOccurrences = TextOccurrences; }