refactor(mobile): add AssetState and proper asset updating (#2270)

* refactor(mobile): add AssetState and proper asset updating

* generate files

---------

Co-authored-by: Fynn Petersen-Frey <zoodyy@users.noreply.github.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Fynn Petersen-Frey
2023-04-18 11:47:24 +02:00
committed by GitHub
parent b970a40b4e
commit e80d37bf8f
14 changed files with 256 additions and 98 deletions

View File

@@ -63,6 +63,7 @@ class ExifInfo {
description = dto.description;
ExifInfo({
this.id,
this.fileSize,
this.make,
this.model,
@@ -78,6 +79,41 @@ class ExifInfo {
this.country,
this.description,
});
ExifInfo copyWith({
Id? id,
int? fileSize,
String? make,
String? model,
String? lens,
float? f,
float? mm,
short? iso,
float? exposureSeconds,
float? lat,
float? long,
String? city,
String? state,
String? country,
String? description,
}) =>
ExifInfo(
id: id ?? this.id,
fileSize: fileSize ?? this.fileSize,
make: make ?? this.make,
model: model ?? this.model,
lens: lens ?? this.lens,
f: f ?? this.f,
mm: mm ?? this.mm,
iso: iso ?? this.iso,
exposureSeconds: exposureSeconds ?? this.exposureSeconds,
lat: lat ?? this.lat,
long: long ?? this.long,
city: city ?? this.city,
state: state ?? this.state,
country: country ?? this.country,
description: description ?? this.description,
);
}
double? _exposureTimeToSeconds(String? s) {