mirrored_repositories/Beacon/App/Beacon_app/lib/bloc
import 'dart:async';
import 'api.dart';
import 'package:Beacon_app/models/classes/user.dart';

class Repository {
  final apiProvider = ApiProvider();

  Future<User> registerUser(String username, String firstname, String lastname,
          String password, String email) =>
      apiProvider.registerUser(username, firstname, lastname, password, email);

  Future signinUser(String username, String password, String apiKey) =>
      apiProvider.signinUser(username, password, apiKey);

  Future getUserTasks(String apiKey) => apiProvider.getUserTasks(apiKey);

  Future<Null> addUserTask(String apiKey, String taskName, String deadline) async {
    apiProvider.addUserTask(apiKey, taskName, deadline);
  }
}
