cleanConversationUnreadMessageCount static method
Future<V2TimCallback>
cleanConversationUnreadMessageCount(
{ - required String conversationID,
- required int cleanTimestamp,
- required int cleanSequence,
})
Implementation
static Future<V2TimCallback> cleanConversationUnreadMessageCount({
required String conversationID,
required int cleanTimestamp,
required int cleanSequence,
}) async {
String userData = Tools.generateUserData();
Pointer<Uint8> user_data = Tools.string2PointerInt8(userData);
Pointer<Uint8> conversationIDPtr = Tools.string2PointerInt8(conversationID);
int res1 = desktopSDK.D_TIMConvCleanConversationUnreadMessageCount(conversationIDPtr, cleanTimestamp, cleanSequence, 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": "",
});
}
}