mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-08-31 01:06:57 +00:00
22 lines
686 B
Dart
22 lines
686 B
Dart
import 'package:selfprivacy/logic/api_maps/rest_maps/api_map.dart';
|
|
export 'package:selfprivacy/logic/api_maps/generic_result.dart';
|
|
|
|
class ProviderApiTokenValidation {
|
|
ProviderApiTokenValidation({
|
|
required this.length,
|
|
required this.regexp,
|
|
});
|
|
final int length;
|
|
final RegExp regexp;
|
|
}
|
|
|
|
abstract class ServerProviderApi extends ApiMap {
|
|
/// Provider name key which lets infect understand what kind of installation
|
|
/// it requires, for example 'digitaloceal' for Digital Ocean
|
|
String get infectProviderName;
|
|
|
|
/// Actual provider name to render on information page for user,
|
|
/// for example 'Digital Ocean' for Digital Ocean
|
|
String get displayProviderName;
|
|
}
|