Skip to content

Latest commit

 

History

History
140 lines (101 loc) · 3.39 KB

File metadata and controls

140 lines (101 loc) · 3.39 KB

SettingsApi

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

findPushNotification

PushNotificationSetting findPushNotification()

Get push notification settings

Example

// 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()
}

Parameters

This endpoint does not need any parameter.

Return type

PushNotificationSetting

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

updateDeviceStatus

updateDeviceStatus(body)

Update device status

Example

// 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()
}

Parameters

Name Type Description Notes
body PutDeviceBody

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

updatePushNotification

updatePushNotification(body)

Update ths push notification settings

Example

// 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()
}

Parameters

Name Type Description Notes
body PutNotificationSettingBody

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined