/// <summary> /// Initializes a new instance of the <see cref="StoredSampleGPSResponseBody" /> class. /// </summary> /// <param name="gps">gps (required).</param> /// <param name="id">ID is the unique id of the sample GPS. (required).</param> /// <param name="streamId">Stream ID (required).</param> public StoredSampleGPSResponseBody(GPSResponseBody gps = default(GPSResponseBody), long?id = default(long?), int?streamId = default(int?)) { // to ensure "gps" is required (not null) if (gps == null) { throw new InvalidDataException("gps is a required property for StoredSampleGPSResponseBody and cannot be null"); } else { this.Gps = gps; } // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for StoredSampleGPSResponseBody and cannot be null"); } else { this.Id = id; } // to ensure "streamId" is required (not null) if (streamId == null) { throw new InvalidDataException("streamId is a required property for StoredSampleGPSResponseBody and cannot be null"); } else { this.StreamId = streamId; } }
/// <summary> /// Initializes a new instance of the <see cref="StoredSampleRFIDResponseBody" /> class. /// </summary> /// <param name="endDate">End date (required).</param> /// <param name="gpsLocationInfo">gpsLocationInfo (required).</param> /// <param name="id">ID is the unique id of the sample RFID. (required).</param> /// <param name="sampleDate">Sample date (required).</param> /// <param name="startDate">Start date (required).</param> /// <param name="streamId">Stream ID (required).</param> /// <param name="tagIds">Tag IDs (required).</param> public StoredSampleRFIDResponseBody(DateTime?endDate = default(DateTime?), GPSResponseBody gpsLocationInfo = default(GPSResponseBody), long?id = default(long?), DateTime?sampleDate = default(DateTime?), DateTime?startDate = default(DateTime?), int?streamId = default(int?), string tagIds = default(string)) { // to ensure "endDate" is required (not null) if (endDate == null) { throw new InvalidDataException("endDate is a required property for StoredSampleRFIDResponseBody and cannot be null"); } else { this.EndDate = endDate; } // to ensure "gpsLocationInfo" is required (not null) if (gpsLocationInfo == null) { throw new InvalidDataException("gpsLocationInfo is a required property for StoredSampleRFIDResponseBody and cannot be null"); } else { this.GpsLocationInfo = gpsLocationInfo; } // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for StoredSampleRFIDResponseBody and cannot be null"); } else { this.Id = id; } // to ensure "sampleDate" is required (not null) if (sampleDate == null) { throw new InvalidDataException("sampleDate is a required property for StoredSampleRFIDResponseBody and cannot be null"); } else { this.SampleDate = sampleDate; } // to ensure "startDate" is required (not null) if (startDate == null) { throw new InvalidDataException("startDate is a required property for StoredSampleRFIDResponseBody and cannot be null"); } else { this.StartDate = startDate; } // to ensure "streamId" is required (not null) if (streamId == null) { throw new InvalidDataException("streamId is a required property for StoredSampleRFIDResponseBody and cannot be null"); } else { this.StreamId = streamId; } // to ensure "tagIds" is required (not null) if (tagIds == null) { throw new InvalidDataException("tagIds is a required property for StoredSampleRFIDResponseBody and cannot be null"); } else { this.TagIds = tagIds; } }