2025-07-18 10:01:04 +05:30
|
|
|
import 'package:immich_mobile/domain/utils/event_stream.dart';
|
|
|
|
|
|
2025-06-16 20:37:45 +05:30
|
|
|
enum GroupAssetsBy {
|
|
|
|
|
day,
|
|
|
|
|
month,
|
|
|
|
|
none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum HeaderType {
|
|
|
|
|
none,
|
|
|
|
|
month,
|
|
|
|
|
day,
|
|
|
|
|
monthAndDay;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Bucket {
|
|
|
|
|
final int assetCount;
|
|
|
|
|
|
|
|
|
|
const Bucket({required this.assetCount});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(covariant Bucket other) {
|
|
|
|
|
return assetCount == other.assetCount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => assetCount.hashCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class TimeBucket extends Bucket {
|
|
|
|
|
final DateTime date;
|
|
|
|
|
|
|
|
|
|
const TimeBucket({required this.date, required super.assetCount});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(covariant TimeBucket other) {
|
|
|
|
|
return super == other && date == other.date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => super.hashCode ^ date.hashCode;
|
|
|
|
|
}
|
2025-07-18 10:01:04 +05:30
|
|
|
|
|
|
|
|
class TimelineReloadEvent extends Event {
|
|
|
|
|
const TimelineReloadEvent();
|
|
|
|
|
}
|