Package com.zopim.android.sdk.model
Class Profile
- java.lang.Object
-
- com.zopim.android.sdk.model.Profile
-
public class Profile extends java.lang.ObjectThis is a model class for user profile information that will be created byLivechatProfilePath.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.addProfileObserver(java.util.Observer)usingProfileObserverThis 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.
- See Also:
ZopimChatApi.setVisitorInfo(VisitorInfo)
-
-
Constructor Summary
Constructors Constructor and Description Profile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetDepartmentId()Gets department id of the department that this visitor is assigned to.java.lang.StringgetDisplayName()Gets display name of the visitor in the chat sessionjava.lang.StringgetEmail()Gets email configured of the visitor in the chat sessionjava.lang.StringgetMachineId()Gets machine id of the current chat session.java.lang.StringgetPhoneNumber()Gets phone number of the visitor in the chat sessionjava.lang.StringtoString()
-
-
-
Method Detail
-
getMachineId
public java.lang.String getMachineId()
Gets machine id of the current chat session.It can be used to reconnect to the that chat session.
- Returns:
- machine id of the chat session
-
getEmail
public java.lang.String getEmail()
Gets email configured of the visitor in the chat session- Returns:
- email address
-
getDisplayName
public java.lang.String getDisplayName()
Gets display name of the visitor in the chat session- Returns:
- display name of the visitor
-
getPhoneNumber
public java.lang.String getPhoneNumber()
Gets phone number of the visitor in the chat session- Returns:
- phone number of the visitor
-
getDepartmentId
public java.lang.String getDepartmentId()
Gets department id of the department that this visitor is assigned to.Departments are defined in
LivechatDepartmentsPath- Returns:
- id of the department
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-