mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-14 04:33:16 +00:00
44 lines
979 B
Dart
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;
|
|
}
|