time_progress_tracker/lib/actions/timer_actions.dart
Andreas Fahrecker 65fc97c9d1 Deleted abstract Action class and created LoadTimersAction,
TimersLoadedAction, TimersNotLoadedAction, AddTimerAction,
UpdateTimerAction and DeleteTimerAction

Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
2020-10-13 14:59:42 +02:00

31 lines
497 B
Dart

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