ShazamKitResult

sealed class ShazamKitResult<out A, out B>

Utility class that allows to identify if an operation was successful or failed.

  • Use the Success property to retrieve the data in case of success.

  • Use the Failure property to retrieve the error in case of failure.

Types

Failure
Link copied to clipboard
data class Failure<A>(reason: A) : ShazamKitResult<A, Nothing>
Success
Link copied to clipboard
data class Success<B>(data: B) : ShazamKitResult<Nothing, B>

Inheritors

ShazamKitResult
Link copied to clipboard
ShazamKitResult
Link copied to clipboard