集成接口 开始执行任务的领域层和数据层和UI层的开发啊(待测试)
集成功能 暂停 取消功能 恢复功能的接口的领域层和数据层的开发 下一步待集成到页面上 优化功能,优化了接口异常和未知异常对页面渲染的影响对用户的体验的不好情况。具体通过弹窗友好提示! 优化更新了tcp指示灯点击出现机器状态中添加选中设备的编号 方便用户使用的明白明了!。 优化更新关闭了tcp重连操作内链条中的获取用户设备和切换设备操作项。 调整了获取无人机状态信息的更新频率 为14秒一次
This commit is contained in:
40
lib/features/devices/data/models/device_task_model.dart
Normal file
40
lib/features/devices/data/models/device_task_model.dart
Normal file
@@ -0,0 +1,40 @@
|
||||
import '../../domain/entities/device_task_entity.dart';
|
||||
|
||||
class DeviceTaskModel extends DeviceTaskEntity {
|
||||
const DeviceTaskModel({
|
||||
required super.id,
|
||||
required super.deviceId,
|
||||
required super.taskStatus,
|
||||
required super.taskStatusTranslate,
|
||||
super.routeId,
|
||||
super.siteId,
|
||||
super.orgId,
|
||||
super.createTime,
|
||||
});
|
||||
|
||||
factory DeviceTaskModel.fromJson(Map<String, dynamic> json) {
|
||||
return DeviceTaskModel(
|
||||
id: json['id'] as int,
|
||||
deviceId: json['deviceId'] as String? ?? '',
|
||||
taskStatus: json['taskStaus'] as String? ?? '',
|
||||
taskStatusTranslate: json['taskStausTranslate'] as String? ?? '',
|
||||
routeId: json['routeId'] as int?,
|
||||
siteId: json['siteId'] as int?,
|
||||
orgId: json['orgId'] as int?,
|
||||
createTime: json['createTime'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
DeviceTaskEntity toEntity() {
|
||||
return DeviceTaskEntity(
|
||||
id: id,
|
||||
deviceId: deviceId,
|
||||
taskStatus: taskStatus,
|
||||
taskStatusTranslate: taskStatusTranslate,
|
||||
routeId: routeId,
|
||||
siteId: siteId,
|
||||
orgId: orgId,
|
||||
createTime: createTime,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user