use of com.fanap.podchat.chat.bot.result_model.GetUserBotsResult in project pod-chat-android-sdk by FanapSoft.
the class BotManager method handleOnUserBots.
public static ChatResponse<GetUserBotsResult> handleOnUserBots(ChatMessage chatMessage) {
ChatResponse<GetUserBotsResult> response = new ChatResponse<>();
GetUserBotsResult result = new GetUserBotsResult(App.getGson().fromJson(chatMessage.getContent(), new TypeToken<List<BotVo>>() {
}.getType()));
response.setResult(result);
response.setUniqueId(chatMessage.getUniqueId());
response.setSubjectId(chatMessage.getSubjectId());
return response;
}
Aggregations