toggle menu
Ansa-Android-SDK
common
switch theme
search in API
network-public
/
dev.ansa.network
/
ApiResult
/
Success
Success
data
class
Success
<
out
T
:
Any
>
(
val
value
:
T
)
:
ApiResult
<
T
>
Success!
Parameters
value
resulting desired data
Members
Members & Extensions
Constructors
Success
Link copied to clipboard
constructor
(
value
:
T
)
Properties
value
Link copied to clipboard
val
value
:
T
Functions
get
Or
Null
Link copied to clipboard
inline
fun
<
T
:
Any
>
ApiResult
<
T
>
.
getOrNull
(
)
:
T
?
map
Link copied to clipboard
inline
fun
<
R
:
Any
,
T
:
Any
>
ApiResult
<
T
>
.
map
(
transform
:
(
value
:
T
)
->
R
?
)
:
ApiResult
<
R
>
on
Error
Link copied to clipboard
inline
fun
<
T
:
Any
>
ApiResult
<
T
>
.
onError
(
block
:
(
Throwable
)
->
Unit
)
:
ApiResult
<
T
>
on
Success
Link copied to clipboard
inline
fun
<
T
:
Any
>
ApiResult
<
T
>
.
onSuccess
(
block
:
(
T
)
->
Unit
)
:
ApiResult
<
T
>