NIMSDK-AOS  9.16.0
Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.qchat.model.QChatSystemNotification接口 参考

系统通知 更多...

类 com.netease.nimlib.sdk.qchat.model.QChatSystemNotification 继承关系图:

Public 成员函数

long getServerId ()
 通知所属的serverId 更多...
 
long getChannelId ()
 通知所属的channelId 更多...
 
List< String > getToAccids ()
 通知接收者账号列表 更多...
 
String getFromAccount ()
 通知发送者的accid 更多...
 
QChatSystemMessageToType getToType ()
 通知发送对象类型 更多...
 
int getFromClientType ()
 通知发送者这的客户端类型 更多...
 
String getFromDeviceId ()
 发送方设备id 更多...
 
String getFromNick ()
 发送方昵称 更多...
 
long getTime ()
 消息发送时间 更多...
 
long getUpdateTime ()
 通知更新时间 更多...
 
QChatSystemNotificationType getType ()
 通知类型, 参考QChatSystemMsgType 更多...
 
int getRawType ()
 获取通知类型裸数据,int类型,可能是新增通知类型,但是SDK还未更新,枚举还未添加 更多...
 
String getMsgIdClient ()
 客户端生成的消息id, 会用于去重 更多...
 
long getMsgIdServer ()
 服务器生成的通知id,全局唯一 更多...
 
String getBody ()
 通知内容 更多...
 
String getAttach ()
 通知附件 更多...
 
QChatSystemNotificationAttachment getAttachment ()
 通知附件字符串解析后的结构 更多...
 
String getExtension ()
 扩展字段 更多...
 
int getStatus ()
 状态,参考QChatSystemMsgStatus,可以自定义 更多...
 
String getPushPayload ()
 第三方自定义的推送属性,限制使用json格式 更多...
 
String getPushContent ()
 自定义推送文案 更多...
 
boolean isPersistEnable ()
 是否存离线,只有toAccids不为空,才能设置为存离线 更多...
 
boolean isPushEnable ()
 是否需要推送,默认false 更多...
 
boolean isNeedBadge ()
 是否需要消息计数 更多...
 
boolean isNeedPushNick ()
 是否需要推送昵称 更多...
 
boolean isRouteEnable ()
 是否需要抄送,默认true 更多...
 
String getEnv ()
 获取环境变量 用于指向不同的抄送,第三方回调等配置 更多...
 
void setEnv (String env)
 设置环境变量 用于指向不同的抄送,第三方回调等配置 更多...
 
String getCallbackExtension ()
 获取第三方回调回来的自定义扩展字段 更多...
 

详细描述

系统通知

在文件 QChatSystemNotification.java12 行定义.

成员函数说明

◆ getAttach()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getAttach ( )

通知附件

◆ getAttachment()

QChatSystemNotificationAttachment com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getAttachment ( )

通知附件字符串解析后的结构

◆ getBody()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getBody ( )

通知内容

◆ getCallbackExtension()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getCallbackExtension ( )

获取第三方回调回来的自定义扩展字段

返回
第三方回调回来的自定义扩展字段

◆ getChannelId()

long com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getChannelId ( )

通知所属的channelId

◆ getEnv()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getEnv ( )

获取环境变量 用于指向不同的抄送,第三方回调等配置

返回
环境变量

◆ getExtension()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getExtension ( )

扩展字段

◆ getFromAccount()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getFromAccount ( )

通知发送者的accid

◆ getFromClientType()

int com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getFromClientType ( )

通知发送者这的客户端类型

◆ getFromDeviceId()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getFromDeviceId ( )

发送方设备id

◆ getFromNick()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getFromNick ( )

发送方昵称

◆ getMsgIdClient()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getMsgIdClient ( )

客户端生成的消息id, 会用于去重

◆ getMsgIdServer()

long com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getMsgIdServer ( )

服务器生成的通知id,全局唯一

◆ getPushContent()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getPushContent ( )

自定义推送文案

◆ getPushPayload()

String com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getPushPayload ( )

第三方自定义的推送属性,限制使用json格式

◆ getRawType()

int com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getRawType ( )

获取通知类型裸数据,int类型,可能是新增通知类型,但是SDK还未更新,枚举还未添加

返回

◆ getServerId()

long com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getServerId ( )

通知所属的serverId

◆ getStatus()

int com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getStatus ( )

状态,参考QChatSystemMsgStatus,可以自定义

返回

◆ getTime()

long com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getTime ( )

消息发送时间

◆ getToAccids()

List<String> com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getToAccids ( )

通知接收者账号列表

◆ getToType()

QChatSystemMessageToType com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getToType ( )

通知发送对象类型

◆ getType()

QChatSystemNotificationType com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getType ( )

通知类型, 参考QChatSystemMsgType

返回

◆ getUpdateTime()

long com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.getUpdateTime ( )

通知更新时间

◆ isNeedBadge()

boolean com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.isNeedBadge ( )

是否需要消息计数

◆ isNeedPushNick()

boolean com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.isNeedPushNick ( )

是否需要推送昵称

◆ isPersistEnable()

boolean com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.isPersistEnable ( )

是否存离线,只有toAccids不为空,才能设置为存离线

◆ isPushEnable()

boolean com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.isPushEnable ( )

是否需要推送,默认false

◆ isRouteEnable()

boolean com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.isRouteEnable ( )

是否需要抄送,默认true

返回

◆ setEnv()

void com.netease.nimlib.sdk.qchat.model.QChatSystemNotification.setEnv ( String  env)

设置环境变量 用于指向不同的抄送,第三方回调等配置

参数
env环境变量

该接口的文档由以下文件生成: