setC2CReceiveMessageOpt method

  1. @override
Future<V2TimCallback> setC2CReceiveMessageOpt({
  1. required List<String> userIDList,
  2. required int opt,
})
override

Implementation

@override
Future<V2TimCallback> setC2CReceiveMessageOpt({
  required List<String> userIDList,
  required int opt,
}) async {
  Map<String, dynamic> param = {
    "userIDList": userIDList,
    "opt": opt,
  };
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setC2CReceiveMessageOpt",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("setC2CReceiveMessageOpt", param, resp.toLogString());
  return resp;
}