Search in sources :

Example 1 with CreateBotResult

use of com.fanap.podchat.chat.bot.result_model.CreateBotResult in project pod-chat-android-sdk by FanapSoft.

the class BotManager method handleOnBotCreated.

public static ChatResponse<CreateBotResult> handleOnBotCreated(ChatMessage chatMessage) {
    ChatResponse<CreateBotResult> response = new ChatResponse<>();
    CreateBotResult result = App.getGson().fromJson(chatMessage.getContent(), CreateBotResult.class);
    response.setResult(result);
    response.setUniqueId(chatMessage.getUniqueId());
    return response;
}
Also used : CreateBotResult(com.fanap.podchat.chat.bot.result_model.CreateBotResult) ChatResponse(com.fanap.podchat.model.ChatResponse)

Aggregations

CreateBotResult (com.fanap.podchat.chat.bot.result_model.CreateBotResult)1 ChatResponse (com.fanap.podchat.model.ChatResponse)1