All URIs are relative to https://localhost
| Method | HTTP request | Description |
|---|---|---|
| findPushNotification | GET /session/push/notification | Get push notification settings |
| updateDeviceStatus | PUT /session/device | Update device status |
| updatePushNotification | PUT /session/push/notification | Update ths push notification settings |
PushNotificationSetting findPushNotification()
Get push notification settings
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = SettingsApi()
try {
val result : PushNotificationSetting = apiInstance.findPushNotification()
println(result)
} catch (e: ClientException) {
println("4xx response calling SettingsApi#findPushNotification")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SettingsApi#findPushNotification")
e.printStackTrace()
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: Not defined
updateDeviceStatus(body)
Update device status
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = SettingsApi()
val body : PutDeviceBody = // PutDeviceBody |
try {
apiInstance.updateDeviceStatus(body)
} catch (e: ClientException) {
println("4xx response calling SettingsApi#updateDeviceStatus")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SettingsApi#updateDeviceStatus")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | PutDeviceBody |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
updatePushNotification(body)
Update ths push notification settings
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = SettingsApi()
val body : PutNotificationSettingBody = // PutNotificationSettingBody |
try {
apiInstance.updatePushNotification(body)
} catch (e: ClientException) {
println("4xx response calling SettingsApi#updatePushNotification")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SettingsApi#updatePushNotification")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | PutNotificationSettingBody |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined