remindType method

Future<ChatPushRemindType> remindType()

会话免打扰类型。ChatPushRemindType

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

Implementation

Future<ChatPushRemindType> remindType() async {
  Map req = this._toJson();
  Map result = await _emConversationChannel.invokeMethod(
      ChatMethodKeys.conversationRemindType, req);
  try {
    EMError.hasErrorFromResult(result);
    return ChatPushRemindType
        .values[result[ChatMethodKeys.conversationRemindType]];
  } on EMError catch (e) {
    throw e;
  }
}