public class Sender extends User
User.ConnectionStatus, User.DeleteMetaDataHandler, User.MetaDataHandler
Modifier and Type | Method and Description |
---|---|
static Sender |
buildFromSerializedData(byte[] data)
Builds
Sender instance from serialized data generated by serialize() . |
Member.Role |
getRole()
Returns the role of this sender in the current channel.
|
boolean |
isBlockedByMe()
Checks if this sender is blocked by me.
|
byte[] |
serialize()
Serializes the
Sender instance. |
java.lang.String |
toString() |
createMetaData, deleteAllMetaData, deleteMetaData, equals, getConnectionStatus, getFriendDiscoveryKey, getFriendName, getLastSeenAt, getMetaData, getMetaData, getNickname, getOriginalProfileUrl, getPlainProfileImageUrl, getPreferredLanguages, getProfileUrl, getUserId, hashCode, isActive, updateMetaData
public boolean isBlockedByMe()
true
if this sender is blocked by me.public Member.Role getRole()
Member.Role
.
If the sender's role status changes after the field value allocation, the value returned by this method may not reflect the latest role.
Member.Role
.public static Sender buildFromSerializedData(byte[] data)
Sender
instance from serialized data generated by serialize()
.data
- Serialized Sender
data.Sender
instance.public byte[] serialize()
Sender
instance. This byte array can be stored in the database
in your application. The instance can be restored by buildFromSerializedData(byte[])
. Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.