More redux and api work

This commit is contained in:
vjrj 2018-06-27 16:26:06 +02:00
parent 866e776389
commit 2c67b68512
17 changed files with 256 additions and 11 deletions

View 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);
}