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;
}
Aggregations