More redux and api work
This commit is contained in:
parent
866e776389
commit
2c67b68512
17 changed files with 256 additions and 11 deletions
41
lib/redux/yourLocationActions.dart
Normal file
41
lib/redux/yourLocationActions.dart
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
import 'package:bson_objectid/bson_objectid.dart';
|
||||
|
||||
import '../models/yourLocation.dart';
|
||||
|
||||
abstract class YourLocationActions {}
|
||||
|
||||
class AddYourLocationAction extends YourLocationActions {
|
||||
YourLocation loc;
|
||||
|
||||
AddYourLocationAction(this.loc);
|
||||
}
|
||||
|
||||
class DeleteYourLocationAction extends YourLocationActions {
|
||||
ObjectId id;
|
||||
DeleteYourLocationAction(this.id);
|
||||
}
|
||||
|
||||
class UpdateYourLocationAction extends YourLocationActions {
|
||||
ObjectId id;
|
||||
YourLocation loc;
|
||||
|
||||
UpdateYourLocationAction(this.id, this.loc);
|
||||
}
|
||||
|
||||
class ToggleSubscriptionAction extends YourLocationActions {
|
||||
ObjectId id;
|
||||
|
||||
ToggleSubscriptionAction(this.id);
|
||||
}
|
||||
|
||||
class SubscribeAction extends YourLocationActions {
|
||||
ObjectId id;
|
||||
|
||||
SubscribeAction(this.id);
|
||||
}
|
||||
|
||||
class UnSubscribeAction extends YourLocationActions {
|
||||
ObjectId id;
|
||||
|
||||
UnSubscribeAction(this.id);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue