Renamed all Timer named things to TimeProgress

Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
Andreas Fahrecker
2020-10-16 14:25:15 +02:00
parent 7f6eec43de
commit 976fbec455
16 changed files with 198 additions and 188 deletions

30
lib/actions/actions.dart Normal file
View 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);
}

View File

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