SimpleCloudNotifier/flutter/lib/state/token_source.dart

22 lines
340 B
Dart
Raw Normal View History

2024-06-02 17:09:57 +02:00
abstract class TokenSource {
String getToken();
String getUserID();
}
class DirectTokenSource implements TokenSource {
final String _userID;
final String _token;
DirectTokenSource(this._userID, this._token);
@override
String getUserID() {
return _userID;
}
@override
String getToken() {
return _token;
}
}