Cleaned up the repo
Singed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
29
lib/redux/actions/time_progress_actions.dart
Normal file
29
lib/redux/actions/time_progress_actions.dart
Normal file
@ -0,0 +1,29 @@
|
||||
import 'package:time_progress_tracker/models/time_progress.dart';
|
||||
import 'package:time_progress_tracker/redux/actions/redux_actions.dart';
|
||||
|
||||
class LoadTimeProgressListAction {}
|
||||
|
||||
class TimeProgressListLoadedAction extends BoolAction {
|
||||
final List<TimeProgress> timeProgressList;
|
||||
|
||||
TimeProgressListLoadedAction(this.timeProgressList);
|
||||
}
|
||||
|
||||
class TimeProgressListNotLoadedAction extends BoolAction {}
|
||||
|
||||
class AddTimeProgressAction extends TimeProgressAction {
|
||||
AddTimeProgressAction(TimeProgress timeProgress) : super(timeProgress);
|
||||
}
|
||||
|
||||
class UpdateTimeProgressAction extends TimeProgressAction {
|
||||
final String id;
|
||||
|
||||
UpdateTimeProgressAction(this.id, TimeProgress timeProgress)
|
||||
: super(timeProgress);
|
||||
}
|
||||
|
||||
class DeleteTimeProgressAction {
|
||||
final String id;
|
||||
|
||||
DeleteTimeProgressAction(this.id);
|
||||
}
|
Reference in New Issue
Block a user