public class ChatRoomMember
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
Modifier | Constructor and Description |
---|---|
|
ChatRoomMember() |
protected |
ChatRoomMember(Parcel in)
********************************** Serialization **********************************
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.lang.String |
getAccount()
Get a member account
|
java.lang.String |
getAvatar()
get the avatar
You can get the avatar from NimUserInfo or submitted by users when joining a chat room
|
long |
getEnterTime()
Get the time joining a chat room
The field is empty for offline members
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtension()
Get the extension field
The extension field can contain 4000 characters and is submitted by users when joining a chat room
|
int |
getMemberLevel()
Get the member level
If the value is greater than or equal to 0, developers can define custom member levels.
|
MemberType |
getMemberType()
Get the member types
Member types: guest or non guest
Non guests include restricted members, members, owner, and administrators.
|
java.lang.String |
getNick()
Get the nickname
Get the nickname from NimUserInfo or submitted by users when joining a chat room
|
java.lang.String |
getNotifyTargetTags()
Query the tags of notification recipients
|
java.lang.String |
getRoomId()
Get the chat room ID
|
java.lang.String |
getTags()
Get user tags
|
long |
getTempMuteDuration()
Get the duration for being temporarily muted in seconds
|
long |
getUpdateTime()
Get the record update time for members, used for querying the member list
|
boolean |
isInBlackList()
Check if a member is included in a blacklist
|
boolean |
isMuted()
Check if a member is muted
|
boolean |
isOnline()
Check if a member is online
Only special members may be offline, and guests or anonymous users must be online.
|
boolean |
isTempMuted()
Check if a member is temporarily muted
|
boolean |
isValid()
Check if a setting is valid
|
void |
setAccount(java.lang.String account)
Set a user account
|
void |
setAvatar(java.lang.String avatar)
Set the avatar of a member
|
void |
setEnterTime(long enterTime)
Set the time joining a chat room
|
void |
setExtension(java.util.Map<java.lang.String,java.lang.Object> extension)
Set the extension field
|
void |
setInBlackList(boolean inBlackList)
Add a member to a blacklist
|
void |
setMemberLevel(int memberLevel)
Set the member level
|
void |
setMemberType(MemberType type)
Set a member type
|
void |
setMuted(boolean muted)
Mute a member
|
void |
setNick(java.lang.String nick)
Set the nickname of a member
|
void |
setNotifyTargetTags(java.lang.String notifyTargetTags)
Set tags for notification recipients
|
void |
setOnline(boolean online)
Set the online status
|
void |
setRoomId(java.lang.String roomId)
Set a chat room ID
|
void |
setTags(java.lang.String tags)
Set user tags
|
void |
setTempMuted(boolean tempMuted)
Temporarily mute a member
|
void |
setTempMuteDuration(long tempMuteDuration)
Set the duration for temp mute
To mute a member temporarily, see
ChatRoomService.markChatRoomTempMute(boolean, long, MemberOption) |
void |
setUpdateTime(long updateTime)
Set the update time of members
|
void |
setValid(boolean valid)
Set a valid setting
|
void |
writeToParcel(Parcel dest,
int flags) |
public ChatRoomMember()
protected ChatRoomMember(Parcel in)
public java.lang.String getRoomId()
public java.lang.String getAccount()
public MemberType getMemberType()
public int getMemberLevel()
public java.lang.String getNick()
public java.lang.String getAvatar()
public java.util.Map<java.lang.String,java.lang.Object> getExtension()
public long getEnterTime()
public boolean isOnline()
public boolean isInBlackList()
public boolean isMuted()
public boolean isValid()
public void setRoomId(java.lang.String roomId)
roomId
- The ID of a chat roompublic void setAccount(java.lang.String account)
account
- User accountpublic void setMemberType(MemberType type)
type
- member typepublic void setMemberLevel(int memberLevel)
memberLevel
- member levelpublic void setNick(java.lang.String nick)
nick
- nicknamepublic void setAvatar(java.lang.String avatar)
avatar
- avatarpublic void setExtension(java.util.Map<java.lang.String,java.lang.Object> extension)
extension
- extension fieldpublic void setOnline(boolean online)
online
- online statuspublic void setEnterTime(long enterTime)
enterTime
- time when a member join a chat roompublic void setInBlackList(boolean inBlackList)
inBlackList
- Add a member to a blacklistpublic void setMuted(boolean muted)
muted
- Mute or unmute a memberpublic void setValid(boolean valid)
valid
- valid settingpublic long getUpdateTime()
public void setUpdateTime(long updateTime)
updateTime
- update timepublic boolean isTempMuted()
public void setTempMuted(boolean tempMuted)
tempMuted
- mute or unmute a member temporarilypublic long getTempMuteDuration()
public void setTempMuteDuration(long tempMuteDuration)
ChatRoomService.markChatRoomTempMute(boolean, long, MemberOption)
tempMuteDuration
- Duration for temp mute in secondspublic java.lang.String getTags()
public void setTags(java.lang.String tags)
public java.lang.String getNotifyTargetTags()
public void setNotifyTargetTags(java.lang.String notifyTargetTags)
public int describeContents()
public void writeToParcel(Parcel dest, int flags)