29 lines
No EOL
646 B
Dart
29 lines
No EOL
646 B
Dart
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);
|
|
} |