mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-09 02:13:15 +00:00
NaiJi
bad6926567
- Rename APIGenericResult to GenericResult - Wrap all provider functions results with GenericResult - Move basic server commands and getters to business logic layer from API on Hetzner
30 lines
634 B
Dart
30 lines
634 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
enum MetadataType {
|
|
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,
|
|
});
|
|
|
|
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;
|
|
}
|