-
- All Implemented Interfaces:
-
com.batch.android.core.TaskRunnable,java.lang.Runnable
public class InboxFetchWebserviceClient extends BatchWebservice implements TaskRunnable
Webservice client for the Inbox API Used to fetch notifications from the server
-
-
Field Summary
Fields Modifier and Type Field Description private InboxWebserviceListenerlistener
-
Constructor Summary
Constructors Constructor Description InboxFetchWebserviceClient(Context context, FetcherType type, String identifier, String authentication, Integer limit, String from, long fetcherId, InboxWebserviceListener listener)
-
Method Summary
Modifier and Type Method Description voidsetListener(@NonNull() InboxWebserviceListener listener)static InboxFetchWebserviceClientprovide(@NonNull() Context context, @NonNull() FetcherType type, @NonNull() String identifier, @Nullable() String authentication, @Nullable() Integer limit, @Nullable() String from, long fetcherId, @NonNull() InboxWebserviceListener listener)StringgetTaskIdentifier()Return a string that identify this task voidrun()-
Methods inherited from class com.batch.android.core.Webservice
encode, executeRequest, formatDate, getResponseErrorCause, isResponseValid -
Methods inherited from class java.lang.Runnable
run -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
InboxFetchWebserviceClient
InboxFetchWebserviceClient(Context context, FetcherType type, String identifier, String authentication, Integer limit, String from, long fetcherId, InboxWebserviceListener listener)
-
-
Method Detail
-
setListener
void setListener(@NonNull() InboxWebserviceListener listener)
-
provide
static InboxFetchWebserviceClient provide(@NonNull() Context context, @NonNull() FetcherType type, @NonNull() String identifier, @Nullable() String authentication, @Nullable() Integer limit, @Nullable() String from, long fetcherId, @NonNull() InboxWebserviceListener listener)
-
getTaskIdentifier
String getTaskIdentifier()
Return a string that identify this task
-
run
void run()
-
-
-
-