Fire notifications

This commit is contained in:
Vicente J. Ruiz Jurado 2018-07-26 19:13:12 +02:00
parent c680482b08
commit 5ecc3c3401
22 changed files with 524 additions and 31 deletions

View file

@ -1,4 +1,5 @@
import 'package:fires_flutter/models/yourLocation.dart';
import 'package:fires_flutter/models/fireNotification.dart';
abstract class AppActions {}
@ -12,6 +13,8 @@ class FetchYourLocationsSucceededAction extends AppActions {
FetchYourLocationsSucceededAction(this.fetchedYourLocations);
}
class FetchFireNotificationsAction extends AppActions {}
class FetchYourLocationsFailedAction extends AppActions {
final Exception error;
@ -35,3 +38,9 @@ class OnUserLangAction extends AppActions {
OnUserLangAction(this.lang);
}
class FetchFireNotificationsSucceededAction extends AppActions {
final List<FireNotification> fetchedFireNotifications;
FetchFireNotificationsSucceededAction(this.fetchedFireNotifications);
}