92 lines
2.3 KiB
Dart
92 lines
2.3 KiB
Dart
import 'package:event_bus/event_bus.dart';
|
|
|
|
import '../main/lockDetail/lockSet/lockSet/lockSetInfo_entity.dart';
|
|
|
|
/// 创建EventBus
|
|
EventBus eventBus = EventBus();
|
|
|
|
/// 刷新锁列表数据
|
|
class RefreshLockListInfoDataEvent {
|
|
RefreshLockListInfoDataEvent();
|
|
}
|
|
|
|
/// 刷新考勤员工列表
|
|
class RefreshCheckInStaffListDataEvent {
|
|
RefreshCheckInStaffListDataEvent();
|
|
}
|
|
|
|
/// 传递当前锁信息
|
|
class PassCurrentLockInformationEvent {
|
|
LockSetInfoData lockSetInfoData;
|
|
PassCurrentLockInformationEvent(this.lockSetInfoData);
|
|
}
|
|
|
|
/// 卡、密码、指纹修改之后刷新列表
|
|
class OtherTypeRefreshListEvent {
|
|
OtherTypeRefreshListEvent();
|
|
}
|
|
|
|
/// 考情添加员工卡、指纹之后回调卡、指纹number
|
|
class ChickInAddStaffCardAndFingerprintBlockNumberEvent {
|
|
String number;
|
|
ChickInAddStaffCardAndFingerprintBlockNumberEvent(this.number);
|
|
}
|
|
|
|
/// 多语言 切换之后传值到上一级界面
|
|
class ChangeLanguageBlockLastLanguageEvent {
|
|
String languageTitle;
|
|
ChangeLanguageBlockLastLanguageEvent(this.languageTitle);
|
|
}
|
|
|
|
/// 锁分组添加或者删除锁之后刷新首页数据
|
|
class LockGroupEditGroupLockRefreshEvent {
|
|
LockGroupEditGroupLockRefreshEvent();
|
|
}
|
|
|
|
/// 锁设置里面开启关闭刷新锁详情
|
|
class LockSetChangeSetRefreshLockDetailWithType {
|
|
int type; // 0 考勤 1开锁时是否需联网 2常开模式 3修改了锁名字 4修改了电量
|
|
String setResult;
|
|
LockSetChangeSetRefreshLockDetailWithType(this.type, this.setResult);
|
|
}
|
|
|
|
/// 获取到视频流数据然后刷新界面
|
|
class GetTVDataRefreshUI {
|
|
List<int> tvList;
|
|
GetTVDataRefreshUI(this.tvList);
|
|
}
|
|
|
|
/// 获取到UDP接收状态然后刷新界面
|
|
class GetUDPStatusRefreshUI {
|
|
int udpStatus;
|
|
GetUDPStatusRefreshUI(this.udpStatus);
|
|
}
|
|
|
|
/// 获取到UDP接收状态然后刷新监控界面
|
|
class GetUDPStatusMonitorUI {
|
|
int udpStatus;
|
|
GetUDPStatusMonitorUI(this.udpStatus);
|
|
}
|
|
|
|
/// 获取到第一帧图片数据后跳转
|
|
class GetFirstFrameGoPush {
|
|
bool isFirstFrame;
|
|
GetFirstFrameGoPush(this.isFirstFrame);
|
|
}
|
|
|
|
/// 获取到实时点击的密码类型更新typeIndex
|
|
class GetPasswordTypeUpdateIndex {
|
|
int passwordType;
|
|
GetPasswordTypeUpdateIndex(this.passwordType);
|
|
}
|
|
|
|
/// 刷新密码列表
|
|
class GetPasswordListRefreshUI {
|
|
GetPasswordListRefreshUI();
|
|
}
|
|
|
|
/// 刷新消息列表
|
|
class ReadMessageRefreshUI {
|
|
ReadMessageRefreshUI();
|
|
}
|