addTopicPermissionToPermissionGroup method
Future<V2TimValueCallback<List<V2TimTopicOperationResult> > >
addTopicPermissionToPermissionGroup({
- required String groupID,
- required String permissionGroupID,
- required Map<
String, int> topicPermissionMap,
override
Implementation
@override
Future<V2TimValueCallback<List<V2TimTopicOperationResult>>> addTopicPermissionToPermissionGroup({
required String groupID,
required String permissionGroupID,
required Map<String, int> topicPermissionMap,
}) async {
Map<String, dynamic> param = {
"groupID": groupID,
"permissionGroupID": permissionGroupID,
"topicPermissionMap": topicPermissionMap,
};
var resp = V2TimValueCallback<List<V2TimTopicOperationResult>>.fromJson(
formatJson(
await _channel.invokeMethod(
"addTopicPermissionToPermissionGroup",
buildCommunityManagerParam(
param,
),
),
),
);
log("addTopicPermissionToPermissionGroup", param, resp.toLogString());
return resp;
}