-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.models.UserEntity
public final class Member implements UserEntity
Represents a channel member.
-
-
Field Summary
Fields Modifier and Type Field Description private Useruserprivate Stringroleprivate 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 StringgetRole()The user's role. final UnitsetRole(@Deprecated(level = DeprecationLevel.WARNING, message = Use channelRole instead.) String role)The user's role. 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 BooleangetIsInvited()If the user is invited. final UnitsetIsInvited(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. -
-
Method Detail
-
setRole
final Unit setRole(@Deprecated(level = DeprecationLevel.WARNING, message = Use channelRole instead.) String role)
The user's role.
-
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.
-
getIsInvited
final Boolean getIsInvited()
If the user is invited.
-
setIsInvited
final Unit setIsInvited(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.
-
-
-
-