Search in sources :

Example 1 with EditTagRequest

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

the class TagCacheTest method editTag.

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

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

Example 2 with EditTagRequest

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

the class ChatActivity method editTag.

public void editTag() {
    EditTagRequest request = new EditTagRequest.Builder(tagId, "PrivateThreads" + System.currentTimeMillis()).build();
    presenter.editTag(request);
}
Also used : EditTagRequest(com.fanap.podchat.chat.tag.request_model.EditTagRequest)

Aggregations

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