mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
fa9bb8074c
* add packages * create download task * show progress * save video and image * show progress info * live photo wip * download and link live photos * Update list of assets * wip * correct progress * add state to download * revert unncessary change * repository pattern * translation * remove unused code * update method call from repository * remove unused variable * handle multiple livephotos download * remove logging statement * lint * not removing all records
14 lines
572 B
Dart
14 lines
572 B
Dart
import 'package:background_downloader/background_downloader.dart';
|
|
|
|
abstract interface class IDownloadRepository {
|
|
void Function(TaskStatusUpdate)? onImageDownloadStatus;
|
|
void Function(TaskStatusUpdate)? onVideoDownloadStatus;
|
|
void Function(TaskStatusUpdate)? onLivePhotoDownloadStatus;
|
|
void Function(TaskProgressUpdate)? onTaskProgress;
|
|
|
|
Future<List<TaskRecord>> getLiveVideoTasks();
|
|
Future<bool> download(DownloadTask task);
|
|
Future<bool> cancel(String id);
|
|
Future<void> deleteAllTrackingRecords();
|
|
Future<void> deleteRecordsWithIds(List<String> id);
|
|
}
|