Clear the setting of offline push notification type for the session.
connection.clearRemindTypeForConversation({conversationId: '123', type: 'singleChat'})
Conversation id.
Conversation type.
Gets the push translation language set by the user.
connection.getPushPerformLanguage()
Get the DND Settings of the current user.
connection.getSilentModeForAll()
Gets the DND setting of the session.
connection.getSilentModeForConversation({conversationId: 'conversationId', type: 'singleChat'})
Conversation id.
Conversation type.
Obtain the DND Settings of specified sessions in batches.
connection.getSilentModeForConversations({conversationList:[{id: 'userId', type: 'singleChat'}, {id: 'groupId', type: 'groupChat'}]})
Conversation list.
Get all conversations in silent mode.
The cursor that specifies where to start to get data. If there will be data on the next page, this method will return the value of this field to indicate the position to start to get data of the next page. If it is null, the data of the first page will be fetched.
The number of data entries per page. The default value is 10.
connection.getAllSilentModeConversations({pageSize: 10})
Set user push translation language.
connection.setPushPerformLanguage({language: 'EU'})
translation language
Set the DND Settings for the current login user.
connection.setSilentModeForAll({options: {paramType: 0, remindType: 'ALL'}})
Options object include paramType,remindType,duration,startTime,endTime.
Set the DND of the session.
connection.setSilentModeForConversation({conversationId: '100', type: 'singleChat', params: {paramType: 0, remindType: 'ALL'}})
The Conversation id. For one-to-one chat, conversation ID is to chat user's name. For group chat, conversation ID is group ID, different with group name. For chat room, conversation ID is chat room ID, different with chat room name. For help desk, it is same with one-to-one chat, conversation ID is also chat user's name.
Options object include paramType,remindType,duration,startTime,endTime.
Conversation type.
Generated using TypeDoc
SilentMode contains APIs for silent mode operations.