public final class RecastDialogService extends Object
| Modifier and Type | Method and Description |
|---|---|
static DialogResponse |
getDialogResponse(String strText,
String strConversationId,
String strToken,
String strLanguage)
Call the Dialog API
|
static DialogResponse |
parse(String strJSON)
Parse the response
|
public static DialogResponse getDialogResponse(String strText, String strConversationId, String strToken, String strLanguage) throws fr.paris.lutece.util.httpaccess.HttpAccessException, IOException
strText - The messagestrConversationId - The consersation IDstrToken - The Recast bot tokenstrLanguage - The languagefr.paris.lutece.util.httpaccess.HttpAccessException - If an error occursIOException - If an error occurspublic static DialogResponse parse(String strJSON) throws IOException
strJSON - The response as JSONIOException - An exceptionCopyright © 2017 City of Paris. All rights reserved.