Search in sources :

Example 1 with CreateTagRequest

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

the class ChatActivity method createTag.

public void createTag() {
    CreateTagRequest request = new CreateTagRequest.Builder("Tag_" + System.currentTimeMillis() / 1000).build();
    presenter.createTag(request);
}
Also used : CreateTagRequest(com.fanap.podchat.chat.tag.request_model.CreateTagRequest)

Example 2 with CreateTagRequest

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

the class TagCacheTest method addNewTag.

public void addNewTag() {
    chatListeners = new ChatListener() {

        @Override
        public void onTagCreated(String content, ChatResponse<TagResult> response) {
            chat.removeListener(chatListeners);
            resumeProcess();
            tagId = response.getResult().getTag().getTagId();
        }
    };
    chat.setListener(chatListeners);
    CreateTagRequest request = new CreateTagRequest.Builder("Tag_" + System.currentTimeMillis() / 1000).build();
    chat.createTag(request);
    pauseProcess();
    System.out.println("New Tag Created: ");
}
Also used : ChatListener(com.fanap.podchat.chat.ChatListener) CreateTagRequest(com.fanap.podchat.chat.tag.request_model.CreateTagRequest) TagResult(com.fanap.podchat.chat.tag.result_model.TagResult)

Aggregations

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