2022-09-07 08:30:09 +00:00
|
|
|
// @dart=2.9
|
|
|
|
|
2021-04-23 21:37:04 +00:00
|
|
|
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-04-23 21:37:04 +00:00
|
|
|
|
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,
|
2021-10-29 23:55:29 +00:00
|
|
|
archived,
|
|
|
|
unarchived,
|
2021-05-02 10:31:04 +00:00
|
|
|
}
|