Class ConnectorData
-
- All Implemented Interfaces:
public class ConnectorDataThe connector data that connector sends to the ConnectorController
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanskipAnswerprivate final ConnectorCallbackcallbackprivate final PlayerIdpriorUserIdprivate BooleansaveTimelineprivate final StringgroupIdprivate final Stringrefererprivate final Map<String, String>metadata
-
Constructor Summary
Constructors Constructor Description ConnectorData(ConnectorCallback callback, PlayerId priorUserId, Boolean saveTimeline, String groupId, String referer, Map<String, String> metadata)
-
Method Summary
Modifier and Type Method Description final BooleangetSkipAnswer()Set to true if the bot does not make any answer to a user sentence. final UnitsetSkipAnswer(Boolean skipAnswer)Set to true if the bot does not make any answer to a user sentence. final ConnectorCallbackgetCallback()The callback (used mostly in synchronous Connector). final PlayerIdgetPriorUserId()The previous user id - used when the user had a "temporary" identifier and the definitive identifier is now known. final BooleangetSaveTimeline()To know if the timeline has to be saved - default is true. final UnitsetSaveTimeline(Boolean saveTimeline)To know if the timeline has to be saved - default is true. final StringgetGroupId()An optional group id (for users group conversation handling). final StringgetReferer()An optional referer. final Map<String, String>getMetadata()optional metadata metadata from connector -
-
Method Detail
-
getSkipAnswer
final Boolean getSkipAnswer()
Set to true if the bot does not make any answer to a user sentence. Synchronous Connectors usually do not support skipping answer.
-
setSkipAnswer
final Unit setSkipAnswer(Boolean skipAnswer)
Set to true if the bot does not make any answer to a user sentence. Synchronous Connectors usually do not support skipping answer.
-
getCallback
final ConnectorCallback getCallback()
The callback (used mostly in synchronous Connector).
-
getPriorUserId
final PlayerId getPriorUserId()
The previous user id - used when the user had a "temporary" identifier and the definitive identifier is now known.
-
getSaveTimeline
final Boolean getSaveTimeline()
To know if the timeline has to be saved - default is true. Set to false for bots that you don't need to register.
-
setSaveTimeline
final Unit setSaveTimeline(Boolean saveTimeline)
To know if the timeline has to be saved - default is true. Set to false for bots that you don't need to register.
-
getGroupId
final String getGroupId()
An optional group id (for users group conversation handling).
-
getReferer
final String getReferer()
An optional referer.
-
getMetadata
final Map<String, String> getMetadata()
optional metadata metadata from connector
-
-
-
-