28 lines
616 B
Dart
28 lines
616 B
Dart
import 'package:photos/models/file.dart';
|
|
import 'package:photos/models/upload_strategy.dart';
|
|
|
|
class DeviceCollection {
|
|
final String id;
|
|
final String name;
|
|
final int count;
|
|
final bool shouldBackup;
|
|
UploadStrategy uploadStrategy;
|
|
final String? coverId;
|
|
int? collectionID;
|
|
File? thumbnail;
|
|
|
|
bool hasCollectionID() {
|
|
return collectionID != null && collectionID! != -1;
|
|
}
|
|
|
|
DeviceCollection(
|
|
this.id,
|
|
this.name, {
|
|
this.coverId,
|
|
this.count = 0,
|
|
this.collectionID,
|
|
this.thumbnail,
|
|
this.uploadStrategy = UploadStrategy.ifMissing,
|
|
this.shouldBackup = false,
|
|
});
|
|
}
|