feat(wip): Update entities and adopt a proper repository workflow for trip "obtention"
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
abstract class OnboardingRepository {
|
||||
/// Returns true when the user accepted the onboarding agreement
|
||||
Future<bool> isOnboarded();
|
||||
|
||||
/// Sets the onboarding completion flag
|
||||
Future<void> setOnboarded(bool value);
|
||||
}
|
||||
@@ -2,4 +2,5 @@ import 'package:anyway/domain/entities/preferences.dart';
|
||||
|
||||
abstract class PreferencesRepository {
|
||||
Future<Preferences> getPreferences();
|
||||
Future<void> savePreferences(Preferences preferences);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import 'package:anyway/domain/entities/landmark.dart';
|
||||
import 'package:anyway/domain/entities/preferences.dart';
|
||||
import 'package:anyway/domain/entities/trip.dart';
|
||||
|
||||
abstract class TripRepository {
|
||||
Future<Trip> getTrip({Preferences? preferences, String? tripUUID});
|
||||
Future<Trip> getTrip({Preferences? preferences, String? tripUUID, List<Landmark>? landmarks});
|
||||
|
||||
Future<List<Landmark>> searchLandmarks(Preferences preferences);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user