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

23 lines
357 B
Dart
Raw Normal View History

2021-01-06 17:35:57 +00:00
import 'package:hive/hive.dart';
part 'cloudflare_domain.g.dart';
@HiveType(typeId: 3)
class CloudFlareDomain {
2021-03-26 13:38:39 +00:00
CloudFlareDomain({
required this.domainName,
required this.zoneId,
});
2021-01-06 17:35:57 +00:00
@HiveField(0)
2021-03-26 13:38:39 +00:00
final String domainName;
2021-01-06 17:35:57 +00:00
@HiveField(1)
2021-03-26 13:38:39 +00:00
final String zoneId;
2021-01-06 17:35:57 +00:00
@override
String toString() {
2021-01-21 07:35:38 +00:00
return '$domainName: $zoneId';
2021-01-06 17:35:57 +00:00
}
}