setAllReceiveMessageOptWithTimestamp method

  1. @override
Future<V2TimCallback> setAllReceiveMessageOptWithTimestamp({
  1. required int opt,
  2. required int startTimeStamp,
  3. required int duration,
})
override

Implementation

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