Search in sources :

Example 1 with DeleteTagRequest

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

the class TagCacheTest method deleteTag.

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

        @Override
        public void onTagDeleted(String content, ChatResponse<TagResult> response) {
            chat.removeListener(chatListeners);
            resumeProcess();
        }
    };
    chat.setListener(chatListeners);
    DeleteTagRequest request = new DeleteTagRequest.Builder(tagId).build();
    chat.deleteTag(request);
    pauseProcess();
    System.out.println("Tag Deleted: ");
}
Also used : DeleteTagRequest(com.fanap.podchat.chat.tag.request_model.DeleteTagRequest) ChatListener(com.fanap.podchat.chat.ChatListener) TagResult(com.fanap.podchat.chat.tag.result_model.TagResult)

Example 2 with DeleteTagRequest

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

the class ChatActivity method deleteTag.

public void deleteTag() {
    DeleteTagRequest request = new DeleteTagRequest.Builder(tagId).build();
    presenter.deleteTag(request);
}
Also used : DeleteTagRequest(com.fanap.podchat.chat.tag.request_model.DeleteTagRequest)

Aggregations

DeleteTagRequest (com.fanap.podchat.chat.tag.request_model.DeleteTagRequest)2 ChatListener (com.fanap.podchat.chat.ChatListener)1 TagResult (com.fanap.podchat.chat.tag.result_model.TagResult)1