Package io.getstream.chat.android.models
Class DraftMessage
-
- All Implemented Interfaces:
-
io.getstream.chat.android.models.CustomObject,io.getstream.chat.android.models.querysort.ComparableFieldProvider
@Immutable() public final class DraftMessage implements CustomObject, ComparableFieldProvider
Model holding data about a draft message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDraftMessage.Builder
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final Stringcidprivate final Stringtextprivate final StringparentIdprivate final List<Attachment>attachmentsprivate final List<String>mentionedUsersIdsprivate final Map<String, Object>extraDataprivate final Booleansilentprivate final BooleanshowInChannelprivate final MessagereplyMessage
-
Method Summary
Modifier and Type Method Description final StringgetId()The unique string identifier of the message. final StringgetCid()Channel unique identifier in <type>:<id> format final StringgetText()The text of this message final StringgetParentId()The ID of the parent message, if the message is a thread reply final List<Attachment>getAttachments()The list of message attachments final List<String>getMentionedUsersIds()The list of user mentioned in the message Map<String, Object>getExtraData()All the custom data provided for this message final BooleangetSilent()Whether message is silent or not final BooleangetShowInChannel()Whether thread reply should be shown in the channel as well final MessagegetReplyMessage()The message that is being replied to. Comparable<?>getComparableField(String fieldName)Gets a comparable fields from a name. final LongidentifierHash()Identifier of message. StringtoString()final DraftMessage.BuildernewBuilder()-
-
Method Detail
-
getId
final String getId()
The unique string identifier of the message. This is either created by Stream or set on the client side when the message is added.
-
getParentId
final String getParentId()
The ID of the parent message, if the message is a thread reply
-
getAttachments
final List<Attachment> getAttachments()
The list of message attachments
-
getMentionedUsersIds
final List<String> getMentionedUsersIds()
The list of user mentioned in the message
-
getExtraData
Map<String, Object> getExtraData()
All the custom data provided for this message
-
getShowInChannel
final Boolean getShowInChannel()
Whether thread reply should be shown in the channel as well
-
getReplyMessage
final Message getReplyMessage()
The message that is being replied to.
-
getComparableField
Comparable<?> getComparableField(String fieldName)
Gets a comparable fields from a name.
- Parameters:
fieldName- The name of the field.
-
identifierHash
final Long identifierHash()
Identifier of message. The message can't be considered the same if the id of the message AND the id of a quoted message are not the same.
-
newBuilder
@SinceKotlin(version = "99999.9") final DraftMessage.Builder newBuilder()
-
-
-
-