public interface BotConnectorClient
| Modifier and Type | Field and Description |
|---|---|
static String |
API_ENDPOINT |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<BotData> |
getConversationData(String botId,
String conversationId)
Get the BotData record for the conversation
|
com.google.common.base.Optional<BotData> |
getPerUserConversationData(String botId,
String conversationId,
String userId)
Get the BotData record for the user in the conversation
|
com.google.common.base.Optional<BotData> |
getUserData(String botId,
String userId)
Get the BotData record for the user
|
com.google.common.base.Optional<Message> |
sendMessage(Message message)
Initiate a new conversation with the user.
|
com.google.common.base.Optional<BotData> |
setConversationData(String botId,
String conversationId,
BotData data)
Update the bot conversation data
|
com.google.common.base.Optional<BotData> |
setPerUserConversationData(String botId,
String conversationId,
String userId,
BotData data)
Update the bot user in a conversation data
|
com.google.common.base.Optional<BotData> |
setUserData(String botId,
String userId,
BotData data)
Update the bot user data
|
static final String API_ENDPOINT
com.google.common.base.Optional<BotData> getUserData(String botId, String userId)
botId - the BotIduserId - the UserIdcom.google.common.base.Optional<BotData> setUserData(String botId, String userId, BotData data)
botId - the BotIduserId - the UserIddata - the new BotDatacom.google.common.base.Optional<BotData> getConversationData(String botId, String conversationId)
botId - the BotIdconversationId - the ConversationIdcom.google.common.base.Optional<BotData> setConversationData(String botId, String conversationId, BotData data)
botId - the BotIdconversationId - the ConversationIddata - the new BotDatacom.google.common.base.Optional<BotData> getPerUserConversationData(String botId, String conversationId, String userId)
botId - the BotIdconversationId - the ConversationIduserId - the UserIdcom.google.common.base.Optional<BotData> setPerUserConversationData(String botId, String conversationId, String userId, BotData data)
botId - the BotIdconversationId - the ConversationIduserId - the UserIddata - the new BotDataCopyright © 2016. All rights reserved.