selfprivacy.org.app/lib/logic/models/hive/server_domain.dart
NaiJi 18d3039dc4 chore: Create infrastructure for Digital Ocean DNS provider
Also rename hardcoded cloudflare names from backend
2022-12-17 14:26:19 +04:00

35 lines
578 B
Dart

import 'package:hive/hive.dart';
part 'server_domain.g.dart';
@HiveType(typeId: 3)
class ServerDomain {
ServerDomain({
required this.domainName,
required this.zoneId,
required this.provider,
});
@HiveField(0)
final String domainName;
@HiveField(1)
final String zoneId;
@HiveField(2, defaultValue: DnsProvider.cloudflare)
final DnsProvider provider;
@override
String toString() => '$domainName: $zoneId';
}
@HiveType(typeId: 100)
enum DnsProvider {
@HiveField(0)
unknown,
@HiveField(1)
cloudflare,
@HiveField(2)
digitalOcean,
}