agnosticful / saraka-mobile

An Android/iOS app to get used to speak phrases what you're not familiar with
0 stars 0 forks source link

Refactoring Architecture #207

Open axross opened 5 years ago

axross commented 5 years ago
axross commented 5 years ago

Added:

  • initialize() and dispose() for each BLoCs
axross commented 5 years ago
  • Application-side cache for card list
Observable<List<Card>> CardListSubscribable#subscribeCards();
// possibly throws NetworkConnectionException

Future<void> CardDeletable#deleteCard();
// possibly throws CardNotFoundException or NetworkConnectionException

Future<Card> CardCreatable#createCard();
// possibly throws CardDuplicationException, InvalidCardCreationException or NetworkConnectionException
axross commented 5 years ago

Added:

  • Move blocs/xxxable.dart -> behaviors/xxxable.dart