Class UninitializedChat

    • Constructor Detail

      • UninitializedChat

        public UninitializedChat()
    • Method Detail

      • hasEnded

        public boolean hasEnded()
        Description copied from interface: ChatApi
        Tells if this chat session has ended and can not be continued.
        Specified by:
        hasEnded in interface ChatApi
        Returns:
        true if ended, false otherwise
      • send

        public void send(java.lang.String message)
        Description copied from interface: ChatApiCommands
        Sends the visitor message.

        This message will appear in the agent dashboard in an active chat queue.

        Specified by:
        send in interface ChatApiCommands
        Parameters:
        message - to be sent
        See Also:
        Agent Visitor List
      • send

        public void send(java.io.File file)
        Description copied from interface: ChatApiCommands
        Sends the file to the current chat log. Successful file send will trigger a chat log update with information about the file being uploaded.

        File must pass validation check and upload requirements defined in Zopim attachments page

        A successful file upload will be visible in the agent dashboard.

        Specified by:
        send in interface ChatApiCommands
        Parameters:
        file - to send
        See Also:
        ChatLogObserver, Agent Dashboard
      • resend

        public void resend(java.lang.String messageId)
        Description copied from interface: ChatApiCommands
        Re-sends the visitor message.

        This message will appear in the agent dashboard.

        Specified by:
        resend in interface ChatApiCommands
        Parameters:
        messageId - id of the message to resend
        See Also:
        Agent Visitor List
      • sendOfflineMessage

        public boolean sendOfflineMessage(java.lang.String name,
                                          java.lang.String email,
                                          java.lang.String message)
        Description copied from interface: ChatApiCommands
        Sends email to agents defined in the dashboard for this account.

        Email must be provided in order for the agent to be able to respond.

        Specified by:
        sendOfflineMessage in interface ChatApiCommands
        Parameters:
        name - of the visitor
        email - of the visitor
        message - inquiry
        Returns:
        true if was able to send, false otherwise
      • sendChatRating

        public void sendChatRating(ChatLog.Rating rating)
        Description copied from interface: ChatApiCommands
        Sets rating for the current chat session.

        This will appear as a response to the chat rating questionnaire sent by an agent to the visitor.

        Specified by:
        sendChatRating in interface ChatApiCommands
        Parameters:
        rating - to set
      • sendChatComment

        public void sendChatComment(java.lang.String comment)
        Description copied from interface: ChatApiCommands
        Sets a comment to the current chat session.
        Specified by:
        sendChatComment in interface ChatApiCommands
        Parameters:
        comment - to set
      • endChat

        public void endChat()
        Description copied from interface: ChatApiCommands
        Ends the current chat. This will update the connection status to closed.
        Specified by:
        endChat in interface ChatApiCommands
      • disconnect

        public void disconnect()
        Description copied from interface: ChatApiCommands
        Disconnect the current chat, used when switching to push mode.
        Specified by:
        disconnect in interface ChatApiCommands
      • emailTranscript

        public boolean emailTranscript(java.lang.String email)
        Description copied from interface: ChatApiCommands
        Emails the current chat transcript

        It will send an email to the provided address with the current chat log

        Specified by:
        emailTranscript in interface ChatApiCommands
        Parameters:
        email - address to send the transcript to
        Returns:
        true if email was sent, false otherwise
      • setDepartment

        public void setDepartment(java.lang.String department)
        Description copied from interface: ChatApiCommands
        Sets a department to the current chat session.

        Configuring a department in the chat will deliver the chat to the right group of agents supporting that department's inquiries. This information will be visible in the agent dashboard.

        Provided department should be one of the departments available in this account. The list of available departments will be available in LivechatDepartmentsPath after initialization is complete ChatService#onChatInitialized(). Setting a non defined department will have no effect.

        Specified by:
        setDepartment in interface ChatApiCommands
        Parameters:
        department - visitor is chatting with
        See Also:
        Departments Dashboard
      • setPhoneNumber

        public void setPhoneNumber(java.lang.String phoneNumber)
        Description copied from interface: ChatApiCommands
        Sets phone number information for the user that is in the current chat session.

        This information will be visible in the agent dashboard.

        Specified by:
        setPhoneNumber in interface ChatApiCommands
        Parameters:
        phoneNumber - of the visitor
        See Also:
        Agent Dashboard
      • setName

        public void setName(java.lang.String name)
        Description copied from interface: ChatApiCommands
        Sets the name for the user in the current chat session.

        This information will be visible in the agent dashboard.

        Specified by:
        setName in interface ChatApiCommands
        Parameters:
        name - of the visitor
        See Also:
        Agent Dashboard
      • setEmail

        public void setEmail(java.lang.String email)
        Description copied from interface: ChatApiCommands
        Sets the email for the user in the current chat session.

        This information will be visible in the agent dashboard.

        Specified by:
        setEmail in interface ChatApiCommands
        Parameters:
        email - of the visitor
        See Also:
        Agent Dashboard
      • setNote

        public void setNote(java.lang.String note)
        Description copied from interface: ChatApiCommands
        Sets a note to the visitor profile
        Specified by:
        setNote in interface ChatApiCommands
        Parameters:
        note - about the visitor
      • addNote

        public void addNote(java.lang.String note)
        Description copied from interface: ChatApiCommands
        Appends a note to the current visitor note
        Specified by:
        addNote in interface ChatApiCommands
        Parameters:
        note - about the visitor to append