-
- All Implemented Interfaces:
-
com.glia.androidsdk.chat.MessageAttachment,com.glia.androidsdk.chat.SingleChoiceAttachment
public class SingleChoiceAttachmentInternal extends MessageAttachmentInternal implements SingleChoiceAttachment
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringOPTIONS_TAGpublic final static StringSELECTED_OPTION_TAGpublic final static StringIMAGE_URL_TAGprivate final StringselectedOptionprivate final Array<SingleChoiceOptionInternal>optionsprivate final StringselectedOptionText
-
Constructor Summary
Constructors Constructor Description SingleChoiceAttachmentInternal(String value, String text)SingleChoiceAttachmentInternal(Array<SingleChoiceOptionInternal> options, String imageUrl)
-
Method Summary
Modifier and Type Method Description StringgetSelectedOption()The selected option. Array<SingleChoiceOptionInternal>getOptions()The options of the single choice message. StringgetSelectedOptionText()-
Methods inherited from class com.glia.androidsdk.internal.chat.MessageAttachmentInternal
getType -
Methods inherited from class com.glia.androidsdk.chat.SingleChoiceAttachment
getOptions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SingleChoiceAttachmentInternal
SingleChoiceAttachmentInternal(Array<SingleChoiceOptionInternal> options, String imageUrl)
-
-
Method Detail
-
getSelectedOption
String getSelectedOption()
The selected option. Only available when an answer has been given to a single choice attachment.
-
getOptions
Array<SingleChoiceOptionInternal> getOptions()
The options of the single choice message.
-
getSelectedOptionText
String getSelectedOptionText()
-
-
-
-