mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-20 18:37:50 +00:00
45 lines
1.1 KiB
Dart
45 lines
1.1 KiB
Dart
|
enum DnsRecordsCategory {
|
||
|
services,
|
||
|
email,
|
||
|
other,
|
||
|
}
|
||
|
|
||
|
class DesiredDnsRecord {
|
||
|
const DesiredDnsRecord({
|
||
|
required this.name,
|
||
|
required this.content,
|
||
|
this.type = 'A',
|
||
|
this.description = '',
|
||
|
this.category = DnsRecordsCategory.services,
|
||
|
this.isSatisfied = false,
|
||
|
this.displayName,
|
||
|
});
|
||
|
|
||
|
final String name;
|
||
|
final String type;
|
||
|
final String content;
|
||
|
final String description;
|
||
|
final String? displayName;
|
||
|
final DnsRecordsCategory category;
|
||
|
final bool isSatisfied;
|
||
|
|
||
|
DesiredDnsRecord copyWith({
|
||
|
final String? name,
|
||
|
final String? type,
|
||
|
final String? content,
|
||
|
final String? description,
|
||
|
final String? displayName,
|
||
|
final DnsRecordsCategory? category,
|
||
|
final bool? isSatisfied,
|
||
|
}) =>
|
||
|
DesiredDnsRecord(
|
||
|
name: name ?? this.name,
|
||
|
type: type ?? this.type,
|
||
|
content: content ?? this.content,
|
||
|
description: description ?? this.description,
|
||
|
category: category ?? this.category,
|
||
|
isSatisfied: isSatisfied ?? this.isSatisfied,
|
||
|
displayName: displayName ?? this.displayName,
|
||
|
);
|
||
|
}
|