Renamed all Timer named things to TimeProgress
Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
30
lib/actions/actions.dart
Normal file
30
lib/actions/actions.dart
Normal file
@ -0,0 +1,30 @@
|
||||
import 'package:time_progress_calculator/models/time_progress.dart';
|
||||
|
||||
class LoadTimeProgressListAction {}
|
||||
|
||||
class TimeProgressListLoadedAction {
|
||||
final List<TimeProgress> timeProgressList;
|
||||
|
||||
TimeProgressListLoadedAction(this.timeProgressList);
|
||||
}
|
||||
|
||||
class TimeProgressListNotLoadedAction {}
|
||||
|
||||
class AddTimeProgressAction {
|
||||
final TimeProgress timeProgress;
|
||||
|
||||
AddTimeProgressAction(this.timeProgress);
|
||||
}
|
||||
|
||||
class UpdateTimeProgressAction {
|
||||
final String id;
|
||||
final TimeProgress updatedTimeProgress;
|
||||
|
||||
UpdateTimeProgressAction(this.id, this.updatedTimeProgress);
|
||||
}
|
||||
|
||||
class DeleteTimeProgressAction {
|
||||
final String id;
|
||||
|
||||
DeleteTimeProgressAction(this.id);
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
import 'package:time_progress_calculator/models/timer.dart';
|
||||
|
||||
class LoadTimersAction {}
|
||||
|
||||
class TimersLoadedAction {
|
||||
final List<Timer> timers;
|
||||
|
||||
TimersLoadedAction(this.timers);
|
||||
}
|
||||
|
||||
class TimersNotLoadedAction {}
|
||||
|
||||
class AddTimerAction {
|
||||
final Timer timer;
|
||||
|
||||
AddTimerAction(this.timer);
|
||||
}
|
||||
|
||||
class UpdateTimerAction {
|
||||
final String id;
|
||||
final Timer updatedTimer;
|
||||
|
||||
UpdateTimerAction(this.id, this.updatedTimer);
|
||||
}
|
||||
|
||||
class DeleteTimerAction {
|
||||
final String id;
|
||||
|
||||
DeleteTimerAction(this.id);
|
||||
}
|
Reference in New Issue
Block a user