ente/lib/models/search/search_result.dart

28 lines
367 B
Dart
Raw Normal View History

2022-09-14 08:33:12 +00:00
import 'package:photos/models/file.dart';
abstract class SearchResult {
ResultType type();
String name();
File? previewThumbnail();
2022-09-14 08:33:12 +00:00
String heroTag() {
return '${type().toString()}_${name()}';
}
List<File> resultFiles();
}
enum ResultType {
collection,
file,
location,
month,
year,
fileType,
fileExtension,
2022-11-05 05:30:03 +00:00
fileCaption,
event
}