mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-06 12:06:57 +00:00
31 lines
1.2 KiB
Dart
31 lines
1.2 KiB
Dart
import 'package:selfprivacy/logic/api_maps/rest_maps/server_providers/digital_ocean/digital_ocean.dart';
|
|
import 'package:selfprivacy/logic/api_maps/rest_maps/server_providers/server_provider.dart';
|
|
import 'package:selfprivacy/logic/api_maps/rest_maps/server_providers/server_provider_api_settings.dart';
|
|
import 'package:selfprivacy/logic/api_maps/rest_maps/server_providers/server_provider_factory.dart';
|
|
import 'package:selfprivacy/logic/api_maps/rest_maps/server_providers/volume_provider.dart';
|
|
|
|
class DigitalOceanApiFactory extends ServerProviderApiFactory
|
|
with VolumeProviderApiFactory {
|
|
@override
|
|
ServerProviderApi getServerProvider({
|
|
final ServerProviderApiSettings settings =
|
|
const ServerProviderApiSettings(),
|
|
}) =>
|
|
DigitalOceanApi(
|
|
region: settings.region,
|
|
hasLogger: settings.hasLogger,
|
|
isWithToken: settings.isWithToken,
|
|
);
|
|
|
|
@override
|
|
VolumeProviderApi getVolumeProvider({
|
|
final ServerProviderApiSettings settings =
|
|
const ServerProviderApiSettings(),
|
|
}) =>
|
|
DigitalOceanApi(
|
|
region: settings.region,
|
|
hasLogger: settings.hasLogger,
|
|
isWithToken: settings.isWithToken,
|
|
);
|
|
}
|