deleteGroupAttributes static method
Implementation
static Future<V2TimCallback> deleteGroupAttributes({
required String groupID,
required List<String> keys,
}) async {
String userData = Tools.generateUserData();
Pointer<Uint8> user_data = Tools.string2PointerInt8(userData);
Pointer<Uint8> json_keys = Tools.string2PointerInt8(json.encode(keys));
Pointer<Uint8> group_id = Tools.string2PointerInt8(groupID);
int res = desktopSDK.D_TIMGroupDeleteGroupAttributes(group_id, json_keys, user_data);
if (res != TIMResult.TIM_SUCC) {
return V2TimCallback.fromJson({
"code": res,
"desc": "",
});
} else {
Map<String, dynamic> data = await getAsyncData(apiKey: userData);
return V2TimCallback.fromJson({
"code": data["code"],
"desc": data["desc"],
});
}
}