getConversationGroupList static method
Implementation
static Future<V2TimValueCallback<List<String>>> getConversationGroupList() async {
String userData = Tools.generateUserData();
Pointer<Uint8> user_data = Tools.string2PointerInt8(userData);
int res = desktopSDK.D_TIMConvGetConversationGroupList(user_data);
if (res != TIMResult.TIM_SUCC) {
return V2TimValueCallback<List<String>>.fromJson({
"code": res,
"desc": "",
});
} else {
Map<String, dynamic> data = await getAsyncData(apiKey: userData);
List<Map<String, dynamic>> dataList = List<Map<String, dynamic>>.from(json.decode(data["json_param"].isEmpty ? json.encode([]) : data["json_param"]));
return V2TimValueCallback<List<String>>.fromJson({
"code": res,
"desc": "",
"data": dataList,
});
}
}