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);
}
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: ");
}
Aggregations