GWIoTApi
Toggle table of contents
1.2.1
common
Platform filter
common
Switch theme
Search in API
GWIoTApi
GWIoTApi
/
com.gw.gwiotapi.entities
/
GWResult
GWResult
sealed
class
GWResult
<
T
>
用来声明一个Result,代表有值/没有值,以及携带对应的值或者异常信息
Inheritors
Success
Failure
Members
Types
Failure
Link copied to clipboard
class
Failure
<
T
>
(
val
err
:
GWError
?
=
GWError()
)
:
GWResult
<
T
>
Success
Link copied to clipboard
class
Success
<
T
>
(
val
data
:
T
?
)
:
GWResult
<
T
>