2024-07-29 22:18:54 +00:00
|
|
|
import 'package:selfprivacy/logic/models/hive/backups_credential.dart';
|
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,
|
2024-07-29 22:18:54 +00:00
|
|
|
this.token,
|
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;
|
2024-07-29 22:18:54 +00:00
|
|
|
final String? token;
|
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,
|
2024-07-29 22:18:54 +00:00
|
|
|
this.token,
|
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;
|
2024-07-29 22:18:54 +00:00
|
|
|
final String? token;
|
|
|
|
}
|
|
|
|
|
|
|
|
class BackupsProviderSettings {
|
|
|
|
BackupsProviderSettings({
|
|
|
|
required this.provider,
|
|
|
|
this.tokenId,
|
|
|
|
this.token,
|
|
|
|
this.isAuthorized = false,
|
|
|
|
});
|
|
|
|
|
|
|
|
final bool isAuthorized;
|
|
|
|
final BackupsProviderType provider;
|
|
|
|
final String? tokenId;
|
|
|
|
final String? token;
|
2022-10-16 00:51:10 +00:00
|
|
|
}
|