mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-08-25 14:31:51 +00:00
- Replace raw DKIM String object with a general DnsRecord structure - Implement network utils for common operations with networking concepts and structures - Implement initializing page pop up to re-try server deployment in case of a random networking error
34 lines
712 B
Dart
34 lines
712 B
Dart
part of 'dns_records_cubit.dart';
|
|
|
|
enum DnsRecordsStatus {
|
|
uninitialized,
|
|
refreshing,
|
|
good,
|
|
error,
|
|
}
|
|
|
|
class DnsRecordsState extends ServerInstallationDependendState {
|
|
const DnsRecordsState({
|
|
this.dnsState = DnsRecordsStatus.uninitialized,
|
|
this.dnsRecords = const [],
|
|
});
|
|
|
|
final DnsRecordsStatus dnsState;
|
|
final List<DesiredDnsRecord> dnsRecords;
|
|
|
|
@override
|
|
List<Object> get props => [
|
|
dnsState,
|
|
dnsRecords,
|
|
];
|
|
|
|
DnsRecordsState copyWith({
|
|
final DnsRecordsStatus? dnsState,
|
|
final List<DesiredDnsRecord>? dnsRecords,
|
|
}) =>
|
|
DnsRecordsState(
|
|
dnsState: dnsState ?? this.dnsState,
|
|
dnsRecords: dnsRecords ?? this.dnsRecords,
|
|
);
|
|
}
|