// // 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 NotificationApi { NotificationApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; /// GET /api/Notification — list notifications for the current instance Future notificationGetWithHttpInfo() async { final path = r'/api/Notification'; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = []; return apiClient.invokeAPI( path, 'GET', queryParams, null, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// POST /api/Notification/send — send a notification immediately Future notificationSendWithHttpInfo( SendNotificationRequest sendNotificationRequest, ) async { final path = r'/api/Notification/send'; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = ['application/json']; return apiClient.invokeAPI( path, 'POST', queryParams, sendNotificationRequest, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// POST /api/Notification/schedule — schedule a notification Future notificationScheduleWithHttpInfo( ScheduleNotificationRequest scheduleNotificationRequest, ) async { final path = r'/api/Notification/schedule'; final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = ['application/json']; return apiClient.invokeAPI( path, 'POST', queryParams, scheduleNotificationRequest, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } /// DELETE /api/Notification/{id} — cancel a scheduled notification Future notificationCancelWithHttpInfo(String id) async { final path = r'/api/Notification/{id}'.replaceAll('{id}', id); final queryParams = []; final headerParams = {}; final formParams = {}; const contentTypes = []; return apiClient.invokeAPI( path, 'DELETE', queryParams, null, headerParams, formParams, contentTypes.isEmpty ? null : contentTypes.first, ); } }