mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-08-25 22:41:51 +00:00
Removing Hetzner type hardcode from server page and replacing it with generic String-based metadata container
38 lines
921 B
Dart
38 lines
921 B
Dart
part of 'server_detailed_info_cubit.dart';
|
|
|
|
abstract class ServerDetailsState extends ServerInstallationDependendState {
|
|
const ServerDetailsState();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class ServerDetailsInitial extends ServerDetailsState {}
|
|
|
|
class ServerDetailsLoading extends ServerDetailsState {}
|
|
|
|
class ServerDetailsNotReady extends ServerDetailsState {}
|
|
|
|
class Loading extends ServerDetailsState {}
|
|
|
|
class Loaded extends ServerDetailsState {
|
|
const Loaded({
|
|
required this.metadata,
|
|
required this.serverTimezone,
|
|
required this.autoUpgradeSettings,
|
|
required this.checkTime,
|
|
});
|
|
final List<ServerMetadataEntity> metadata;
|
|
final TimeZoneSettings serverTimezone;
|
|
final AutoUpgradeSettings autoUpgradeSettings;
|
|
final DateTime checkTime;
|
|
|
|
@override
|
|
List<Object> get props => [
|
|
metadata,
|
|
serverTimezone,
|
|
autoUpgradeSettings,
|
|
checkTime,
|
|
];
|
|
}
|