-
- 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 Useruserprivate DatecreatedAtprivate DateupdatedAtprivate BooleanisInvitedprivate DateinviteAcceptedAtprivate DateinviteRejectedAtprivate BooleanshadowBannedprivate Booleanbannedprivate StringchannelRole
-
Method Summary
Modifier and Type Method Description UsergetUser()The user who is a member of the channel. UnitsetUser(User user)The user who is a member of the channel. final DategetCreatedAt()When the user became a member. final UnitsetCreatedAt(Date createdAt)When the user became a member. final DategetUpdatedAt()When the membership data was last updated. final UnitsetUpdatedAt(Date updatedAt)When the membership data was last updated. final BooleanisInvited()If the user is invited. final UnitsetInvited(Boolean isInvited)If the user is invited. final DategetInviteAcceptedAt()The date the invite was accepted. final UnitsetInviteAcceptedAt(Date inviteAcceptedAt)The date the invite was accepted. final DategetInviteRejectedAt()The date the invite was rejected. final UnitsetInviteRejectedAt(Date inviteRejectedAt)The date the invite was rejected. final BooleangetShadowBanned()If channel member is shadow banned. final UnitsetShadowBanned(Boolean shadowBanned)If channel member is shadow banned. final BooleangetBanned()If channel member is banned. final UnitsetBanned(Boolean banned)If channel member is banned. final StringgetChannelRole()The user's channel-level role. final UnitsetChannelRole(String channelRole)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.
-
setCreatedAt
final Unit setCreatedAt(Date createdAt)
When the user became a member.
-
getUpdatedAt
final Date getUpdatedAt()
When the membership data was last updated.
-
setUpdatedAt
final Unit setUpdatedAt(Date updatedAt)
When the membership data was last updated.
-
setInvited
final Unit setInvited(Boolean isInvited)
If the user is invited.
-
getInviteAcceptedAt
final Date getInviteAcceptedAt()
The date the invite was accepted.
-
setInviteAcceptedAt
final Unit setInviteAcceptedAt(Date inviteAcceptedAt)
The date the invite was accepted.
-
getInviteRejectedAt
final Date getInviteRejectedAt()
The date the invite was rejected.
-
setInviteRejectedAt
final Unit setInviteRejectedAt(Date inviteRejectedAt)
The date the invite was rejected.
-
getShadowBanned
final Boolean getShadowBanned()
If channel member is shadow banned.
-
setShadowBanned
final Unit setShadowBanned(Boolean shadowBanned)
If channel member is shadow banned.
-
getChannelRole
final String getChannelRole()
The user's channel-level role.
-
setChannelRole
final Unit setChannelRole(String channelRole)
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.
-
-
-
-