mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
24 lines
754 B
Dart
24 lines
754 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:immich_mobile/domain/models/time_range.model.dart';
|
|
import 'package:maplibre_gl/maplibre_gl.dart';
|
|
|
|
part 'map.model.freezed.dart';
|
|
|
|
@freezed
|
|
abstract class Marker with _$Marker {
|
|
const factory Marker({required LatLng location, required String assetId}) = _Marker;
|
|
}
|
|
|
|
@Freezed(fromJson: false, toJson: false)
|
|
abstract class TimelineMapOptions with _$TimelineMapOptions {
|
|
const factory TimelineMapOptions({
|
|
required LatLngBounds bounds,
|
|
|
|
@Default(false) bool onlyFavorites,
|
|
@Default(false) bool includeArchived,
|
|
@Default(false) bool withPartners,
|
|
@Default(0) int relativeDays,
|
|
|
|
@Default(TimeRange()) TimeRange timeRange,
|
|
}) = _TimelineMapOptions;
|
|
}
|