selfprivacy.org.app/lib/logic/models/server_metadata.dart

30 lines
634 B
Dart
Raw Normal View History

2022-11-23 07:55:28 +00:00
import 'package:flutter/material.dart';
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-23 07:55:28 +00:00
final IconData icon;
}
class ServerMetadataEntity {
ServerMetadataEntity({
required this.trId,
required this.value,
this.type = MetadataType.other,
});
final MetadataType type;
final String trId;
final String value;
}