This repository has been archived on 2023-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
imagini/web_native/lib/api/imagini_api_repository.dart

13 lines
344 B
Dart
Raw Normal View History

import 'package:imagini/api/api_provider.dart';
2021-02-10 22:42:57 +00:00
import 'package:imagini/graphql/imagini_graphql.dart';
class ImaginiAPIRepository {
APIProvider _apiProvider;
ImaginiAPIRepository(this._apiProvider);
2021-02-10 22:42:57 +00:00
Stream<Login$Query$AuthResponse> login(String user, password) {
return Stream.fromFuture(_apiProvider.login(user, password));
}
}