ente/lib/events/files_updated_event.dart

24 lines
425 B
Dart
Raw Normal View History

// @dart=2.9
import 'package:photos/events/event.dart';
import 'package:photos/models/file.dart';
class FilesUpdatedEvent extends Event {
final List<File> updatedFiles;
2021-05-02 10:31:04 +00:00
final EventType type;
2021-05-02 10:31:04 +00:00
FilesUpdatedEvent(
this.updatedFiles, {
2021-10-29 23:56:27 +00:00
this.type = EventType.addedOrUpdated,
2021-05-02 10:31:04 +00:00
});
}
enum EventType {
2021-10-29 23:56:27 +00:00
addedOrUpdated,
deletedFromDevice,
deletedFromRemote,
deletedFromEverywhere,
archived,
unarchived,
2021-05-02 10:31:04 +00:00
}