import '../about/external/data/Commitment.dart'; import '../about/external/data/Program.dart'; import '../about/external/data/SystemResponse.dart'; import '../about/internal/application/CapacityProfile.dart'; import '../about/internal/application/MeDescription.dart'; import '../about/internal/application/Token.dart'; import '../about/internal/application/UserDetails.dart'; abstract class ConnectInternalMemory { Future getMyDescription(); Future setMyDescription(MeDescription description); Future getNotToken(); Future setNotToken(String token); Future getUserCreationDetails(); Future setUserCreationDetails(SystemResponse response); Future getUserDetails(); Future setUserDetails(UserDetails details); Future getTokenEntry(); Future setTokenEntry(Token token); Future getRefreshAt(); Future setRefreshAt(String refresher); Future getActiveCommitment(); Future setActiveCommitment(Commitment commitment); Future getActiveProgram(); Future setActiveProgram(Program program); Future getCapacityProfile(); Future setCapacityProfile(CapacityProfile profile); /// The last computed debt score, so the app can open with a number rather /// than a spinner. Future getCachedDebtScore(); Future setCachedDebtScore(double score); /// App opens this week, for the distress conjunction. Future getEngagementCount(); Future setEngagementCount(int count); /// Amnesty tokens spent this month. Future getAmnestySpent(); Future setAmnestySpent(int spent); Future showOnboarding(); Future setOnboardingOption(bool value); }