NIMSDK-AOS
9.19.0
basesdk
src
com
netease
nimlib
sdk
team
model
MuteMemberAttachment.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.team.model;
2
3
import
com
.
netease
.
nimlib
.util.JSONHelper;
4
5
import
org.json.JSONObject;
6
7
/**
8
* 群成员被禁言或者被取消禁言的通知消息实体。
9
* 具体通知类型为:
10
*
11
* @see com.netease.nimlib.sdk.msg.constant.NotificationType#MuteTeamMember
12
*/
13
public
class
MuteMemberAttachment
extends
MemberChangeAttachment
{
14
15
private
static
final
String TAG_MUTE =
"mute"
;
16
17
private
boolean
mute;
18
19
@Override
20
public
void
parse
(JSONObject json) {
21
super.parse(json);
22
23
if
(json.has(TAG_MUTE)) {
24
mute = JSONHelper.getInt(json, TAG_MUTE) == 1;
25
}
26
}
27
28
public
boolean
isMute
() {
29
return
mute;
30
}
31
}
com.netease.nimlib.sdk.team.model.MuteMemberAttachment.isMute
boolean isMute()
Definition:
MuteMemberAttachment.java:28
com.netease
com
com.netease.nimlib.sdk.team.model.MuteMemberAttachment.parse
void parse(JSONObject json)
Definition:
MuteMemberAttachment.java:20
com.netease.nimlib.sdk.team.model.MemberChangeAttachment
群成员变动的通知消息实体。包括群成员变化和管理权限变化。 所有类型的变动,操作者均为消息的fromAccount...
Definition:
MemberChangeAttachment.java:31
com.netease.nimlib.sdk.team.model.MuteMemberAttachment
群成员被禁言或者被取消禁言的通知消息实体。 具体通知类型为:
Definition:
MuteMemberAttachment.java:13
com.netease.nimlib
生成于 2024年 十月 16日 星期三 10:25:05 , 为 NIMSDK-AOS使用
1.8.13