/// <summary> /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdBookmarks200Ok" /> class. /// </summary> /// <param name="BookmarkId">bookmark_id integer (required).</param> /// <param name="Coordinates">Coordinates.</param> /// <param name="Created">created string (required).</param> /// <param name="CreatorId">creator_id integer (required).</param> /// <param name="FolderId">folder_id integer.</param> /// <param name="Item">Item.</param> /// <param name="Label">label string (required).</param> /// <param name="LocationId">location_id integer (required).</param> /// <param name="Notes">notes string (required).</param> public GetCorporationsCorporationIdBookmarks200Ok(int?BookmarkId = default(int?), GetCorporationsCorporationIdBookmarksCoordinates Coordinates = default(GetCorporationsCorporationIdBookmarksCoordinates), DateTime?Created = default(DateTime?), int?CreatorId = default(int?), int?FolderId = default(int?), GetCorporationsCorporationIdBookmarksItem Item = default(GetCorporationsCorporationIdBookmarksItem), string Label = default(string), int?LocationId = default(int?), string Notes = default(string)) { // to ensure "BookmarkId" is required (not null) if (BookmarkId == null) { throw new InvalidDataException("BookmarkId is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.BookmarkId = BookmarkId; } // to ensure "Created" is required (not null) if (Created == null) { throw new InvalidDataException("Created is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.Created = Created; } // to ensure "CreatorId" is required (not null) if (CreatorId == null) { throw new InvalidDataException("CreatorId is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.CreatorId = CreatorId; } // to ensure "Label" is required (not null) if (Label == null) { throw new InvalidDataException("Label is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.Label = Label; } // to ensure "LocationId" is required (not null) if (LocationId == null) { throw new InvalidDataException("LocationId is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.LocationId = LocationId; } // to ensure "Notes" is required (not null) if (Notes == null) { throw new InvalidDataException("Notes is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.Notes = Notes; } this.Coordinates = Coordinates; this.FolderId = FolderId; this.Item = Item; }
/// <summary> /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdBookmarks200Ok" /> class. /// </summary> /// <param name="bookmarkId">bookmark_id integer (required).</param> /// <param name="creatorId">creator_id integer (required).</param> /// <param name="folderId">folder_id integer.</param> /// <param name="created">created string (required).</param> /// <param name="label">label string (required).</param> /// <param name="notes">notes string (required).</param> /// <param name="locationId">location_id integer (required).</param> /// <param name="item">item.</param> /// <param name="coordinates">coordinates.</param> public GetCorporationsCorporationIdBookmarks200Ok(int?bookmarkId = default(int?), int?creatorId = default(int?), int?folderId = default(int?), DateTime?created = default(DateTime?), string label = default(string), string notes = default(string), int?locationId = default(int?), GetCorporationsCorporationIdBookmarksItem item = default(GetCorporationsCorporationIdBookmarksItem), GetCorporationsCorporationIdBookmarksCoordinates coordinates = default(GetCorporationsCorporationIdBookmarksCoordinates)) { // to ensure "bookmarkId" is required (not null) if (bookmarkId == null) { throw new InvalidDataException("bookmarkId is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.BookmarkId = bookmarkId; } // to ensure "creatorId" is required (not null) if (creatorId == null) { throw new InvalidDataException("creatorId is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.CreatorId = creatorId; } // to ensure "created" is required (not null) if (created == null) { throw new InvalidDataException("created is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.Created = created; } // to ensure "label" is required (not null) if (label == null) { throw new InvalidDataException("label is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.Label = label; } // to ensure "notes" is required (not null) if (notes == null) { throw new InvalidDataException("notes is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.Notes = notes; } // to ensure "locationId" is required (not null) if (locationId == null) { throw new InvalidDataException("locationId is a required property for GetCorporationsCorporationIdBookmarks200Ok and cannot be null"); } else { this.LocationId = locationId; } this.FolderId = folderId; this.Item = item; this.Coordinates = coordinates; }