接听挂断电话
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:cashier_reserve/common/base/ui_model.dart';
|
||||
import 'package:cashier_reserve/common/channel/model/call_log_model.dart';
|
||||
import 'package:cashier_reserve/common/channel/channel_manager.dart';
|
||||
import 'package:cashier_reserve/common/channel/model/call_status_change_model.dart';
|
||||
import 'package:cashier_reserve/common/manager/app_manager.dart';
|
||||
import 'package:cashier_reserve/common/manager/event_manager.dart';
|
||||
import 'package:cashier_reserve/common/print/print.dart';
|
||||
@@ -138,6 +139,17 @@ class ReserveViewModel extends BaseUIModel {
|
||||
loadReserveSms();
|
||||
}
|
||||
|
||||
void testCallIncoming() {
|
||||
CallStatusChangeModel model = CallStatusChangeModel(
|
||||
state: "Incoming",
|
||||
number: "123456789",
|
||||
name: "测试",
|
||||
region: "陕西省 西安市",
|
||||
);
|
||||
|
||||
EventManager.postEvent(CallStatusChangeEvent(model: model));
|
||||
}
|
||||
|
||||
void loadCallLog() {
|
||||
ChannelManager.getCallLog("getCallLog");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user