Class NSChatWidgetSettings
Defines the look of the chat widget. Carrier object for ChatWidgetSettings.
Constructors
Initializes a new instance of the NSChatWidgetSettings class.
Declaration
Methods
Declaration
NSKbCategory GetAutoFaqCategory()
Returns
Type |
Description |
NSKbCategory |
Root folder for FAQ suggestions.
|
NSChatWidgetSettings thing;
NSKbCategory autoFaqCategory = thing.GetAutoFaqCategory();
Declaration
Returns
Type |
Description |
Bool |
Enable automatic FAQ suggestions.
|
NSChatWidgetSettings thing;
Bool autoFaqEnabled = thing.GetAutoFaqEnabled();
Declaration
Returns
Type |
Description |
String |
The base color of the widget.
|
NSChatWidgetSettings thing;
String color = thing.GetColor();
Declaration
Returns
Type |
Description |
String |
The font used in the widget.
|
NSChatWidgetSettings thing;
String font = thing.GetFont();
Declaration
String GetLanguageIsoCode()
Returns
Type |
Description |
String |
The language ISO code for the widget language.
|
NSChatWidgetSettings thing;
String languageIsoCode = thing.GetLanguageIsoCode();
Declaration
Returns
Type |
Description |
Integer |
Blob ID that contains logo image.
|
NSChatWidgetSettings thing;
Integer logoBlobId = thing.GetLogoBlobId();
Declaration
Returns
Type |
Description |
Bool |
Indicates if the logo should be shown in the widget.
|
NSChatWidgetSettings thing;
Bool logoEnabled = thing.GetLogoEnabled();
Declaration
Returns
Type |
Description |
String |
filename/description of logo (from blob).
|
NSChatWidgetSettings thing;
String logoName = thing.GetLogoName();
Declaration
Integer GetOfflineFields()
Returns
NSChatWidgetSettings thing;
Integer offlineFields = thing.GetOfflineFields();
Declaration
String GetOfflineHeader()
Returns
Type |
Description |
String |
Offline text shown in widget header.
|
NSChatWidgetSettings thing;
String offlineHeader = thing.GetOfflineHeader();
Declaration
String GetOfflineMessage()
Returns
Type |
Description |
String |
Offline message shown in widget.
|
NSChatWidgetSettings thing;
String offlineMessage = thing.GetOfflineMessage();
GetPostFormEnabled()
Declaration
Bool GetPostFormEnabled()
Returns
Type |
Description |
Bool |
Enable post chat form.
|
Examples
NSChatWidgetSettings thing;
Bool postFormEnabled = thing.GetPostFormEnabled();
Declaration
String GetPostFormHeader()
Returns
Type |
Description |
String |
Header text to show in post chat form.
|
NSChatWidgetSettings thing;
String postFormHeader = thing.GetPostFormHeader();
GetPostFormMessage()
Declaration
String GetPostFormMessage()
Returns
Type |
Description |
String |
Message text to show in post chat form.
|
Examples
NSChatWidgetSettings thing;
String postFormMessage = thing.GetPostFormMessage();
GetPostTranscriptEnabled()
Declaration
Bool GetPostTranscriptEnabled()
Returns
Type |
Description |
Bool |
Enable transcript of chat session.
|
Examples
NSChatWidgetSettings thing;
Bool postTranscriptEnabled = thing.GetPostTranscriptEnabled();
Declaration
Returns
Type |
Description |
Bool |
Enable pre-chat form for anonymous users.
|
NSChatWidgetSettings thing;
Bool preFormEnabled = thing.GetPreFormEnabled();
Declaration
String GetPreFormMessage()
Returns
Type |
Description |
String |
Message to be shown in a pre-chat.
|
NSChatWidgetSettings thing;
String preFormMessage = thing.GetPreFormMessage();
Declaration
Integer GetRequiredFields()
Returns
NSChatWidgetSettings thing;
Integer requiredFields = thing.GetRequiredFields();
Declaration
Returns
Type |
Description |
Bool |
Use agent photo and name when chatting.
|
NSChatWidgetSettings thing;
Bool showAgentPhoto = thing.GetShowAgentPhoto();
Declaration
Returns
NSChatWidgetSettings thing;
Integer size = thing.GetSize();
Declaration
Returns
NSChatWidgetSettings thing;
Integer theme = thing.GetTheme();
Declaration
String GetWelcomeMessage()
Returns
Type |
Description |
String |
Short message displayed as long as the request is in queue or active.
|
NSChatWidgetSettings thing;
String welcomeMessage = thing.GetWelcomeMessage();
Declaration
Returns
Type |
Description |
String |
Short welcome message when user initiates a chat.
|
NSChatWidgetSettings thing;
String welcomeTitle = thing.GetWelcomeTitle();
Declaration
Void SetAutoFaqCategory(NSKbCategory autoFaqCategory)
Parameters
Type |
Name |
Description |
NSKbCategory |
autoFaqCategory |
Root folder for FAQ suggestions.
|
Returns
NSChatWidgetSettings thing;
NSKbCategory autoFaqCategory;
thing.SetAutoFaqCategory(autoFaqCategory);
Declaration
Void SetAutoFaqEnabled(Bool autoFaqEnabled)
Parameters
Type |
Name |
Description |
Bool |
autoFaqEnabled |
Enable automatic FAQ suggestions.
|
Returns
NSChatWidgetSettings thing;
Bool autoFaqEnabled;
thing.SetAutoFaqEnabled(autoFaqEnabled);
Declaration
Void SetColor(String color)
Parameters
Type |
Name |
Description |
String |
color |
The base color of the widget.
|
Returns
NSChatWidgetSettings thing;
String color;
thing.SetColor(color);
Declaration
Void SetFont(String font)
Parameters
Type |
Name |
Description |
String |
font |
The font used in the widget.
|
Returns
NSChatWidgetSettings thing;
String font;
thing.SetFont(font);
Declaration
Void SetLanguageIsoCode(String languageIsoCode)
Parameters
Type |
Name |
Description |
String |
languageIsoCode |
The language ISO code for the widget language.
|
Returns
NSChatWidgetSettings thing;
String languageIsoCode;
thing.SetLanguageIsoCode(languageIsoCode);
Declaration
Void SetLogoBlobId(Integer logoBlobId)
Parameters
Type |
Name |
Description |
Integer |
logoBlobId |
Blob ID that contains logo image.
|
Returns
NSChatWidgetSettings thing;
Integer logoBlobId;
thing.SetLogoBlobId(logoBlobId);
Declaration
Void SetLogoEnabled(Bool logoEnabled)
Parameters
Type |
Name |
Description |
Bool |
logoEnabled |
Indicates if the logo should be shown in the widget.
|
Returns
NSChatWidgetSettings thing;
Bool logoEnabled;
thing.SetLogoEnabled(logoEnabled);
Declaration
Void SetLogoName(String logoName)
Parameters
Type |
Name |
Description |
String |
logoName |
filename/description of logo (from blob).
|
Returns
NSChatWidgetSettings thing;
String logoName;
thing.SetLogoName(logoName);
Declaration
Void SetOfflineFields(Integer offlineFields)
Parameters
NSChatWidgetSettings thing;
Integer offlineFields;
thing.SetOfflineFields(offlineFields);
Declaration
Void SetOfflineHeader(String offlineHeader)
Parameters
Type |
Name |
Description |
String |
offlineHeader |
Offline text shown in widget header.
|
Returns
NSChatWidgetSettings thing;
String offlineHeader;
thing.SetOfflineHeader(offlineHeader);
Declaration
Void SetOfflineMessage(String offlineMessage)
Parameters
Type |
Name |
Description |
String |
offlineMessage |
Offline message shown in widget.
|
Returns
NSChatWidgetSettings thing;
String offlineMessage;
thing.SetOfflineMessage(offlineMessage);
SetPostFormEnabled(Bool)
Declaration
Void SetPostFormEnabled(Bool postFormEnabled)
Parameters
Type |
Name |
Description |
Bool |
postFormEnabled |
Enable post chat form.
|
Returns
Examples
NSChatWidgetSettings thing;
Bool postFormEnabled;
thing.SetPostFormEnabled(postFormEnabled);
Declaration
Void SetPostFormHeader(String postFormHeader)
Parameters
Type |
Name |
Description |
String |
postFormHeader |
Header text to show in post chat form.
|
Returns
NSChatWidgetSettings thing;
String postFormHeader;
thing.SetPostFormHeader(postFormHeader);
SetPostFormMessage(String)
Declaration
Void SetPostFormMessage(String postFormMessage)
Parameters
Type |
Name |
Description |
String |
postFormMessage |
Message text to show in post chat form.
|
Returns
Examples
NSChatWidgetSettings thing;
String postFormMessage;
thing.SetPostFormMessage(postFormMessage);
SetPostTranscriptEnabled(Bool)
Declaration
Void SetPostTranscriptEnabled(Bool postTranscriptEnabled)
Parameters
Type |
Name |
Description |
Bool |
postTranscriptEnabled |
Enable transcript of chat session.
|
Returns
Examples
NSChatWidgetSettings thing;
Bool postTranscriptEnabled;
thing.SetPostTranscriptEnabled(postTranscriptEnabled);
Declaration
Void SetPreFormEnabled(Bool preFormEnabled)
Parameters
Type |
Name |
Description |
Bool |
preFormEnabled |
Enable pre-chat form for anonymous users.
|
Returns
NSChatWidgetSettings thing;
Bool preFormEnabled;
thing.SetPreFormEnabled(preFormEnabled);
Declaration
Void SetPreFormMessage(String preFormMessage)
Parameters
Type |
Name |
Description |
String |
preFormMessage |
Message to be shown in a pre-chat.
|
Returns
NSChatWidgetSettings thing;
String preFormMessage;
thing.SetPreFormMessage(preFormMessage);
Declaration
Void SetRequiredFields(Integer requiredFields)
Parameters
Returns
NSChatWidgetSettings thing;
Integer requiredFields;
thing.SetRequiredFields(requiredFields);
Declaration
Void SetShowAgentPhoto(Bool showAgentPhoto)
Parameters
Type |
Name |
Description |
Bool |
showAgentPhoto |
Use agent photo and name when chatting.
|
Returns
NSChatWidgetSettings thing;
Bool showAgentPhoto;
thing.SetShowAgentPhoto(showAgentPhoto);
Declaration
Void SetSize(Integer size)
Parameters
Returns
NSChatWidgetSettings thing;
Integer size;
thing.SetSize(size);
Declaration
Void SetTheme(Integer theme)
Parameters
Type |
Name |
Description |
Integer |
theme |
Predefined themes for the chat widget. See WidgetTheme.
|
Returns
NSChatWidgetSettings thing;
Integer theme;
thing.SetTheme(theme);
Declaration
Void SetWelcomeMessage(String welcomeMessage)
Parameters
Type |
Name |
Description |
String |
welcomeMessage |
Short message displayed as long as the request is in queue or active.
|
Returns
NSChatWidgetSettings thing;
String welcomeMessage;
thing.SetWelcomeMessage(welcomeMessage);
Declaration
Void SetWelcomeTitle(String welcomeTitle)
Parameters
Type |
Name |
Description |
String |
welcomeTitle |
Short welcome message when user initiates a chat.
|
Returns
NSChatWidgetSettings thing;
String welcomeTitle;
thing.SetWelcomeTitle(welcomeTitle);