Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResponseTimeMapWktResult" /> class.
 /// </summary>
 /// <param name="searchId">searchId (required).</param>
 /// <param name="shape">shape (required).</param>
 /// <param name="properties">properties (required).</param>
 public ResponseTimeMapWktResult(string searchId = default(string), string shape = default(string), ResponseTimeMapProperties properties = default(ResponseTimeMapProperties))
 {
     // to ensure "searchId" is required (not null)
     this.SearchId = searchId ?? throw new ArgumentNullException("searchId is a required property for ResponseTimeMapWktResult and cannot be null");;
     // to ensure "shape" is required (not null)
     this.Shape = shape ?? throw new ArgumentNullException("shape is a required property for ResponseTimeMapWktResult and cannot be null");;
     // to ensure "properties" is required (not null)
     this.Properties = properties ?? throw new ArgumentNullException("properties is a required property for ResponseTimeMapWktResult and cannot be null");;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ResponseTimeMapBoundingBoxesResult" /> class.
 /// </summary>
 /// <param name="searchId">searchId (required).</param>
 /// <param name="boundingBoxes">boundingBoxes (required).</param>
 /// <param name="properties">properties (required).</param>
 public ResponseTimeMapBoundingBoxesResult(string searchId = default(string), List <ResponseBoundingBox> boundingBoxes = default(List <ResponseBoundingBox>), ResponseTimeMapProperties properties = default(ResponseTimeMapProperties))
 {
     // to ensure "searchId" is required (not null)
     this.SearchId = searchId ?? throw new ArgumentNullException("searchId is a required property for ResponseTimeMapBoundingBoxesResult and cannot be null");;
     // to ensure "boundingBoxes" is required (not null)
     this.BoundingBoxes = boundingBoxes ?? throw new ArgumentNullException("boundingBoxes is a required property for ResponseTimeMapBoundingBoxesResult and cannot be null");;
     // to ensure "properties" is required (not null)
     this.Properties = properties ?? throw new ArgumentNullException("properties is a required property for ResponseTimeMapBoundingBoxesResult and cannot be null");;
 }
Пример #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ResponseTimeMapBoundingBoxesResult" /> class.
        /// </summary>
        /// <param name="searchId">searchId (required).</param>
        /// <param name="boundingBoxes">boundingBoxes (required).</param>
        /// <param name="properties">properties (required).</param>
        public ResponseTimeMapBoundingBoxesResult(string searchId = default(string), List <ResponseBoundingBox> boundingBoxes = default(List <ResponseBoundingBox>), ResponseTimeMapProperties properties = default(ResponseTimeMapProperties))
        {
            // to ensure "searchId" is required (not null)
            if (searchId == null)
            {
                throw new InvalidDataException("searchId is a required property for ResponseTimeMapBoundingBoxesResult and cannot be null");
            }
            else
            {
                this.SearchId = searchId;
            }

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

            // to ensure "properties" is required (not null)
            if (properties == null)
            {
                throw new InvalidDataException("properties is a required property for ResponseTimeMapBoundingBoxesResult and cannot be null");
            }
            else
            {
                this.Properties = properties;
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ResponseTimeMapWktResult" /> class.
        /// </summary>
        /// <param name="searchId">searchId (required).</param>
        /// <param name="shape">shape (required).</param>
        /// <param name="properties">properties (required).</param>
        public ResponseTimeMapWktResult(string searchId = default(string), string shape = default(string), ResponseTimeMapProperties properties = default(ResponseTimeMapProperties))
        {
            // to ensure "searchId" is required (not null)
            if (searchId == null)
            {
                throw new InvalidDataException("searchId is a required property for ResponseTimeMapWktResult and cannot be null");
            }
            else
            {
                this.SearchId = searchId;
            }

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

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