selfprivacy.org.app/lib/logic/models/server_metadata.dart
NaiJi bad6926567 chore: Continue refactoring
- 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
2023-02-13 18:13:32 +04:00

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;
}