selfprivacy.org.app/lib/logic/providers/provider_settings.dart
2024-07-30 01:18:54 +03:00

44 lines
979 B
Dart

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,
this.token,
this.isAuthorized = false,
this.location,
});
final bool isAuthorized;
final ServerProviderType provider;
final String? token;
final String? location;
}
class DnsProviderSettings {
DnsProviderSettings({
required this.provider,
this.token,
this.isAuthorized = false,
});
final bool isAuthorized;
final DnsProviderType provider;
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;
}