setAllReceiveMessageOpt static method
Future<V2TimCallback>
setAllReceiveMessageOpt(
{ - required int opt,
- required int startHour,
- required int startMinute,
- required int startSecond,
- required int duration,
})
Implementation
static Future<V2TimCallback> setAllReceiveMessageOpt({
required int opt,
required int startHour,
required int startMinute,
required int startSecond,
required int duration,
}) async {
String userData = Tools.generateUserData();
Pointer<Uint8> user_data = Tools.string2PointerInt8(userData);
int res1 = desktopSDK.D_TIMMsgSetAllReceiveMessageOpt(opt, startHour, startMinute, startSecond, duration, 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": "",
});
}
}