@Deprecated public class DialogService extends WatsonService
ConversationServicedefaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION| Constructor and Description |
|---|
DialogService()
Deprecated.
Instantiates a new Dialog service with the default URL.
|
DialogService(java.lang.String username,
java.lang.String password)
Deprecated.
Instantiates a new dialog service by username and password.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceCall<Conversation> |
converse(Conversation conversation,
java.lang.String newMessage)
Deprecated.
Starts or continue conversations.
|
ServiceCall<Conversation> |
createConversation(java.lang.String dialogId)
Deprecated.
Starts or continue conversations.
|
ServiceCall<Dialog> |
createDialog(java.lang.String name,
java.io.File dialogFile)
Deprecated.
Creates a dialog.
|
ServiceCall<java.lang.Void> |
deleteDialog(java.lang.String dialogId)
Deprecated.
Deletes a dialog.
|
ServiceCall<java.util.List<DialogContent>> |
getContent(java.lang.String dialogId)
Deprecated.
Gets content for nodes.
|
ServiceCall<java.util.List<ConversationData>> |
getConversationData(ConversationDataOptions options)
Deprecated.
Returns chat session data dump for a given date rage.
|
ServiceCall<java.util.List<Dialog>> |
getDialogs()
Deprecated.
Retrieves the list of Dialogs for the user.
|
ServiceCall<java.util.Map<java.lang.String,java.lang.String>> |
getProfile(Conversation conversation,
java.lang.String... names)
Deprecated.
Returns a list of name-value pars associated with a client id.
|
ServiceCall<java.util.Map<java.lang.String,java.lang.String>> |
getProfile(java.lang.String dialogId,
java.lang.Integer clientId,
java.lang.String... names)
Deprecated.
Returns a list of name-value pars associated with a client id.
|
ServiceCall<java.lang.Void> |
updateDialog(java.lang.String dialogId,
java.io.File dialogFile)
Deprecated.
Updates an existing
Dialog. |
ServiceCall<java.lang.Void> |
updateProfile(Conversation conversation,
java.util.Map<java.lang.String,java.lang.String> profile)
Deprecated.
Updates a profile with a Map of key-value variables.
Profile variables are case sensitive. |
ServiceCall<java.lang.Void> |
updateProfile(java.lang.String dialogId,
java.lang.Integer clientId,
java.util.Map<java.lang.String,java.lang.String> profile)
Deprecated.
Updates a dialog profile with a profile.
Profile variables are case sensitive. |
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toStringpublic DialogService()
public DialogService(java.lang.String username,
java.lang.String password)
username - the usernamepassword - the passwordpublic ServiceCall<Conversation> converse(Conversation conversation, java.lang.String newMessage)
conversation - the current conversationnewMessage - the new messageConversation with the responsepublic ServiceCall<Conversation> createConversation(java.lang.String dialogId)
dialogId - the dialog identifierConversationpublic ServiceCall<Dialog> createDialog(java.lang.String name, java.io.File dialogFile)
name - The dialog namedialogFile - The dialog script fileDialogpublic ServiceCall<java.lang.Void> deleteDialog(java.lang.String dialogId)
dialogId - The dialog identifierDialogServicepublic ServiceCall<java.util.List<DialogContent>> getContent(java.lang.String dialogId)
dialogId - the dialog identifierDialogContent for nodespublic ServiceCall<java.util.List<ConversationData>> getConversationData(ConversationDataOptions options)
options - the optionsConversationDatapublic ServiceCall<java.util.List<Dialog>> getDialogs()
Dialog listpublic ServiceCall<java.util.Map<java.lang.String,java.lang.String>> getProfile(Conversation conversation, java.lang.String... names)
conversation - The current conversationnames - the profile variables to returnpublic ServiceCall<java.util.Map<java.lang.String,java.lang.String>> getProfile(java.lang.String dialogId, java.lang.Integer clientId, java.lang.String... names)
dialogId - The dialog identifierclientId - the client idnames - the profile variables to returnpublic ServiceCall<java.lang.Void> updateDialog(java.lang.String dialogId, java.io.File dialogFile)
Dialog.dialogId - The dialog identifierdialogFile - The dialog fileDialogpublic ServiceCall<java.lang.Void> updateProfile(Conversation conversation, java.util.Map<java.lang.String,java.lang.String> profile)
conversation - the conversationprofile - the profilepublic ServiceCall<java.lang.Void> updateProfile(java.lang.String dialogId, java.lang.Integer clientId, java.util.Map<java.lang.String,java.lang.String> profile)
dialogId - The dialog identifierclientId - the client identifierprofile - the profile variables