IviServiceFunResult

class IviServiceFunResult<V>

Represents the result of an asynchronous IVI service function call.

Parameters

V

The return value type of an IVI service function call. Can be Unit.

resultType

The result type of the call.

value

The return value of the function call, if any.

exception

The exception that was thrown, if any.

Constructors

Link copied to clipboard
fun <V> IviServiceFunResult(value: V?)

Creates a successful function call result.

Link copied to clipboard
fun IviServiceFunResult(resultType: IviServiceFunResult.ResultType, exception: Exception? = null)

Creates a non-successful function call result.

Types

Link copied to clipboard
enum ResultType : Enum<IviServiceFunResult.ResultType>

Denotes the result type of an asynchronous IVI service function call.

Properties

Link copied to clipboard
val exception: Exception?
Link copied to clipboard
val resultType: IviServiceFunResult.ResultType
Link copied to clipboard
val successful: Boolean

True when the service function call was successful.

Link copied to clipboard
val value: V?

Functions

Link copied to clipboard
open override fun toString(): String

Extensions

Link copied to clipboard