Search in sources :

Example 1 with RemoveTagParticipantRequest

use of com.fanap.podchat.chat.tag.request_model.RemoveTagParticipantRequest in project pod-chat-android-sdk by FanapSoft.

the class ChatActivity method removeTagParticipant.

public void removeTagParticipant() {
    List<Long> threadIds = new ArrayList<>();
    threadIds.add(8688l);
    threadIds.add(8730l);
    threadIds.add(8729l);
    RemoveTagParticipantRequest request = new RemoveTagParticipantRequest.Builder(tagId, threadIds).build();
    presenter.removeTagParticipant(request);
}
Also used : RemoveTagParticipantRequest(com.fanap.podchat.chat.tag.request_model.RemoveTagParticipantRequest) ArrayList(java.util.ArrayList)

Example 2 with RemoveTagParticipantRequest

use of com.fanap.podchat.chat.tag.request_model.RemoveTagParticipantRequest in project pod-chat-android-sdk by FanapSoft.

the class TagCacheTest method removeTagParticipant.

public void removeTagParticipant(long tagId) {
    chatListeners = new ChatListener() {

        @Override
        public void OnTagParticipantRemoved(String content, ChatResponse<TagParticipantResult> response) {
            chat.removeListener(chatListeners);
            resumeProcess();
        }
    };
    chat.setListener(chatListeners);
    List<Long> threadIds = new ArrayList<>();
    threadIds.add(8688l);
    threadIds.add(8730l);
    threadIds.add(8729l);
    RemoveTagParticipantRequest request = new RemoveTagParticipantRequest.Builder(tagId, threadIds).build();
    chat.removeTagParticipant(request);
    pauseProcess();
    System.out.println("Tag Participant Removed: ");
}
Also used : RemoveTagParticipantRequest(com.fanap.podchat.chat.tag.request_model.RemoveTagParticipantRequest) ChatListener(com.fanap.podchat.chat.ChatListener) TagParticipantResult(com.fanap.podchat.chat.tag.result_model.TagParticipantResult) ArrayList(java.util.ArrayList)

Aggregations

RemoveTagParticipantRequest (com.fanap.podchat.chat.tag.request_model.RemoveTagParticipantRequest)2 ArrayList (java.util.ArrayList)2 ChatListener (com.fanap.podchat.chat.ChatListener)1 TagParticipantResult (com.fanap.podchat.chat.tag.result_model.TagParticipantResult)1