mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-08 09:53:12 +00:00
25 lines
418 B
Dart
25 lines
418 B
Dart
import 'package:flutter/widgets.dart';
|
|
import 'package:hive/hive.dart';
|
|
|
|
part 'server_details.g.dart';
|
|
|
|
@HiveType(typeId: 2)
|
|
class HetznerServerDetails {
|
|
HetznerServerDetails({
|
|
@required this.ip4,
|
|
@required this.id,
|
|
@required this.startTime,
|
|
});
|
|
|
|
@HiveField(0)
|
|
final String ip4;
|
|
|
|
@HiveField(1)
|
|
final int id;
|
|
|
|
@HiveField(2)
|
|
final DateTime startTime;
|
|
|
|
String toString() => id.toString();
|
|
}
|