// // AUTO-GENERATED FILE, DO NOT MODIFY! // // @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first // ignore_for_file: constant_identifier_names // ignore_for_file: lines_longer_than_80_chars part of openapi.api; /// Les points d'interet d'une section maquette 3D (item E7 du lot XR-4). /// /// Meme objet que les points d'une carte — un `GeoPointDTO` — sur une autre /// collection : ce qui change, c'est `localTransform` au lieu de `geometry`. class SectionScene3DApi { SectionScene3DApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; /// Performs an HTTP 'GET /api/SectionScene3D/{sectionId}/points' operation. Future sectionScene3DGetPointsWithHttpInfo(String sectionId,) async { final path = r'/api/SectionScene3D/{sectionId}/points' .replaceAll('{sectionId}', sectionId); Object? postBody; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = []; return apiClient.invokeAPI( path, 'GET', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } Future?> sectionScene3DGetPoints(String sectionId,) async { final response = await sectionScene3DGetPointsWithHttpInfo(sectionId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { final responseBody = await _decodeBodyBytes(response); return (await apiClient.deserializeAsync(responseBody, 'List') as List) .cast() .toList(growable: false); } return null; } /// Performs an HTTP 'POST /api/SectionScene3D/{sectionId}/points' operation. Future sectionScene3DCreatePointWithHttpInfo( String sectionId, GeoPointDTO geoPointDTO, ) async { final path = r'/api/SectionScene3D/{sectionId}/points' .replaceAll('{sectionId}', sectionId); Object? postBody = geoPointDTO; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = ['application/json']; return apiClient.invokeAPI( path, 'POST', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } Future sectionScene3DCreatePoint( String sectionId, GeoPointDTO geoPointDTO, ) async { final response = await sectionScene3DCreatePointWithHttpInfo(sectionId, geoPointDTO,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'GeoPointDTO',) as GeoPointDTO; } return null; } /// Performs an HTTP 'PUT /api/SectionScene3D/points' operation. Future sectionScene3DUpdatePointWithHttpInfo(GeoPointDTO geoPointDTO,) async { final path = r'/api/SectionScene3D/points'; Object? postBody = geoPointDTO; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = ['application/json']; return apiClient.invokeAPI( path, 'PUT', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } Future sectionScene3DUpdatePoint(GeoPointDTO geoPointDTO,) async { final response = await sectionScene3DUpdatePointWithHttpInfo(geoPointDTO,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'GeoPointDTO',) as GeoPointDTO; } return null; } /// Performs an HTTP 'DELETE /api/SectionScene3D/points/{id}' operation. Future sectionScene3DDeletePointWithHttpInfo(int id,) async { final path = r'/api/SectionScene3D/points/{id}' .replaceAll('{id}', id.toString()); Object? postBody; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = []; return apiClient.invokeAPI( path, 'DELETE', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } Future sectionScene3DDeletePoint(int id,) async { final response = await sectionScene3DDeletePointWithHttpInfo(id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } } }