2022-10-16 00:51:10 +00:00
|
|
|
import 'package:selfprivacy/logic/models/hive/server_details.dart';
|
|
|
|
import 'package:selfprivacy/logic/models/hive/server_domain.dart';
|
|
|
|
|
2023-01-30 15:44:52 +00:00
|
|
|
class ServerProviderSettings {
|
|
|
|
ServerProviderSettings({
|
2022-10-16 00:51:10 +00:00
|
|
|
required this.provider,
|
2023-07-16 13:05:37 +00:00
|
|
|
this.isAuthorized = false,
|
2022-10-16 00:51:10 +00:00
|
|
|
this.location,
|
|
|
|
});
|
|
|
|
|
2023-07-16 13:05:37 +00:00
|
|
|
final bool isAuthorized;
|
2023-01-30 15:44:52 +00:00
|
|
|
final ServerProviderType provider;
|
2022-10-16 00:51:10 +00:00
|
|
|
final String? location;
|
|
|
|
}
|
|
|
|
|
2023-05-03 02:42:18 +00:00
|
|
|
class DnsProviderSettings {
|
|
|
|
DnsProviderSettings({
|
2022-10-16 00:51:10 +00:00
|
|
|
required this.provider,
|
2023-07-16 13:05:37 +00:00
|
|
|
this.isAuthorized = false,
|
2022-10-16 00:51:10 +00:00
|
|
|
});
|
|
|
|
|
2023-07-16 13:05:37 +00:00
|
|
|
final bool isAuthorized;
|
2023-01-30 15:44:52 +00:00
|
|
|
final DnsProviderType provider;
|
2022-10-16 00:51:10 +00:00
|
|
|
}
|