getGroupCounters method

  1. @override
Future<V2TimValueCallback<Map<String, int>>> getGroupCounters({
  1. required String groupID,
  2. required List<String> keys,
})
override

Implementation

@override
Future<V2TimValueCallback<Map<String, int>>> getGroupCounters({
  required String groupID,
  required List<String> keys,
}) async {
  Map<String, dynamic> param = {
    "groupID": groupID,
    "keys": keys,
  };
  var resp = V2TimValueCallback<Map<String, int>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "getGroupCounters",
        buildGroupManagerParam(
          param,
        ),
      ),
    ),
  );
  log("getGroupCounters", param, resp.toLogString());
  return resp;
}