public interface

SingleChoiceAttachment

implements MessageAttachment
com.glia.androidsdk.chat.SingleChoiceAttachment

Class Overview

Presents the user with the list of options to make a simplified decision for the next interaction. Selected option needs to be sent back to the other party as a regular chat message containing single choice response attachment.

Summary

Public Methods
abstract Optional<String> getImageUrl()
URL of an image displayed on top of the choices expressing clear intent of the single choice card
abstract SingleChoiceOption[] getOptions()
The options of the single choice message.
abstract String getSelectedOption()
The selected option.
[Expand]
Inherited Methods
From interface com.glia.androidsdk.chat.MessageAttachment

Public Methods

public abstract Optional<String> getImageUrl ()

URL of an image displayed on top of the choices expressing clear intent of the single choice card

public abstract SingleChoiceOption[] getOptions ()

The options of the single choice message.

public abstract String getSelectedOption ()

The selected option. Only available when an answer has been given to a single choice attachment.