Webcom Android API
/
com.orange.webcom.sdkv2
/
WebcomResult
/
Success
Success
data class
Success
<out
T
> :
WebcomResult
<
T
>
Content copied to clipboard
Represents a successful computation with a
result
of type
T
.
Functions
Properties
Functions
get
Link copied to clipboard
open override fun
get
():
T
Content copied to clipboard
Gets the result of computation when successful, throws otherwise.
getOrElse
Link copied to clipboard
open override fun
getOrElse
(default:
@
UnsafeVariance
()
T
):
T
Content copied to clipboard
Gets the result of the computation when successful, or a given
default
value otherwise.
getOrNull
Link copied to clipboard
open override fun
getOrNull
():
T
?
Content copied to clipboard
Gets the result of the computation when successful, or
null
otherwise.
isSuccess
Link copied to clipboard
open override fun
isSuccess
():
Boolean
Content copied to clipboard
Indicates whether the computation was successful.
map
Link copied to clipboard
open override fun <
U
>
map
(f: (
T
) ->
U
):
WebcomResult
<
U
>
Content copied to clipboard
Maps the result of this computation using the given
f
function.
Properties
failureError
Link copied to clipboard
open override val
failureError
:
WebcomError
? = null
Content copied to clipboard
Gets the error of computation when failed, or
null
otherwise.
result
Link copied to clipboard
val
result
:
T
Content copied to clipboard
Result of the computation.