Package io.getstream.chat.android.models
Class Answer
-
- All Implemented Interfaces:
@Immutable() public final class AnswerThe Answer object represents an answer in a poll.
-
-
Method Summary
Modifier and Type Method Description final StringgetId()The unique identifier of the answer. final StringgetPollId()The unique identifier of the poll. final StringgetText()The text of the answer. final DategetCreatedAt()The creation date of the answer. final DategetUpdatedAt()The last update date of the answer. final UsergetUser()The user who sent the answer. final Map<String, String>getTextI18n()Automatic translations of text. final StringgetTranslation(String language)Retrieves the translated text for the given language. -
-
Method Detail
-
getCreatedAt
final Date getCreatedAt()
The creation date of the answer.
-
getUpdatedAt
final Date getUpdatedAt()
The last update date of the answer.
-
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.
-
-
-
-