toggle menu
snabble Android SDK API Documentation
androidJvm
switch theme
search in API
utils
/
io.snabble.sdk.utils
/
JsonCallback
Json
Callback
abstract
class
JsonCallback
<
T
,
T2
>
:
Callback
Inheritors
SimpleJsonCallback
Members
Constructors
Json
Callback
Link copied to clipboard
constructor
(
successClass
:
Class
<
T
>
,
failureClass
:
Class
<
T2
>
)
Functions
error
Link copied to clipboard
abstract
fun
error
(
t
:
Throwable
)
failure
Link copied to clipboard
abstract
fun
failure
(
obj
:
T2
)
headers
Link copied to clipboard
open
fun
headers
(
)
:
Headers
on
Failure
Link copied to clipboard
open
fun
onFailure
(
call
:
Call
,
e
:
IOException
)
on
Response
Link copied to clipboard
open
fun
onResponse
(
call
:
Call
,
response
:
Response
)
raw
Response
Link copied to clipboard
open
fun
rawResponse
(
)
:
String
response
Code
Link copied to clipboard
open
fun
responseCode
(
)
:
Int
success
Link copied to clipboard
abstract
fun
success
(
obj
:
T
)