use of com.fanap.podchat.chat.ping.request.StatusPingRequest in project pod-chat-android-sdk by FanapSoft.
the class ChatPresenter method getContact.
@Override
public void getContact(RequestGetContact request) {
chat.getContacts(request, null);
StatusPingRequest statusRequest = new StatusPingRequest.Builder().inContactsList().build();
chat.sendStatusPing(statusRequest);
}
use of com.fanap.podchat.chat.ping.request.StatusPingRequest in project pod-chat-android-sdk by FanapSoft.
the class ChatPresenter method getThreads.
@Override
public void getThreads(RequestThread requestThread, ChatHandler handler) {
chat.getThreads(requestThread, handler);
StatusPingRequest statusRequest = new StatusPingRequest.Builder().inChat().build();
chat.sendStatusPing(statusRequest);
// try {
// Thread.sleep(2000);
// } catch (InterruptedException ignored) {}
//
// RequestGetUnreadMessagesCount req = new RequestGetUnreadMessagesCount
// .Builder()
// .withMuteThreads()
// .build();
//
// chat.getAllUnreadMessagesCount(req);
}
use of com.fanap.podchat.chat.ping.request.StatusPingRequest in project pod-chat-android-sdk by FanapSoft.
the class ChatPresenter method getHistory.
@Override
public String getHistory(RequestGetHistory request, ChatHandler handler) {
String uniqueId = chat.getHistory(request, handler);
StatusPingRequest statusRequest = new StatusPingRequest.Builder().inThread().setThreadId(request.getThreadId()).build();
chat.sendStatusPing(statusRequest);
return uniqueId;
}
use of com.fanap.podchat.chat.ping.request.StatusPingRequest in project pod-chat-android-sdk by FanapSoft.
the class CallPresenter method getContact.
@Override
public void getContact(RequestGetContact request) {
chat.getContacts(request, null);
StatusPingRequest statusRequest = new StatusPingRequest.Builder().inContactsList().build();
chat.sendStatusPing(statusRequest);
}
Aggregations