Package es.situm.sdk.utils
Interface Handler<T>
-
public interface Handler<T>
Interface to receive result of an async request
-
-
Field Summary
Fields Modifier and Type Field Description static Handler<java.lang.Object>
EMPTY_HANDLER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onFailure(Error error)
Callback that is called in case any error happensvoid
onSuccess(T obtained)
Will be invoked if the request finished successfully
-
-
-
Field Detail
-
EMPTY_HANDLER
static final Handler<java.lang.Object> EMPTY_HANDLER
-
-