remindType method

Future<ChatPushRemindType> remindType()

会话免打扰类型。ChatPushRemindType

Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 ChatError

Implementation

Future<ChatPushRemindType> remindType() async {
  try {
    Map req = _toJson();
    Map result = await platform_interface.Client.instance.conversationManager
        .callNativeMethod(ChatMethodKeys.conversationRemindType, req);
    ChatError.hasErrorFromResult(result);
    return ChatPushRemindType
        .values[result[ChatMethodKeys.conversationRemindType]];
  } catch (e) {
    rethrow;
  }
}