public class Session
Session represent the connected environment of an UA. It's created after UA registration.
Modifier and Type | Class and Description |
---|---|
static class |
Session.Companion |
Modifier and Type | Field and Description |
---|---|
static Session.Companion |
Companion |
Constructor and Description |
---|
Session(java.lang.String ccs,
java.lang.String apiKey) |
Modifier and Type | Method and Description |
---|---|
void |
destroyConversation(java.lang.String name) |
Conversation |
getConversation(java.lang.String conversationName)
Deprecated.
|
Conversation |
getOrCreateConversation(java.lang.String name)
Gets or creates a conversation for a given name.
|
public static Session.Companion Companion
public Session(java.lang.String ccs, java.lang.String apiKey)
ccs
- public Conversation getConversation(java.lang.String conversationName)
Gets a conversation from name for N-N communication. Deprecated in favor of getOrCreateConversation().
conversationName
- Conversation name. Can be set to null to generate a random conversation namepublic Conversation getOrCreateConversation(java.lang.String name)
Gets or creates a conversation for a given name.
name
- Conversation namepublic void destroyConversation(java.lang.String name)