mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-08 18:03:12 +00:00
17 lines
719 B
Dart
17 lines
719 B
Dart
import 'package:selfprivacy/logic/api_maps/generic_result.dart';
|
|
import 'package:selfprivacy/logic/models/server_provider_location.dart';
|
|
import 'package:selfprivacy/logic/models/server_type.dart';
|
|
|
|
export 'package:selfprivacy/logic/api_maps/generic_result.dart';
|
|
|
|
abstract class ServerProvider {
|
|
Future<GenericResult<bool>> trySetServerLocation(final String location);
|
|
Future<GenericResult<bool>> tryInitApiByToken(final String token);
|
|
Future<GenericResult<List<ServerProviderLocation>>> getAvailableLocations();
|
|
Future<GenericResult<List<ServerType>>> getServerTypes({
|
|
required final ServerProviderLocation location,
|
|
});
|
|
|
|
GenericResult<bool> get success => GenericResult(success: true, data: true);
|
|
}
|