Class UninitializedChat
- java.lang.Object
- 
- com.zopim.android.sdk.api.UninitializedChat
 
- 
- All Implemented Interfaces:
- Chat, ChatApi, ChatApiCommands
 
 
 public final class UninitializedChat extends java.lang.Object implements Chat Definition of a mockedChat.It will be used in case there has been error with chat initialization. - See Also:
- ZopimChat.init(String)
 
- 
- 
Constructor SummaryConstructors Constructor and Description UninitializedChat()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddNote(java.lang.String note)Appends a note to the current visitor notevoiddisconnect()Disconnect the current chat, used when switching to push mode.booleanemailTranscript(java.lang.String email)Emails the current chat transcriptvoidendChat()Ends the current chat.ChatConfiggetConfig()Gets chat config for the current chat session as configured viaZopimChatApibooleanhasEnded()Tells if this chat session has ended and can not be continued.voidresend(java.lang.String messageId)Re-sends the visitor message.voidresetTimeout()Resets chat timeout.voidsend(java.io.File file)Sends the file to the current chat log.voidsend(java.lang.String message)Sends the visitor message.voidsendChatComment(java.lang.String comment)Sets a comment to the current chat session.voidsendChatRating(ChatLog.Rating rating)Sets rating for the current chat session.booleansendOfflineMessage(java.lang.String name, java.lang.String email, java.lang.String message)Sends email to agents defined in the dashboard for this account.voidsetDepartment(java.lang.String department)Sets a department to the current chat session.voidsetEmail(java.lang.String email)Sets the email for the user in the current chat session.voidsetName(java.lang.String name)Sets the name for the user in the current chat session.voidsetNote(java.lang.String note)Sets a note to the visitor profilevoidsetPhoneNumber(java.lang.String phoneNumber)Sets phone number information for the user that is in the current chat session.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.zopim.android.sdk.api.ChatApihasEnded, resetTimeout
 - 
Methods inherited from interface com.zopim.android.sdk.api.ChatApiCommandsaddNote, disconnect, emailTranscript, endChat, resend, send, send, sendChatComment, sendChatRating, sendOfflineMessage, setDepartment, setEmail, setName, setNote, setPhoneNumber
 
- 
 
- 
- 
- 
Method Detail- 
getConfigpublic ChatConfig getConfig() Description copied from interface:ChatApiGets chat config for the current chat session as configured viaZopimChatApiIt will reflect ZopimChatApi.DefaultConfigconfiguration values unless overridden viaZopimChatApi.SessionConfigat chat start.
 - 
hasEndedpublic boolean hasEnded() Description copied from interface:ChatApiTells if this chat session has ended and can not be continued.
 - 
resetTimeoutpublic void resetTimeout() Description copied from interface:ChatApiResets chat timeout. This will offset the timeout by the value configured viaZopimChatApi.DefaultConfig.sessionTimeout(long).- Specified by:
- resetTimeoutin interface- ChatApi
 
 - 
sendpublic void send(java.lang.String message) Description copied from interface:ChatApiCommandsSends the visitor message.This message will appear in the agent dashboard in an active chat queue. - Specified by:
- sendin interface- ChatApiCommands
- Parameters:
- message- to be sent
- See Also:
- Agent Visitor List
 
 - 
sendpublic void send(java.io.File file) Description copied from interface:ChatApiCommandsSends 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:
- sendin interface- ChatApiCommands
- Parameters:
- file- to send
- See Also:
- ChatLogObserver, Agent Dashboard
 
 - 
resendpublic void resend(java.lang.String messageId) Description copied from interface:ChatApiCommandsRe-sends the visitor message.This message will appear in the agent dashboard. - Specified by:
- resendin interface- ChatApiCommands
- Parameters:
- messageId- id of the message to resend
- See Also:
- Agent Visitor List
 
 - 
sendOfflineMessagepublic boolean sendOfflineMessage(java.lang.String name, java.lang.String email, java.lang.String message)Description copied from interface:ChatApiCommandsSends 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:
- sendOfflineMessagein interface- ChatApiCommands
- Parameters:
- name- of the visitor
- email- of the visitor
- message- inquiry
- Returns:
- true if was able to send, false otherwise
 
 - 
sendChatRatingpublic void sendChatRating(ChatLog.Rating rating) Description copied from interface:ChatApiCommandsSets 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:
- sendChatRatingin interface- ChatApiCommands
- Parameters:
- rating- to set
 
 - 
sendChatCommentpublic void sendChatComment(java.lang.String comment) Description copied from interface:ChatApiCommandsSets a comment to the current chat session.- Specified by:
- sendChatCommentin interface- ChatApiCommands
- Parameters:
- comment- to set
 
 - 
endChatpublic void endChat() Description copied from interface:ChatApiCommandsEnds the current chat. This will update the connection status to closed.- Specified by:
- endChatin interface- ChatApiCommands
 
 - 
disconnectpublic void disconnect() Description copied from interface:ChatApiCommandsDisconnect the current chat, used when switching to push mode.- Specified by:
- disconnectin interface- ChatApiCommands
 
 - 
emailTranscriptpublic boolean emailTranscript(java.lang.String email) Description copied from interface:ChatApiCommandsEmails the current chat transcriptIt will send an email to the provided address with the current chat log - Specified by:
- emailTranscriptin interface- ChatApiCommands
- Parameters:
- email- address to send the transcript to
- Returns:
- true if email was sent, false otherwise
 
 - 
setDepartmentpublic void setDepartment(java.lang.String department) Description copied from interface:ChatApiCommandsSets 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 LivechatDepartmentsPathafter initialization is completeChatService#onChatInitialized(). Setting a non defined department will have no effect.- Specified by:
- setDepartmentin interface- ChatApiCommands
- Parameters:
- department- visitor is chatting with
- See Also:
- Departments Dashboard
 
 - 
setPhoneNumberpublic void setPhoneNumber(java.lang.String phoneNumber) Description copied from interface:ChatApiCommandsSets phone number information for the user that is in the current chat session.This information will be visible in the agent dashboard. - Specified by:
- setPhoneNumberin interface- ChatApiCommands
- Parameters:
- phoneNumber- of the visitor
- See Also:
- Agent Dashboard
 
 - 
setNamepublic void setName(java.lang.String name) Description copied from interface:ChatApiCommandsSets the name for the user in the current chat session.This information will be visible in the agent dashboard. - Specified by:
- setNamein interface- ChatApiCommands
- Parameters:
- name- of the visitor
- See Also:
- Agent Dashboard
 
 - 
setEmailpublic void setEmail(java.lang.String email) Description copied from interface:ChatApiCommandsSets the email for the user in the current chat session.This information will be visible in the agent dashboard. - Specified by:
- setEmailin interface- ChatApiCommands
- Parameters:
- email- of the visitor
- See Also:
- Agent Dashboard
 
 - 
setNotepublic void setNote(java.lang.String note) Description copied from interface:ChatApiCommandsSets a note to the visitor profile- Specified by:
- setNotein interface- ChatApiCommands
- Parameters:
- note- about the visitor
 
 - 
addNotepublic void addNote(java.lang.String note) Description copied from interface:ChatApiCommandsAppends a note to the current visitor note- Specified by:
- addNotein interface- ChatApiCommands
- Parameters:
- note- about the visitor to append
 
 
- 
 
-