Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 2.23 KB

File metadata and controls

60 lines (44 loc) · 2.23 KB

NotificationsApi

All URIs are relative to https://localhost

Method HTTP request Description
findNotifications GET /notifications Search notifications

findNotifications

kotlin.Array<Notification> findNotifications(body, since, offset, count)

Search notifications

Example

// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*

val apiInstance = NotificationsApi()
val body : GetNotificationsBody =  // GetNotificationsBody | 
val since : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Filters notifications which started on since or later.
val offset : java.math.BigDecimal = 8.14 // java.math.BigDecimal | The offset of notifications. By default the value is 0.
val count : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Maximum number of notifications returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.
try {
    val result : kotlin.Array<Notification> = apiInstance.findNotifications(body, since, offset, count)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NotificationsApi#findNotifications")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NotificationsApi#findNotifications")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
body GetNotificationsBody
since java.math.BigDecimal Filters notifications which started on since or later. [optional]
offset java.math.BigDecimal The offset of notifications. By default the value is 0. [optional]
count java.math.BigDecimal Maximum number of notifications returned on one result page. By default the value is 20 entries. The page size can never be larger than 50. [optional]

Return type

kotlin.Array<Notification>

Authorization

No authorization required

HTTP request headers

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