2022-11-23 07:55:28 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2022-11-11 03:32:01 +00:00
|
|
|
enum MetadataType {
|
2022-11-23 07:55:28 +00:00
|
|
|
id(icon: Icons.numbers_outlined),
|
|
|
|
status(icon: Icons.mode_standby_outlined),
|
|
|
|
cpu(icon: Icons.memory_outlined),
|
|
|
|
ram(icon: Icons.memory_outlined),
|
|
|
|
cost(icon: Icons.payments_outlined),
|
|
|
|
location(icon: Icons.location_on_outlined),
|
|
|
|
|
|
|
|
other(icon: Icons.info_outlined);
|
|
|
|
|
|
|
|
const MetadataType({
|
|
|
|
required this.icon,
|
|
|
|
});
|
2022-11-11 03:32:01 +00:00
|
|
|
|
2022-11-23 07:55:28 +00:00
|
|
|
final IconData icon;
|
2022-11-11 03:32:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class ServerMetadataEntity {
|
|
|
|
ServerMetadataEntity({
|
2023-02-13 14:13:32 +00:00
|
|
|
required this.trId,
|
2022-11-11 03:32:01 +00:00
|
|
|
required this.value,
|
|
|
|
this.type = MetadataType.other,
|
|
|
|
});
|
|
|
|
final MetadataType type;
|
2023-02-13 14:13:32 +00:00
|
|
|
final String trId;
|
2022-11-11 03:32:01 +00:00
|
|
|
final String value;
|
|
|
|
}
|