missing createdAt field

This commit is contained in:
wuzihao051119 2025-06-06 15:46:27 +08:00
parent 0bbb331d5f
commit fe00921d89

View File

@ -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 ^