public class Profile
extends java.lang.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 com.zopim.android.sdk.data.DataSource#addProfileObserver(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.
ZopimChatApi.setVisitorInfo(VisitorInfo)
Constructor and Description |
---|
Profile() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDepartmentId()
Gets department id of the department that this visitor is assigned to.
|
java.lang.String |
getDisplayName()
Gets display name of the visitor in the chat session
|
java.lang.String |
getEmail()
Gets email configured of the visitor in the chat session
|
java.lang.String |
getMachineId()
Gets machine id of the current chat session.
|
java.lang.String |
getPhoneNumber()
Gets phone number of the visitor in the chat session
|
java.lang.String |
toString() |
@Nullable public java.lang.String getMachineId()
It can be used to reconnect to the that chat session.
@Nullable public java.lang.String getEmail()
@Nullable public java.lang.String getDisplayName()
@Nullable public java.lang.String getPhoneNumber()
@Nullable public java.lang.String getDepartmentId()
Departments are defined in LivechatDepartmentsPath
public java.lang.String toString()
toString
in class java.lang.Object