From fe00921d894236237f563f36ed15d9b5f503da69 Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Fri, 6 Jun 2025 15:46:27 +0800 Subject: [PATCH] missing createdAt field --- mobile/lib/domain/models/album/album.model.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mobile/lib/domain/models/album/album.model.dart b/mobile/lib/domain/models/album/album.model.dart index d68f3891cc6..47683121bab 100644 --- a/mobile/lib/domain/models/album/album.model.dart +++ b/mobile/lib/domain/models/album/album.model.dart @@ -7,9 +7,9 @@ enum AssetOrder { // Model for an album stored in the server class Album { final String id; - final String? localId; final String name; final String description; + final DateTime createdAt; final DateTime updatedAt; final String? thumbnailAssetId; final bool isActivityEnabled; @@ -17,9 +17,9 @@ class Album { const Album({ required this.id, - this.localId, required this.name, required this.description, + required this.createdAt, required this.updatedAt, this.thumbnailAssetId, required this.isActivityEnabled, @@ -32,6 +32,7 @@ class Album { id: $id, name: $name, description: $description, + createdAt: $createdAt, updatedAt: $updatedAt, isActivityEnabled: $isActivityEnabled, order: $order, @@ -44,9 +45,9 @@ class Album { if (other is! Album) return false; if (identical(this, other)) return true; return id == other.id && - localId == other.localId && name == other.name && description == other.description && + createdAt == other.createdAt && updatedAt == other.updatedAt && thumbnailAssetId == other.thumbnailAssetId && isActivityEnabled == other.isActivityEnabled && @@ -56,9 +57,9 @@ class Album { @override int get hashCode { return id.hashCode ^ - localId.hashCode ^ name.hashCode ^ description.hashCode ^ + createdAt.hashCode ^ updatedAt.hashCode ^ thumbnailAssetId.hashCode ^ isActivityEnabled.hashCode ^