// // 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; class SectionMapApi { SectionMapApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; /// Performs an HTTP 'POST /api/SectionMap/{sectionId}/points' operation and returns the [Response]. /// Parameters: /// /// * [String] sectionId (required): /// /// * [GeoPointDTO] geoPointDTO (required): Future sectionMapCreateWithHttpInfo( String sectionId, GeoPointDTO geoPointDTO, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/{sectionId}/points' .replaceAll('{sectionId}', sectionId); // ignore: prefer_final_locals 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, ); } /// Parameters: /// /// * [String] sectionId (required): /// /// * [GeoPointDTO] geoPointDTO (required): Future sectionMapCreate( String sectionId, GeoPointDTO geoPointDTO, ) async { final response = await sectionMapCreateWithHttpInfo( sectionId, geoPointDTO, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'GeoPointDTO', ) as GeoPointDTO; } return null; } /// Performs an HTTP 'POST /api/SectionMap/{sectionMapId}/guided-path' operation and returns the [Response]. /// Parameters: /// /// * [String] sectionMapId (required): /// /// * [GuidedPathDTO] guidedPathDTO (required): Future sectionMapCreateGuidedPathWithHttpInfo( String sectionMapId, GuidedPathDTO guidedPathDTO, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/{sectionMapId}/guided-path' .replaceAll('{sectionMapId}', sectionMapId); // ignore: prefer_final_locals Object? postBody = guidedPathDTO; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = ['application/json']; return apiClient.invokeAPI( path, 'POST', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// Parameters: /// /// * [String] sectionMapId (required): /// /// * [GuidedPathDTO] guidedPathDTO (required): Future sectionMapCreateGuidedPath( String sectionMapId, GuidedPathDTO guidedPathDTO, ) async { final response = await sectionMapCreateGuidedPathWithHttpInfo( sectionMapId, guidedPathDTO, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'GuidedPathDTO', ) as GuidedPathDTO; } return null; } /// Performs an HTTP 'POST /api/SectionMap/guided-path/{guidedPathId}/guided-step' operation and returns the [Response]. /// Parameters: /// /// * [String] guidedPathId (required): /// /// * [GuidedStepDTO] guidedStepDTO (required): Future sectionMapCreateGuidedStepWithHttpInfo( String guidedPathId, GuidedStepDTO guidedStepDTO, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/guided-path/{guidedPathId}/guided-step' .replaceAll('{guidedPathId}', guidedPathId); // ignore: prefer_final_locals Object? postBody = guidedStepDTO; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = ['application/json']; return apiClient.invokeAPI( path, 'POST', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// Parameters: /// /// * [String] guidedPathId (required): /// /// * [GuidedStepDTO] guidedStepDTO (required): Future sectionMapCreateGuidedStep( String guidedPathId, GuidedStepDTO guidedStepDTO, ) async { final response = await sectionMapCreateGuidedStepWithHttpInfo( guidedPathId, guidedStepDTO, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'GuidedStepDTO', ) as GuidedStepDTO; } return null; } /// Performs an HTTP 'DELETE /api/SectionMap/points/{geoPointId}' operation and returns the [Response]. /// Parameters: /// /// * [int] geoPointId (required): Future sectionMapDeleteWithHttpInfo( int geoPointId, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/points/{geoPointId}' .replaceAll('{geoPointId}', geoPointId.toString()); // ignore: prefer_final_locals Object? postBody; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = []; return apiClient.invokeAPI( path, 'DELETE', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// Parameters: /// /// * [int] geoPointId (required): Future sectionMapDelete( int geoPointId, ) async { final response = await sectionMapDeleteWithHttpInfo( geoPointId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'String', ) as String; } return null; } /// Performs an HTTP 'DELETE /api/SectionMap/guided-path/{guidedPathId}' operation and returns the [Response]. /// Parameters: /// /// * [String] guidedPathId (required): Future sectionMapDeleteGuidedPathWithHttpInfo( String guidedPathId, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/guided-path/{guidedPathId}' .replaceAll('{guidedPathId}', guidedPathId); // ignore: prefer_final_locals Object? postBody; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = []; return apiClient.invokeAPI( path, 'DELETE', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// Parameters: /// /// * [String] guidedPathId (required): Future sectionMapDeleteGuidedPath( String guidedPathId, ) async { final response = await sectionMapDeleteGuidedPathWithHttpInfo( guidedPathId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'String', ) as String; } return null; } /// Performs an HTTP 'DELETE /api/SectionMap/guided-step/{guidedStepId}' operation and returns the [Response]. /// Parameters: /// /// * [String] guidedStepId (required): Future sectionMapDeleteGuidedStepWithHttpInfo( String guidedStepId, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/guided-step/{guidedStepId}' .replaceAll('{guidedStepId}', guidedStepId); // ignore: prefer_final_locals Object? postBody; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = []; return apiClient.invokeAPI( path, 'DELETE', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// Parameters: /// /// * [String] guidedStepId (required): Future sectionMapDeleteGuidedStep( String guidedStepId, ) async { final response = await sectionMapDeleteGuidedStepWithHttpInfo( guidedStepId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'String', ) as String; } return null; } /// Performs an HTTP 'GET /api/SectionMap/{sectionId}/points' operation and returns the [Response]. /// Parameters: /// /// * [String] sectionId (required): Future sectionMapGetAllGeoPointsFromSectionWithHttpInfo( String sectionId, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/{sectionId}/points' .replaceAll('{sectionId}', sectionId); // ignore: prefer_final_locals Object? postBody; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = []; return apiClient.invokeAPI( path, 'GET', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// Parameters: /// /// * [String] sectionId (required): Future?> sectionMapGetAllGeoPointsFromSection( String sectionId, ) async { final response = await sectionMapGetAllGeoPointsFromSectionWithHttpInfo( sectionId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. 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 'GET /api/SectionMap/{sectionMapId}/guided-path' operation and returns the [Response]. /// Parameters: /// /// * [String] sectionMapId (required): Future sectionMapGetAllGuidedPathFromSectionWithHttpInfo( String sectionMapId, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/{sectionMapId}/guided-path' .replaceAll('{sectionMapId}', sectionMapId); // ignore: prefer_final_locals Object? postBody; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = []; return apiClient.invokeAPI( path, 'GET', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// Parameters: /// /// * [String] sectionMapId (required): Future?> sectionMapGetAllGuidedPathFromSection( String sectionMapId, ) async { final response = await sectionMapGetAllGuidedPathFromSectionWithHttpInfo( sectionMapId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. 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 'GET /api/SectionMap/guided-path/{guidedPathId}/guided-step' operation and returns the [Response]. /// Parameters: /// /// * [String] guidedPathId (required): Future sectionMapGetAllGuidedStepFromGuidedPathWithHttpInfo( String guidedPathId, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/guided-path/{guidedPathId}/guided-step' .replaceAll('{guidedPathId}', guidedPathId); // ignore: prefer_final_locals Object? postBody; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = []; return apiClient.invokeAPI( path, 'GET', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// Parameters: /// /// * [String] guidedPathId (required): Future?> sectionMapGetAllGuidedStepFromGuidedPath( String guidedPathId, ) async { final response = await sectionMapGetAllGuidedStepFromGuidedPathWithHttpInfo( guidedPathId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. 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 'PUT /api/SectionMap' operation and returns the [Response]. /// Parameters: /// /// * [GeoPointDTO] geoPointDTO (required): Future sectionMapUpdateWithHttpInfo( GeoPointDTO geoPointDTO, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap'; // ignore: prefer_final_locals 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, ); } /// Parameters: /// /// * [GeoPointDTO] geoPointDTO (required): Future sectionMapUpdate( GeoPointDTO geoPointDTO, ) async { final response = await sectionMapUpdateWithHttpInfo( geoPointDTO, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'GeoPoint', ) as GeoPoint; } return null; } /// Performs an HTTP 'PUT /api/SectionMap/guided-path' operation and returns the [Response]. /// Parameters: /// /// * [GuidedPathDTO] guidedPathDTO (required): Future sectionMapUpdateGuidedPathWithHttpInfo( GuidedPathDTO guidedPathDTO, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/guided-path'; // ignore: prefer_final_locals Object? postBody = guidedPathDTO; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = ['application/json']; return apiClient.invokeAPI( path, 'PUT', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// Parameters: /// /// * [GuidedPathDTO] guidedPathDTO (required): Future sectionMapUpdateGuidedPath( GuidedPathDTO guidedPathDTO, ) async { final response = await sectionMapUpdateGuidedPathWithHttpInfo( guidedPathDTO, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'GuidedPathDTO', ) as GuidedPathDTO; } return null; } /// Performs an HTTP 'PUT /api/SectionMap/guided-step' operation and returns the [Response]. /// Parameters: /// /// * [GuidedStepDTO] guidedStepDTO (required): Future sectionMapUpdateGuidedStepWithHttpInfo( GuidedStepDTO guidedStepDTO, ) async { // ignore: prefer_const_declarations final path = r'/api/SectionMap/guided-step'; // ignore: prefer_final_locals Object? postBody = guidedStepDTO; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = ['application/json']; return apiClient.invokeAPI( path, 'PUT', queryParams, postBody, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// Parameters: /// /// * [GuidedStepDTO] guidedStepDTO (required): Future sectionMapUpdateGuidedStep( GuidedStepDTO guidedStepDTO, ) async { final response = await sectionMapUpdateGuidedStepWithHttpInfo( guidedStepDTO, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } // When a remote server returns no body with a status of 204, we shall not decode it. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { return await apiClient.deserializeAsync( await _decodeBodyBytes(response), 'GuidedStepDTO', ) as GuidedStepDTO; } return null; } }