PostbackAction

PostbackAction

Represents a postback action.

Constructor

new PostbackAction(label, postback)

Description:
  • Creates an instance of PostbackAction.
Source:
Parameters:
Name Type Description
label The label of the postback action.
postback The postback associated with the action.

Extends

Methods

addKeyword(keyword)

Description:
  • Adds a keyword.
Source:
Parameters:
Name Type Description
keyword The keyword to add.
Returns:
The current instance of the PostbackAction class.

deserializeNestedProperties()

Description:
  • Deserialize nested object properties into corresponding class instances
Source:
Overrides:

getChannelExtensionProperty(channelType, propertyName) → {any}

Description:
  • Get the value of a channel extension property
Source:
Overrides:
Parameters:
Name Type Description
channelType ChannelType The channel type.
propertyName string The name of the property.
Returns:
The property value
Type
any

getChannelExtensions() → {ChannelExtensions}

Description:
  • Gets the channel extensions
Source:
Overrides:
Returns:
The channel extensions
Type
ChannelExtensions

getDisplayType() → {DisplayType}

Description:
  • Gets the style of the action.
Source:
Overrides:
Returns:
The display type of the action.
Type
DisplayType

getId() → {string}

Description:
  • Gets the ID of the action.
Source:
Overrides:
Returns:
The ID of the action.
Type
string

getImageUrl() → {string}

Description:
  • Gets the image URL of the action.
Source:
Overrides:
Returns:
The image URL of the action.
Type
string

getKeywords()

Description:
  • Gets the keywords.
Source:
Returns:
The keywords.

getLabel() → {string}

Description:
  • Gets the label of the action.
Source:
Overrides:
Returns:
The label of the action.
Type
string

getPostback()

Description:
  • Gets the postback associated with the action.
Source:
Returns:
The postback associated with the action.

getSkipAutoNumber()

Description:
  • Gets the skipAutoNumber flag.
Source:
Returns:
The skipAutoNumber flag.

getStyle() → {string}

Description:
  • Gets the style of the action.
Source:
Overrides:
Returns:
The style of the action.
Type
string

getVoice() → {Voice}

Description:
  • Gets the voice settings associated with the action.
Source:
Overrides:
Returns:
The voice settings associated with the action.
Type
Voice

setChannelExtensionProperty(channelType, propertyName, propertyValue)

Description:
  • Sets a channel-specific extension property
Source:
Overrides:
Parameters:
Name Type Description
channelType ChannelType The channel type.
propertyName string The name of the property.
propertyValue any The value of the property.
Returns:
The current instance of this class.

setDisplayType(displayType)

Description:
  • Sets the display type of the action.
Source:
Overrides:
Parameters:
Name Type Description
displayType DisplayType The display type to set.
Returns:
The current instance of the Action class.

setId(id)

Description:
  • Sets the ID of the action.
Source:
Overrides:
Parameters:
Name Type Description
id string The ID to set.

setImageUrl(imageUrl)

Description:
  • Sets the image URL of the action.
Source:
Overrides:
Parameters:
Name Type Description
imageUrl string The image URL to set.
Returns:
The current instance of the Action class.

setKeywords(keywords)

Description:
  • Sets the keywords.
Source:
Parameters:
Name Type Description
keywords The keywords to set.
Returns:
The current instance of the PostbackAction class.

setLabel(label)

Description:
  • Sets the label of the action.
Source:
Overrides:
Parameters:
Name Type Description
label string The label to set.
Returns:
The current instance of the Action class.

setPostback(postback)

Description:
  • Sets the postback associated with the action.
Source:
Parameters:
Name Type Description
postback The postback to set.
Returns:
The current instance of the PostbackAction class.

setSkipAutoNumber(skipAutoNumber)

Description:
  • Sets the skipAutoNumber flag.
Source:
Parameters:
Name Type Description
skipAutoNumber The skipAutoNumber flag to set.
Returns:
The current instance of the PostbackAction class.

setStyle(style)

Description:
  • Sets the style of the action.
Source:
Overrides:
Parameters:
Name Type Description
style string The style to set.
Returns:
The current instance of the Action class.

setVoice(voice)

Description:
  • Sets the voice settings associated with the action.
Source:
Overrides:
Parameters:
Name Type Description
voice Voice The voice to set.
Returns:
The current instance of the Action class.