Search in sources :

Example 1 with DefineBotCommandResult

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

the class BotManager method handleOnBotCommandDefined.

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

Aggregations

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