Add local metadata models

This commit is contained in:
Neeraj Gupta
2025-03-26 22:08:43 +05:30
parent f7330be52c
commit 715e305e09

View File

@@ -0,0 +1,33 @@
import "package:photos/models/location/location.dart";
class DroidMetadata {
int creationTime;
int modificationTime;
String hash;
int size;
Location? location;
bool? isPanorama;
int? mviIndex;
DroidMetadata({
required this.hash,
required this.size,
required this.creationTime,
required this.modificationTime,
this.mviIndex,
this.location,
this.isPanorama,
});
}
class IOSMetadata {
// https://developer.apple.com/documentation/photos/phcloudidentifier
// Bulk mapping from local to cloud identifiers & vice versa
String? cloudIdentifier;
// https://developer.apple.com/documentation/photos/phassetsourcetype
int? sourceType;
bool? hasAdjustments;
String? adjustmentFormatIdentifier;
bool? representsBurst;
String? burstIdentifier;
int? burstSelectionTypes;
}