Skip to content

Commit

Permalink
fix(#154): refactor database
Browse files Browse the repository at this point in the history
  • Loading branch information
JordyHers committed Oct 25, 2023
1 parent 2f5301a commit 8285445
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/services/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,14 @@ import 'package:times_up_flutter/widgets/show_logger.dart';
abstract class Database {
Future<void> setChild(ChildModel model);

Future<void> liveUpdateChild(
ChildModel model,
AppUsageService apps,
);

Future<void> updateChild(ChildModel model);

Future<void> deleteChild(ChildModel model);

Future<void> deleteNotification(String timestamp);

Future<void> sendEmail({required EmailModel email});

Stream<List<ChildModel>> childrenStream();

Stream<List<NotificationModel>> notificationStream({String childId});
Expand All @@ -35,7 +32,10 @@ abstract class Database {
ChildModel model,
);

Future<void> sendEmail({required EmailModel email});
Future<void> liveUpdateChild(
ChildModel model,
AppUsageService apps,
);

Future<ChildModel> getUserCurrentChild(
String key,
Expand Down Expand Up @@ -67,7 +67,6 @@ class FireStoreDatabase implements Database {
final String uid;
final AuthBase auth;
ChildModel? _child;

final _service = FireStoreService.instance;

GeoLocatorService geo = GeoLocatorService();
Expand Down

0 comments on commit 8285445

Please sign in to comment.