selfprivacy.org.app/lib/logic/providers/provider_settings.dart

42 lines
934 B
Dart
Raw Normal View History

2024-07-29 22:18:54 +00:00
import 'package:selfprivacy/logic/models/hive/backups_credential.dart';
import 'package:selfprivacy/logic/models/hive/server_details.dart';
import 'package:selfprivacy/logic/models/hive/server_domain.dart';
class ServerProviderSettings {
ServerProviderSettings({
required this.provider,
2024-07-29 22:18:54 +00:00
this.token,
this.isAuthorized = false,
});
final bool isAuthorized;
final ServerProviderType provider;
2024-07-29 22:18:54 +00:00
final String? token;
}
class DnsProviderSettings {
DnsProviderSettings({
required this.provider,
2024-07-29 22:18:54 +00:00
this.token,
this.isAuthorized = false,
});
final bool isAuthorized;
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;
}