remindType method
~english The conversation no disturb type. ChatPushRemindType
Throws A description of the exception. See EMError. ~end
~chinese 会话免打扰类型。ChatPushRemindType。
Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 EMError。 ~end
Implementation
Future<ChatPushRemindType> remindType() async {
try {
Map req = _toJson();
Map result = await Client.instance.conversationManager
.callNativeMethod(ChatMethodKeys.conversationRemindType, req);
EMError.hasErrorFromResult(result);
return ChatPushRemindType
.values[result[ChatMethodKeys.conversationRemindType]];
} catch (e) {
rethrow;
}
}