EmqxApiRequestResult

data class EmqxApiRequestResult<T>(code: Int?, message: String?, data: T?)

EMQ X HTTP API documentation

Constructors

EmqxApiRequestResult
Link copied to clipboard
fun <T> EmqxApiRequestResult(code: Int? = null, message: String? = null, data: T? = null)

Properties

code
Link copied to clipboard
val code: Int? = null
The response can have a code which is always 0 in the success case or a defined value for some error cases.
data
Link copied to clipboard
val data: T? = null
A successful response with the code 0 can have a data property, containing the requested data or additional information.
message
Link copied to clipboard
val message: String? = null
In some error cases the response has a message property.