Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • QChatSystemNotification

Index

Properties

attach: { channelInfo?: ChannelInfo; event?: number; kickedAccids?: string[]; serverInfo?: ServerInfo; serverMember?: MemberInfo; type: "custom" | "serverMemberInvite" | "serverMemberInviteReject" | "serverMemberApply" | "serverMemberApplyReject" | "serverCreate" | "serverRemove" | "serverUpdate" | "serverMemberInviteDone" | "serverMemberInviteAccept" | "serverMemberApplyDone" | "serverMemberApplyAccept" | "serverMemberKick" | "serverMemberLeave" | "serverMemberUpdate" | "channelCreate" | "channelRemove" | "channelUpdate" | "channelUpdateWhiteBlackIdentify" | "channelUpdateWhiteBlackIdentifyUser" | "updateQuickComment" | "channelCategoryCreate" | "channelCategoryRemove" | "channelCategoryUpdate" | "channelCategoryUpdateWhiteBlackIdentify" | "channelCategoryUpdateWhiteBlackIdentifyUser" | "serverIdentifyAdd" | "serverIdentifyRemove" | "serverIdentifyUpdate" | "channelIdentifyUpdate" | "userIdentifyUpdate" | "channelVisibilityUpdate" | "serverEnterLeave" | "serverMemberJoinByInviteCode" | "channelVisibilityToVisitorUpdate" | "myMemberInfoUpdated" | "msgTyping" } & NIMEQChatSystemNotificationAttachMyMemberInfoUpdated

系统通知的附加信息

channelId: string

通知所属的频道的id

ext?: string

自定义系统通知可追加的扩展字段

fromAccount: string

系统通知的来源, account id

fromClientType?: "Android" | "iOS" | "PC" | "WindowsPhone" | "Web" | "Server" | "Mac"

发送方的设备类型

fromDeviceId?: string

发送端设备id

fromNick?: string

消息发送方的昵称

msgIdClient?: string

SDK 端测生成的消息id,自定义的系统通知里才存在。可以用于去重

msgIdServer: string

IM 服务端生成的系统通知 id,作为系统消息的唯一凭证。

注意,只有当这条系统通知存离线 (persistEnable = true),才会有此字段,否则都为 "0"

needBadge?: boolean

开关位-推送相关:是否需要消息计数

needPushNick?: boolean

开关位-推送相关:是否需要推送昵称

persistEnable?: boolean

开关位:是否可以存入离线通知。默认 false

注意:只有 toAccids 不为空,才能设置为存离线。

pushContent?: string

自定义推送文案

pushEnable?: boolean

开关位-推送相关:是否需要推送。默认 false

pushPayload?: StrAnyObj

第三方自定义的推送属性,限制 json

resendFlag?: boolean

是否为重发的

serverId: string

通知所属的服务器的id

status?: number

系统通知状态,0 为 默认。大于 10000 为用户自定义的状态

time: number

通知发送成功的时间戳(单位毫秒)

toAccids?: string[]

系统通知的目标账号 account id 列表 即收到这条消息的账号列表

系统通知目标。

注: 提供的是一个枚举,开发者真实接收的 toType 内容是一个数字.

type: "custom" | "serverMemberInvite" | "serverMemberInviteReject" | "serverMemberApply" | "serverMemberApplyReject" | "serverCreate" | "serverRemove" | "serverUpdate" | "serverMemberInviteDone" | "serverMemberInviteAccept" | "serverMemberApplyDone" | "serverMemberApplyAccept" | "serverMemberKick" | "serverMemberLeave" | "serverMemberUpdate" | "channelCreate" | "channelRemove" | "channelUpdate" | "channelUpdateWhiteBlackIdentify" | "channelUpdateWhiteBlackIdentifyUser" | "updateQuickComment" | "channelCategoryCreate" | "channelCategoryRemove" | "channelCategoryUpdate" | "channelCategoryUpdateWhiteBlackIdentify" | "channelCategoryUpdateWhiteBlackIdentifyUser" | "serverIdentifyAdd" | "serverIdentifyRemove" | "serverIdentifyUpdate" | "channelIdentifyUpdate" | "userIdentifyUpdate" | "channelVisibilityUpdate" | "serverEnterLeave" | "serverMemberJoinByInviteCode" | "channelVisibilityToVisitorUpdate" | "myMemberInfoUpdated" | "msgTyping"

系统通知类型

频道相关的有 ... 服务器相关的 .... 其他的如自定义的系统通知等类型。

updateTime: number

最后更新时间