2022-08-24 05:35:49 +00:00
|
|
|
import 'package:selfprivacy/logic/models/disk_size.dart';
|
|
|
|
import 'package:selfprivacy/logic/models/hive/server_details.dart';
|
|
|
|
import 'package:selfprivacy/logic/models/json/server_disk_volume.dart';
|
|
|
|
|
2022-07-31 23:10:37 +00:00
|
|
|
class DiskVolume {
|
2022-08-24 05:35:49 +00:00
|
|
|
DiskSize sizeUsed = DiskSize();
|
|
|
|
DiskSize sizeTotal = DiskSize();
|
2022-07-31 23:10:37 +00:00
|
|
|
String name = '';
|
|
|
|
bool root = false;
|
2022-08-24 05:35:49 +00:00
|
|
|
bool isResizable = true;
|
|
|
|
ServerDiskVolume? serverDiskVolume;
|
|
|
|
ServerVolume? providerVolume;
|
2022-07-31 23:10:37 +00:00
|
|
|
|
|
|
|
/// from 0.0 to 1.0
|
|
|
|
double percentage = 0.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
class DiskStatus {
|
|
|
|
bool isDiskOkay = false;
|
|
|
|
List<DiskVolume> diskVolumes = [];
|
|
|
|
}
|