diff --git a/lib/services/database.dart b/lib/services/database.dart index 6c36418..5eacf87 100644 --- a/lib/services/database.dart +++ b/lib/services/database.dart @@ -13,17 +13,14 @@ import 'package:times_up_flutter/widgets/show_logger.dart'; abstract class Database { Future setChild(ChildModel model); - Future liveUpdateChild( - ChildModel model, - AppUsageService apps, - ); - Future updateChild(ChildModel model); Future deleteChild(ChildModel model); Future deleteNotification(String timestamp); + Future sendEmail({required EmailModel email}); + Stream> childrenStream(); Stream> notificationStream({String childId}); @@ -35,7 +32,10 @@ abstract class Database { ChildModel model, ); - Future sendEmail({required EmailModel email}); + Future liveUpdateChild( + ChildModel model, + AppUsageService apps, + ); Future getUserCurrentChild( String key, @@ -67,7 +67,6 @@ class FireStoreDatabase implements Database { final String uid; final AuthBase auth; ChildModel? _child; - final _service = FireStoreService.instance; GeoLocatorService geo = GeoLocatorService();