getMessageReactions method

  1. @override
Future<V2TimValueCallback<List<V2TimMessageReactionResult>>> getMessageReactions({
  1. required List<String> msgIDList,
  2. required int maxUserCountPerReaction,
  3. List<String>? webMessageInstanceList,
})
override

Implementation

@override
Future<V2TimValueCallback<List<V2TimMessageReactionResult>>> getMessageReactions({
  required List<String> msgIDList,
  required int maxUserCountPerReaction,
  List<String>? webMessageInstanceList,
}) async {
  Map<String, dynamic> param = {
    "msgIDList": msgIDList,
    "maxUserCountPerReaction": maxUserCountPerReaction,
  };
  var resp = V2TimValueCallback<List<V2TimMessageReactionResult>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "getMessageReactions",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("getMessageReactions", param, resp.toLogString());
  return resp;
}