Interface SystemMessageInterface
Methods
deleteAllLocalSysMsgs
- deleteAllLocalSysMsgs(options: { done?: any }): void
deleteLocalSysMsg
- deleteLocalSysMsg(options: { idServer: string | string[]; done?: any }): void
Parameters
options: { idServer: string | string[]; done?: any }
idServer: string | string[]
done?:function
Returns void
getLocalSysMsgs
- getLocalSysMsgs(options: { lastIdServer?: string; limit?: number; read?: boolean; reverse?: boolean; type?: "custom" | "addFriend" | "applyFriend" | "passFriendApply" | "rejectFriendApply" | "deleteFriend" | "teamInvite" | "rejectTeamInvite" | "applyTeam" | "rejectTeamApply" | "applySuperTeam" | "rejectSuperTeamApply" | "superTeamInvite" | "rejectSuperTeamInvite" | "deleteMsg"; done?: any }): void
Parameters
options: { lastIdServer?: string; limit?: number; read?: boolean; reverse?: boolean; type?: "custom" | "addFriend" | "applyFriend" | "passFriendApply" | "rejectFriendApply" | "deleteFriend" | "teamInvite" | "rejectTeamInvite" | "applyTeam" | "rejectTeamApply" | "applySuperTeam" | "rejectSuperTeamApply" | "superTeamInvite" | "rejectSuperTeamInvite" | "deleteMsg"; done?: any }
Optional lastIdServer?: string
Optional limit?: number
Optional read?: boolean
Optional reverse?: boolean
Optional type?: "custom" | "addFriend" | "applyFriend" | "passFriendApply" | "rejectFriendApply" | "deleteFriend" | "teamInvite" | "rejectTeamInvite" | "applyTeam" | "rejectTeamApply" | "applySuperTeam" | "rejectSuperTeamApply" | "superTeamInvite" | "rejectSuperTeamInvite" | "deleteMsg"
done?:function
Returns void
sendCustomSysMsg
- sendCustomSysMsg(options: { apnsText?: string; cc?: boolean; content: string; env?: string; isPushable?: boolean; needPushNick?: boolean; pushPayload?: string; scene: "p2p" | "team" | "superTeam"; sendToOnlineUsersOnly?: boolean; to: string; done?: any }): void
Parameters
options: { apnsText?: string; cc?: boolean; content: string; env?: string; isPushable?: boolean; needPushNick?: boolean; pushPayload?: string; scene: "p2p" | "team" | "superTeam"; sendToOnlineUsersOnly?: boolean; to: string; done?: any }
Optional apnsText?: string
Optional cc?: boolean
content: string
Optional env?: string
Optional isPushable?: boolean
Optional needPushNick?: boolean
Optional pushPayload?: string
scene: "p2p" | "team" | "superTeam"
Optional sendToOnlineUsersOnly?: boolean
to: string
done?:function
Returns void
updateLocalSysMsg
- updateLocalSysMsg(options: { idServer: string; localCustom?: string; state?: string; done?: any }): void
Parameters
options: { idServer: string; localCustom?: string; state?: string; done?: any }
idServer: string
Optional localCustom?: string
Optional state?: string
done?:function
Returns void
删除所有本地数据库里的系统通知