mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
* fix(mobile): exifInfo not updated on sync * add tests --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
56 lines
1.4 KiB
Dart
56 lines
1.4 KiB
Dart
import 'package:immich_mobile/domain/models/exif.model.dart';
|
|
import 'package:immich_mobile/entities/asset.entity.dart';
|
|
|
|
final class AssetStub {
|
|
const AssetStub._();
|
|
|
|
static final image1 = Asset(
|
|
checksum: "image1-checksum",
|
|
localId: "image1",
|
|
remoteId: 'image1-remote',
|
|
ownerId: 1,
|
|
fileCreatedAt: DateTime(2019),
|
|
fileModifiedAt: DateTime(2020),
|
|
updatedAt: DateTime.now(),
|
|
durationInSeconds: 0,
|
|
type: AssetType.image,
|
|
fileName: "image1.jpg",
|
|
isFavorite: true,
|
|
isArchived: false,
|
|
isTrashed: false,
|
|
exifInfo: const ExifInfo(isFlipped: false),
|
|
);
|
|
|
|
static final image2 = Asset(
|
|
checksum: "image2-checksum",
|
|
localId: "image2",
|
|
remoteId: 'image2-remote',
|
|
ownerId: 1,
|
|
fileCreatedAt: DateTime(2000),
|
|
fileModifiedAt: DateTime(2010),
|
|
updatedAt: DateTime.now(),
|
|
durationInSeconds: 60,
|
|
type: AssetType.video,
|
|
fileName: "image2.jpg",
|
|
isFavorite: false,
|
|
isArchived: false,
|
|
isTrashed: false,
|
|
exifInfo: const ExifInfo(isFlipped: true),
|
|
);
|
|
|
|
static final image3 = Asset(
|
|
checksum: "image3-checksum",
|
|
localId: "image3",
|
|
ownerId: 1,
|
|
fileCreatedAt: DateTime(2025),
|
|
fileModifiedAt: DateTime(2025),
|
|
updatedAt: DateTime.now(),
|
|
durationInSeconds: 60,
|
|
type: AssetType.image,
|
|
fileName: "image3.jpg",
|
|
isFavorite: true,
|
|
isArchived: false,
|
|
isTrashed: false,
|
|
);
|
|
}
|