toggle menu
seam-phone-sdk-android
1.9.38
androidJvm
switch theme
search in API
common
/
co.seam.common.models
/
SeamResult
Seam
Result
@
Serializable
sealed
class
SeamResult
<
T
>
Success or failure result.
Inheritors
SeamSuccess
SeamFailure
Members
Properties
is
Failure
Link copied to clipboard
val
isFailure
:
Boolean
is
Success
Link copied to clipboard
val
isSuccess
:
Boolean
Functions
and
Then
Link copied to clipboard
inline
fun
<
R
>
andThen
(
transform
:
(
T
)
->
SeamResult
<
R
>
)
:
SeamResult
<
R
>
get
Error
Or
Null
Link copied to clipboard
fun
getErrorOrNull
(
)
:
SeamError
?
get
Error
Or
Throw
Link copied to clipboard
fun
getErrorOrThrow
(
)
:
SeamError
get
Or
Null
Link copied to clipboard
fun
getOrNull
(
)
:
T
?
get
Or
Throw
Link copied to clipboard
fun
getOrThrow
(
)
:
T
map
Link copied to clipboard
inline
fun
<
R
>
map
(
transform
:
(
T
)
->
R
)
:
SeamResult
<
R
>
or
Else
Link copied to clipboard
fun
orElse
(
other
:
T
)
:
T