/// <summary>
        /// Initializes a new instance of the <see cref="TextFieldValue" /> class.
        /// </summary>
        /// <param name="source">source (required).</param>
        /// <param name="value">Parsed/processed value. Date format converted for output, delimiters removed (required).</param>
        /// <param name="originalValue">Original value as seen in the document.</param>
        /// <param name="originalSymbols">originalSymbols.</param>
        /// <param name="pageIndex">Page index of the image from input list (required).</param>
        /// <param name="probability">Min recognition probability. Combined minimum probability from single characters probabilities.</param>
        /// <param name="fieldRect">fieldRect.</param>
        /// <param name="rfidOrigin">rfidOrigin.</param>
        public TextFieldValue(string source = default(string), string value = default(string), string originalValue = default(string), List <OriginalSymbol> originalSymbols = default(List <OriginalSymbol>), int pageIndex = default(int), int probability = default(int), RectangleCoordinates fieldRect = default(RectangleCoordinates), RfidOrigin rfidOrigin = default(RfidOrigin))
        {
            // to ensure "source" is required (not null)
            if (source == null)
            {
                throw new InvalidDataException("source is a required property for TextFieldValue and cannot be null");
            }
            else
            {
                this.Source = source;
            }

            // to ensure "value" is required (not null)
            if (value == null)
            {
                throw new InvalidDataException("value is a required property for TextFieldValue and cannot be null");
            }
            else
            {
                this.Value = value;
            }

            // to ensure "pageIndex" is required (not null)
            if (pageIndex == null)
            {
                throw new InvalidDataException("pageIndex is a required property for TextFieldValue and cannot be null");
            }
            else
            {
                this.PageIndex = pageIndex;
            }

            this.OriginalValue   = originalValue;
            this.OriginalSymbols = originalSymbols;
            this.Probability     = probability;
            this.FieldRect       = fieldRect;
            this.RfidOrigin      = rfidOrigin;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ImagesFieldValue" /> class.
        /// </summary>
        /// <param name="source">source (required).</param>
        /// <param name="value">Base64 encoded image (required).</param>
        /// <param name="originalValue">Base64 encoded image.</param>
        /// <param name="pageIndex">Page index of the image from input list (required).</param>
        /// <param name="lightIndex">lightIndex (required).</param>
        /// <param name="containerType">Same as Result type, but used for safe parsing of not-described values. See Result type. (required) (default to 0).</param>
        /// <param name="fieldRect">fieldRect.</param>
        /// <param name="rfidOrigin">rfidOrigin.</param>
        public ImagesFieldValue(string source = default(string), byte[] value = default(byte[]), byte[] originalValue = default(byte[]), int pageIndex = default(int), int lightIndex = default(int), int containerType = 0, RectangleCoordinates fieldRect = default(RectangleCoordinates), RfidOrigin rfidOrigin = default(RfidOrigin))
        {
            // to ensure "source" is required (not null)
            if (source == null)
            {
                throw new InvalidDataException("source is a required property for ImagesFieldValue and cannot be null");
            }
            else
            {
                this.Source = source;
            }

            // to ensure "value" is required (not null)
            if (value == null)
            {
                throw new InvalidDataException("value is a required property for ImagesFieldValue and cannot be null");
            }
            else
            {
                this.Value = value;
            }

            // to ensure "pageIndex" is required (not null)
            if (pageIndex == null)
            {
                throw new InvalidDataException("pageIndex is a required property for ImagesFieldValue and cannot be null");
            }
            else
            {
                this.PageIndex = pageIndex;
            }

            // to ensure "lightIndex" is required (not null)
            if (lightIndex == null)
            {
                throw new InvalidDataException("lightIndex is a required property for ImagesFieldValue and cannot be null");
            }
            else
            {
                this.LightIndex = lightIndex;
            }

            // to ensure "containerType" is required (not null)
            if (containerType == null)
            {
                throw new InvalidDataException("containerType is a required property for ImagesFieldValue and cannot be null");
            }
            else
            {
                this.ContainerType = containerType;
            }

            this.OriginalValue = originalValue;
            this.FieldRect     = fieldRect;
            this.RfidOrigin    = rfidOrigin;
        }