Package io.getstream.chat.android.models
Class Option
-
- All Implemented Interfaces:
@Immutable() public final class OptionThe Option object represents an answer option in a poll.
-
-
Method Summary
Modifier and Type Method Description final StringgetId()The unique identifier of the option. final StringgetText()The text of the option. final Map<String, Object>getExtraData()Any additional data associated with the option. final Map<String, String>getTextI18n()Automatic translations of text. final StringgetTranslation(String language)Retrieves the translated text for the given language. -
-
Method Detail
-
getExtraData
final Map<String, Object> getExtraData()
Any additional data associated with the option.
-
getTextI18n
final Map<String, String> getTextI18n()
Automatic translations of text. Key
languagecontains the original language, other keys (<language>_text) contain translations.
-
getTranslation
final String getTranslation(String language)
Retrieves the translated text for the given language.
- Returns:
The translated text, or empty if the translation is not available.
-
-
-
-