Result

interface Result<T>

Service request results.

Functions

Link copied to clipboard
abstract fun getData(): T
Returns the associated data if the result is a success, `null` otherwise.
Link copied to clipboard
abstract fun getError(): WebexError
Returns the associated error value if the result is a failure, null otherwise.
Link copied to clipboard
abstract fun isSuccessful(): Boolean
Returns true if the result is a success, false otherwise