toggle menu
lib
androidJvm
switch theme
search in API
demo-android
/
com.apadmi.mockzilla.demo
/
DataResult
Data
Result
sealed
class
DataResult
<
out
T
,
out
E
>
Inheritors
Failure
Success
Members
Types
Companion
Link copied to clipboard
object
Companion
Failure
Link copied to clipboard
data
class
Failure
<
E
>
(
val
error
:
E
)
:
DataResult
<
Nothing
,
E
>
Success
Link copied to clipboard
data
class
Success
<
T
>
(
val
ok
:
T
)
:
DataResult
<
T
,
Nothing
>
Functions
data
Or
Null
Link copied to clipboard
fun
dataOrNull
(
)
:
T
?
error
Or
Null
Link copied to clipboard
fun
errorOrNull
(
)
:
E
?
is
Success
Link copied to clipboard
fun
isSuccess
(
)
:
Boolean