unsubscribeUserInfo static method
Future<V2TimCallback>
unsubscribeUserInfo(
{ - required List<String> userIDList,
})
Implementation
static Future<V2TimCallback> unsubscribeUserInfo({
required List<String> userIDList,
}) async {
String userData = Tools.generateUserData();
Pointer<Uint8> user_data = Tools.string2PointerInt8(userData);
Pointer<Uint8> userIDListPtr = Tools.string2PointerInt8(json.encode(userIDList));
int res1 = desktopSDK.D_TIMUnsubscribeUserInfo(userIDListPtr, user_data);
if (res1 != TIMResult.TIM_SUCC) {
return V2TimCallback.fromJson({
"code": res1,
"desc": "",
});
} else {
Map<String, dynamic> data = await getAsyncData(apiKey: userData);
print(data);
return V2TimCallback.fromJson({
"code": data["code"],
"desc": data["desc"],
"data": "",
});
}
}