ResponseConverter

interface ResponseConverter : CoreResponseConverter

Implement this to support wrapping for custom types e.g. fun test() : MyCustomType

Functions

supportedType
Link copied to clipboard
abstract fun supportedType(returnTypeName: String): Boolean

Check if this converter supports the return type

wrapResponse
Link copied to clipboard
abstract fun <PRequest : Any> wrapResponse(returnTypeName: String, requestFunction: suspend () -> <ERROR CLASS><<ERROR CLASS>, <ERROR CLASS>>): Any

Inheritors

FlowResponseConverter
Link copied to clipboard
KtorfitCallResponseConverter
Link copied to clipboard