public class Profile extends Object
LivechatProfilePath
.
It holds information about the visitor and the chat session this visitor is in.
Visitor information if defined here VisitorInfo
.
Visitor session information is used by the SDK only for reconnect purposes.
You can subscribe to profile broadcast via DataSource.addProfileOberver(java.util.Observer)
using ProfileObserver
This class is a model that will be serialised to JSON and deserialised from JSON to this model. As such it does not follow the m naming prefix for fields.
ZopimChat.setVisitorInfo(VisitorInfo)
Constructor and Description |
---|
Profile() |
Modifier and Type | Method and Description |
---|---|
String |
getDepartmentId()
Gets department id of the department that this visitor is assigned to.
|
String |
getDisplayName()
Gets display name of the visitor in the chat session
|
String |
getEmail()
Gets email configured of the visitor in the chat session
|
String |
getMachineId()
Gets machine id of the current chat session.
|
String |
getPhoneNumber()
Gets phone number of the visitor in the chat session
|
String |
toString() |
public String getMachineId()
It can be used to reconnect to the that chat session.
public String getEmail()
public String getDisplayName()
public String getPhoneNumber()
public String getDepartmentId()
Departments are defined in LivechatDepartmentsPath