13 lines
344 B
Dart
13 lines
344 B
Dart
|
import 'package:imagini/api/api_provider.dart';
|
||
|
import 'package:imagini/graphql/imagini_graphql.dart';
|
||
|
|
||
|
class ImaginiAPIRepository {
|
||
|
APIProvider _apiProvider;
|
||
|
|
||
|
ImaginiAPIRepository(this._apiProvider);
|
||
|
|
||
|
Stream<Login$Query$AuthResponse> login(String user, password) {
|
||
|
return Stream.fromFuture(_apiProvider.login(user, password));
|
||
|
}
|
||
|
}
|