More redux and api work
This commit is contained in:
parent
866e776389
commit
2c67b68512
17 changed files with 256 additions and 11 deletions
29
lib/redux/appActions.dart
Normal file
29
lib/redux/appActions.dart
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import '../models/yourLocation.dart';
|
||||
|
||||
abstract class AppActions {}
|
||||
|
||||
class FetchYourLocationsAction extends AppActions {}
|
||||
|
||||
class FetchYourLocationsSucceededAction extends AppActions {
|
||||
final List<YourLocation> fetchedYourLocations;
|
||||
|
||||
FetchYourLocationsSucceededAction(this.fetchedYourLocations);
|
||||
}
|
||||
|
||||
class FetchYourLocationsFailedAction extends AppActions {
|
||||
final Exception error;
|
||||
|
||||
FetchYourLocationsFailedAction(this.error);
|
||||
}
|
||||
|
||||
class OnUserTokenAction extends AppActions {
|
||||
final String token;
|
||||
|
||||
OnUserTokenAction(this.token);
|
||||
}
|
||||
|
||||
class OnUserCreatedAction extends AppActions {
|
||||
final String userId;
|
||||
|
||||
OnUserCreatedAction(this.userId);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue