Class Profile



  • public class Profile
    extends java.lang.Object
    This is a model class for user profile information that will be created by 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.

    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.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() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Profile

        public Profile()
    • 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:
        toString in class java.lang.Object