public class ConnectorData
The connector data that connector sends to the ConnectorController
| Constructor and Description |
|---|
ConnectorData(ConnectorCallback callback,
PlayerId priorUserId,
boolean saveTimeline,
java.lang.String groupId,
java.lang.String referer)
The connector data that connector sends to the ConnectorController
|
| Modifier and Type | Method and Description |
|---|---|
ConnectorCallback |
getCallback()
The callback
|
java.lang.String |
getGroupId()
An optional group id
|
PlayerId |
getPriorUserId()
The previous user id
|
java.lang.String |
getReferer()
An optional referer.
|
boolean |
getSaveTimeline()
To know if the timeline has to be saved
|
boolean |
getSkipAnswer()
Set to true if the bot does not make any answer to a user sentence.
Synchronous
interface Connectors usually do not support skipping answer. |
void |
setSkipAnswer(boolean p)
Set to true if the bot does not make any answer to a user sentence.
Synchronous
interface Connectors usually do not support skipping answer. |
public ConnectorData(@NotNull
ConnectorCallback callback,
@Nullable
PlayerId priorUserId,
boolean saveTimeline,
@Nullable
java.lang.String groupId,
@Nullable
java.lang.String referer)
The connector data that connector sends to the ConnectorController
callback - The callback (used mostly in synchronous interface Connector).priorUserId - The previous user id - used when the user had a "temporary" identifierand the definitive identifier is now known.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.groupId - An optional group id (for users group conversation handling).referer - An optional referer.public boolean getSkipAnswer()
Set to true if the bot does not make any answer to a user sentence.
Synchronous interface Connectors usually do not support skipping answer.
interface Connectorpublic void setSkipAnswer(boolean p)
Set to true if the bot does not make any answer to a user sentence.
Synchronous interface Connectors usually do not support skipping answer.
interface Connector@NotNull public ConnectorCallback getCallback()
The callback
(used mostly in synchronous interface Connector).
interface Connector@Nullable public PlayerId getPriorUserId()
The previous user id
- used when the user had a "temporary" identifierand the definitive identifier is now known.
public 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.
@Nullable public java.lang.String getGroupId()
An optional group id
(for users group conversation handling).
@Nullable public java.lang.String getReferer()
An optional referer.