subscribeUserInfo static method
Implementation
static Future<V2TimCallback> subscribeUserInfo({
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_TIMSubscribeUserInfo(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": "",
});
}
}