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 // Model for an album stored in the server
class Album { class Album {
final String id; final String id;
final String? localId;
final String name; final String name;
final String description; final String description;
final DateTime createdAt;
final DateTime updatedAt; final DateTime updatedAt;
final String? thumbnailAssetId; final String? thumbnailAssetId;
final bool isActivityEnabled; final bool isActivityEnabled;
@ -17,9 +17,9 @@ class Album {
const Album({ const Album({
required this.id, required this.id,
this.localId,
required this.name, required this.name,
required this.description, required this.description,
required this.createdAt,
required this.updatedAt, required this.updatedAt,
this.thumbnailAssetId, this.thumbnailAssetId,
required this.isActivityEnabled, required this.isActivityEnabled,
@ -32,6 +32,7 @@ class Album {
id: $id, id: $id,
name: $name, name: $name,
description: $description, description: $description,
createdAt: $createdAt,
updatedAt: $updatedAt, updatedAt: $updatedAt,
isActivityEnabled: $isActivityEnabled, isActivityEnabled: $isActivityEnabled,
order: $order, order: $order,
@ -44,9 +45,9 @@ class Album {
if (other is! Album) return false; if (other is! Album) return false;
if (identical(this, other)) return true; if (identical(this, other)) return true;
return id == other.id && return id == other.id &&
localId == other.localId &&
name == other.name && name == other.name &&
description == other.description && description == other.description &&
createdAt == other.createdAt &&
updatedAt == other.updatedAt && updatedAt == other.updatedAt &&
thumbnailAssetId == other.thumbnailAssetId && thumbnailAssetId == other.thumbnailAssetId &&
isActivityEnabled == other.isActivityEnabled && isActivityEnabled == other.isActivityEnabled &&
@ -56,9 +57,9 @@ class Album {
@override @override
int get hashCode { int get hashCode {
return id.hashCode ^ return id.hashCode ^
localId.hashCode ^
name.hashCode ^ name.hashCode ^
description.hashCode ^ description.hashCode ^
createdAt.hashCode ^
updatedAt.hashCode ^ updatedAt.hashCode ^
thumbnailAssetId.hashCode ^ thumbnailAssetId.hashCode ^
isActivityEnabled.hashCode ^ isActivityEnabled.hashCode ^