fetchSilentModeForAll method
Gets the offline push settings at the app level for the current login user.
Return The offline push settings settings.
Throws A description of the exception. See ChatError.
Implementation
Future<ChatSilentModeResult> fetchSilentModeForAll() async {
Map result = await PushChannel.invokeMethod(
ChatMethodKeys.fetchSilentModeForAll,
);
try {
ChatError.hasErrorFromResult(result);
return ChatSilentModeResult.fromJson(
result[ChatMethodKeys.fetchSilentModeForAll],
);
} on ChatError catch (e) {
throw e;
}
}