98 lines
2.7 KiB
Dart
98 lines
2.7 KiB
Dart
//
|
|
// 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<Response> notificationGetWithHttpInfo() async {
|
|
final path = r'/api/Notification';
|
|
final queryParams = <QueryParam>[];
|
|
final headerParams = <String, String>{};
|
|
final formParams = <String, String>{};
|
|
const contentTypes = <String>[];
|
|
|
|
return apiClient.invokeAPI(
|
|
path,
|
|
'GET',
|
|
queryParams,
|
|
null,
|
|
headerParams,
|
|
formParams,
|
|
contentTypes.isEmpty ? null : contentTypes.first,
|
|
);
|
|
}
|
|
|
|
/// POST /api/Notification/send — send a notification immediately
|
|
Future<Response> notificationSendWithHttpInfo(
|
|
SendNotificationRequest sendNotificationRequest,
|
|
) async {
|
|
final path = r'/api/Notification/send';
|
|
final queryParams = <QueryParam>[];
|
|
final headerParams = <String, String>{};
|
|
final formParams = <String, String>{};
|
|
const contentTypes = <String>['application/json'];
|
|
|
|
return apiClient.invokeAPI(
|
|
path,
|
|
'POST',
|
|
queryParams,
|
|
sendNotificationRequest,
|
|
headerParams,
|
|
formParams,
|
|
contentTypes.isEmpty ? null : contentTypes.first,
|
|
);
|
|
}
|
|
|
|
/// POST /api/Notification/schedule — schedule a notification
|
|
Future<Response> notificationScheduleWithHttpInfo(
|
|
ScheduleNotificationRequest scheduleNotificationRequest,
|
|
) async {
|
|
final path = r'/api/Notification/schedule';
|
|
final queryParams = <QueryParam>[];
|
|
final headerParams = <String, String>{};
|
|
final formParams = <String, String>{};
|
|
const contentTypes = <String>['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<Response> notificationCancelWithHttpInfo(String id) async {
|
|
final path = r'/api/Notification/{id}'.replaceAll('{id}', id);
|
|
final queryParams = <QueryParam>[];
|
|
final headerParams = <String, String>{};
|
|
final formParams = <String, String>{};
|
|
const contentTypes = <String>[];
|
|
|
|
return apiClient.invokeAPI(
|
|
path,
|
|
'DELETE',
|
|
queryParams,
|
|
null,
|
|
headerParams,
|
|
formParams,
|
|
contentTypes.isEmpty ? null : contentTypes.first,
|
|
);
|
|
}
|
|
}
|