Package io.getstream.chat.android.models
Class Member
-
- All Implemented Interfaces:
-
io.getstream.chat.android.models.UserEntity,io.getstream.chat.android.models.querysort.ComparableFieldProvider
public final class Member implements UserEntity, ComparableFieldProvider
Represents a channel member.
-
-
Field Summary
Fields Modifier and Type Field Description private final Useruserprivate final DatecreatedAtprivate final DateupdatedAtprivate final BooleanisInvitedprivate final DateinviteAcceptedAtprivate final DateinviteRejectedAtprivate final BooleanshadowBannedprivate final Booleanbannedprivate final StringchannelRole
-
Method Summary
Modifier and Type Method Description UsergetUser()The user who is a member of the channel. final DategetCreatedAt()When the user became a member. final DategetUpdatedAt()When the membership data was last updated. final BooleanisInvited()If the user is invited. final DategetInviteAcceptedAt()The date the invite was accepted. final DategetInviteRejectedAt()The date the invite was rejected. final BooleangetShadowBanned()If channel member is shadow banned. final BooleangetBanned()If channel member is banned. final StringgetChannelRole()The user's channel-level role. Comparable<?>getComparableField(String fieldName)Gets a comparable fields from a name. -
-
Method Detail
-
getCreatedAt
final Date getCreatedAt()
When the user became a member.
-
getUpdatedAt
final Date getUpdatedAt()
When the membership data was last updated.
-
getInviteAcceptedAt
final Date getInviteAcceptedAt()
The date the invite was accepted.
-
getInviteRejectedAt
final Date getInviteRejectedAt()
The date the invite was rejected.
-
getShadowBanned
final Boolean getShadowBanned()
If channel member is shadow banned.
-
getChannelRole
final String getChannelRole()
The user's channel-level role.
-
getComparableField
Comparable<?> getComparableField(String fieldName)
Gets a comparable fields from a name.
- Parameters:
fieldName- The name of the field.
-
-
-
-