searchCloudMessages method

  1. @override
Future<V2TimValueCallback<V2TimMessageSearchResult>> searchCloudMessages({
  1. required V2TimMessageSearchParam searchParam,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMessageSearchResult>> searchCloudMessages({
  required V2TimMessageSearchParam searchParam,
}) async {
  Map<String, dynamic> param = {
    "searchParam": searchParam.toJson(),
  };
  var resp = V2TimValueCallback<V2TimMessageSearchResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "searchCloudMessages",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("searchCloudMessages", param, resp.toLogString());
  return resp;
}