mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-11 03:03:18 +00:00
21 lines
446 B
Dart
21 lines
446 B
Dart
import 'package:hive/hive.dart';
|
|
import 'package:selfprivacy/logic/models/hive/server_details.dart';
|
|
import 'package:selfprivacy/logic/models/hive/server_domain.dart';
|
|
|
|
part 'server.g.dart';
|
|
|
|
// TODO: Make a constant type.
|
|
@HiveType(typeId: 9)
|
|
class Server {
|
|
Server({
|
|
required this.hostingDetails,
|
|
required this.domain,
|
|
});
|
|
|
|
@HiveField(0)
|
|
final ServerHostingDetails hostingDetails;
|
|
|
|
@HiveField(1)
|
|
final ServerDomain domain;
|
|
}
|