Package zendesk.chat
Class ChatProvidersConfiguration
- java.lang.Object
-
- zendesk.chat.ChatProvidersConfiguration
-
public class ChatProvidersConfiguration extends java.lang.ObjectDefault configuration used when starting chats from this SDK. Sample usage: To set a department where chats will be routed by default;
To set information about the visitor that will be included in the next chat;Chat.INSTANCE.setChatProvidersConfiguration( ChatProvidersConfiguration .builder(Chat.INSTANCE.getChatProvidersConfiguration()) .withDepartment("Support")) .build()Chat.INSTANCE.setChatProvidersConfiguration( ChatProvidersConfiguration .builder(Chat.INSTANCE.getChatProvidersConfiguration()) .withVisitorInfo( VisitorInfo .builder() .withEmail("user@testemail.com") .build()) .build()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classChatProvidersConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ChatProvidersConfiguration.Builderbuilder()Returns a builder for constructing an instances ofChatProvidersConfiguration.static ChatProvidersConfiguration.Builderbuilder(ChatProvidersConfiguration chatProvidersConfiguration)Returns a builder for constructing an instances ofChatProvidersConfigurationthat builds on top of an existing visitor info.java.lang.StringgetDepartmentName()Returns the default department of this chat.VisitorInfogetVisitorInfo()Returns thezendesk.chat.VisitorInfoof this user.
-
-
-
Method Detail
-
getVisitorInfo
public VisitorInfo getVisitorInfo()
Returns thezendesk.chat.VisitorInfoof this user. Will return an emptyzendesk.chat.VisitorInfoobject if not set.- Returns:
zendesk.chat.VisitorInfoobject.
-
getDepartmentName
public java.lang.String getDepartmentName()
Returns the default department of this chat. Will return null if not set.- Returns:
- String value of default department.
-
builder
public static ChatProvidersConfiguration.Builder builder()
Returns a builder for constructing an instances ofChatProvidersConfiguration.- See Also:
zendesk.chat.VisitorInfo.Builder
-
builder
public static ChatProvidersConfiguration.Builder builder(ChatProvidersConfiguration chatProvidersConfiguration)
Returns a builder for constructing an instances ofChatProvidersConfigurationthat builds on top of an existing visitor info.
-
-