Search in sources :

Example 1 with OutPutNotSeenDurations

use of com.fanap.podchat.model.OutPutNotSeenDurations in project pod-chat-android-sdk by FanapSoft.

the class ChatCore method handleGetNotSeenDuration.

private void handleGetNotSeenDuration(Callback callback, ChatMessage chatMessage, String messageUniqueId) {
    messageCallbacks.remove(messageUniqueId);
    if (callback != null && callback.isResult()) {
        ChatResponse<ResultNotSeenDuration> result = reformatNotSeenDuration(chatMessage, callback);
        if (result == null) {
            messageCallbacks.remove(messageUniqueId);
            return;
        }
        OutPutNotSeenDurations output = new OutPutNotSeenDurations();
        output.setResultNotSeenDuration(result.getResult());
        if (sentryResponseLog) {
            showLog("RECEIVE_NOT_SEEN_DURATION", chatMessage.getContent());
        } else {
            showLog("RECEIVE_NOT_SEEN_DURATION");
        }
        listenerManager.callOnGetNotSeenDuration(output);
    }
}
Also used : ResultNotSeenDuration(com.fanap.podchat.model.ResultNotSeenDuration) OutPutNotSeenDurations(com.fanap.podchat.model.OutPutNotSeenDurations)

Aggregations

OutPutNotSeenDurations (com.fanap.podchat.model.OutPutNotSeenDurations)1 ResultNotSeenDuration (com.fanap.podchat.model.ResultNotSeenDuration)1