2022-11-09 02:23:56 +00:00
|
|
|
class ImageEntry {
|
2022-12-14 02:06:10 +00:00
|
|
|
final String id;
|
|
|
|
final String album;
|
|
|
|
final String filename;
|
|
|
|
final String description;
|
|
|
|
final String thumbnailUrl;
|
|
|
|
final DateTime created;
|
|
|
|
final int height;
|
|
|
|
final int width;
|
2022-12-26 20:26:30 +00:00
|
|
|
final List<ImageEntryScale> scales;
|
2022-11-09 02:23:56 +00:00
|
|
|
|
2022-12-26 20:26:30 +00:00
|
|
|
ImageEntry(
|
|
|
|
{required this.id,
|
|
|
|
required this.album,
|
|
|
|
required this.filename,
|
|
|
|
required this.description,
|
|
|
|
required this.thumbnailUrl,
|
|
|
|
required this.created,
|
|
|
|
required this.height,
|
|
|
|
required this.width,
|
|
|
|
required this.scales});
|
2022-11-09 02:23:56 +00:00
|
|
|
|
2022-12-14 02:06:10 +00:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) =>
|
|
|
|
identical(this, other) ||
|
|
|
|
other is ImageEntry && runtimeType == other.runtimeType && id == other.id;
|
2022-11-09 02:23:56 +00:00
|
|
|
|
2022-12-14 02:06:10 +00:00
|
|
|
@override
|
|
|
|
int get hashCode => id.hashCode;
|
2022-11-09 02:23:56 +00:00
|
|
|
}
|
2022-12-26 20:26:30 +00:00
|
|
|
|
|
|
|
class ImageEntryScale {
|
|
|
|
final String id;
|
|
|
|
final int scale;
|
|
|
|
final Uri link;
|
|
|
|
final int width;
|
|
|
|
final int height;
|
|
|
|
final int size;
|
|
|
|
|
|
|
|
ImageEntryScale({
|
|
|
|
required this.id,
|
|
|
|
required this.scale,
|
|
|
|
required this.link,
|
|
|
|
required this.width,
|
|
|
|
required this.height,
|
|
|
|
required this.size,
|
|
|
|
});
|
|
|
|
}
|