Search in sources :

Example 1 with StartStopBotResult

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

the class BotManager method handleOnBotStartedOrStopped.

public static ChatResponse<StartStopBotResult> handleOnBotStartedOrStopped(ChatMessage chatMessage) {
    ChatResponse<StartStopBotResult> response = new ChatResponse<>();
    StartStopBotResult result = new StartStopBotResult(chatMessage.getContent());
    response.setResult(result);
    response.setUniqueId(chatMessage.getUniqueId());
    response.setSubjectId(chatMessage.getSubjectId());
    return response;
}
Also used : StartStopBotResult(com.fanap.podchat.chat.bot.result_model.StartStopBotResult) ChatResponse(com.fanap.podchat.model.ChatResponse)

Aggregations

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