//core/com.kustomer.core.models/KusResult
[androidJvm]
sealed class KusResult<out R>
A generic wrapper class which contains the status of a response
Handle KusResult object as follows:
[androidJvm]
ExampleKusResult
Name | Summary |
---|---|
Error | [androidJvm] data class Error(val exception: Exception) : KusResult<Nothing> |
Loading | [androidJvm] object Loading : KusResult<Nothing> Currently not used in Core SDK |
Success | [androidJvm] data class Success<out T>(val data: T) : KusResult<T> |
Name | Summary |
---|---|
successOr | [androidJvm] fun <R> successOr(fallback: R): R |
toString | [androidJvm] open override fun toString(): String |
Name | Summary |
---|---|
dataOrNull | [androidJvm] val dataOrNull: R? |
Name |
---|
Success |
Error |
Loading |