Search in sources :

Example 1 with ChatHandler

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

the class ChatActivity method blockContact.

private void blockContact() {
    long bThreadId = TEST_THREAD_ID;
    long bUserId = TEST_THREAD_ID;
    long bContactId = TEST_THREAD_ID;
    presenter.block(bContactId, null, null, new ChatHandler() {

        @Override
        public void onBlock(String uniqueId) {
            super.onBlock(uniqueId);
        }
    });
}
Also used : ChatHandler(com.fanap.podchat.chat.ChatHandler)

Example 2 with ChatHandler

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

the class ChatTestIntegration method getThreadHistory.

public void getThreadHistory(long threadId) {
    threadId = 8093;
    RequestGetHashTagList request = new RequestGetHashTagList.Builder(threadId).setHashtag("test").offset(0).count(25).build();
    presenter.getHashTagList(request, new ChatHandler() {

        @Override
        public void onGetHistory(String uniqueId) {
            super.onGetHistory(uniqueId);
        }
    });
}
Also used : RequestGetHashTagList(com.fanap.podchat.chat.hashtag.model.RequestGetHashTagList) ChatHandler(com.fanap.podchat.chat.ChatHandler)

Aggregations

ChatHandler (com.fanap.podchat.chat.ChatHandler)2 RequestGetHashTagList (com.fanap.podchat.chat.hashtag.model.RequestGetHashTagList)1