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

25 lines
418 B
Dart
Raw Normal View History

2021-01-06 17:35:57 +00:00
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,
2021-01-06 19:25:53 +00:00
@required this.startTime,
2021-01-06 17:35:57 +00:00
});
@HiveField(0)
final String ip4;
@HiveField(1)
final int id;
@HiveField(2)
2021-01-06 19:25:53 +00:00
final DateTime startTime;
2021-01-06 17:35:57 +00:00
String toString() => id.toString();
}