getTopicPermissionInPermissionGroup method

  1. @override
Future<V2TimValueCallback<List<V2TimTopicPermissionResult>>> getTopicPermissionInPermissionGroup({
  1. required String groupID,
  2. required String permissionGroupID,
  3. required List<String> topicIDList,
})
override

Implementation

@override
Future<V2TimValueCallback<List<V2TimTopicPermissionResult>>> getTopicPermissionInPermissionGroup({
  required String groupID,
  required String permissionGroupID,
  required List<String> topicIDList,
}) async {
  Map<String, dynamic> param = {
    "groupID": groupID,
    "permissionGroupID": permissionGroupID,
    "topicIDList": topicIDList,
  };
  var resp = V2TimValueCallback<List<V2TimTopicPermissionResult>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "getTopicPermissionInPermissionGroup",
        buildCommunityManagerParam(
          param,
        ),
      ),
    ),
  );
  log("getTopicPermissionInPermissionGroup", param, resp.toLogString());
  return resp;
}