This commit is contained in:
lollipopkit
2023-01-28 21:16:53 +08:00
parent be1a162632
commit a518dca0ca
19 changed files with 269 additions and 247 deletions

View File

@@ -1,4 +1,4 @@
import 'package:toolbox/data/model/server/cpu_2_status.dart';
import 'package:toolbox/data/model/server/cpu_status.dart';
import 'package:toolbox/data/model/server/disk_info.dart';
import 'package:toolbox/data/model/server/memory.dart';
import 'package:toolbox/data/model/server/net_speed.dart';
@@ -8,6 +8,16 @@ import 'package:toolbox/data/model/server/tcp_status.dart';
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
///
get initStatus => ServerStatus(
initCpuStatus,
initMemory,
'Loading...',
'',
[DiskInfo('/', '/', 0, '0', '0', '0')],
TcpStatus(0, 0, 0, 0),
initNetSpeed,
);
class ServerStatus {
/*
{
@@ -30,8 +40,8 @@ class ServerStatus {
}
*/
Cpu2Status cpu2Status;
Memory memory;
CpuStatus cpu;
Memory mem;
String sysVer;
String uptime;
List<DiskInfo> disk;
@@ -39,7 +49,7 @@ class ServerStatus {
NetSpeed netSpeed;
String? failedInfo;
ServerStatus(this.cpu2Status, this.memory, this.sysVer, this.uptime,
this.disk, this.tcp, this.netSpeed,
ServerStatus(this.cpu, this.mem, this.sysVer, this.uptime, this.disk,
this.tcp, this.netSpeed,
{this.failedInfo});
}