mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
14 lines
335 B
Dart
14 lines
335 B
Dart
import 'dart:typed_data';
|
|
|
|
import 'package:nc_photos/account.dart';
|
|
import 'package:nc_photos/entity/file.dart';
|
|
|
|
class GetFileBinary {
|
|
GetFileBinary(this.fileRepo);
|
|
|
|
/// Get the binary content of a file
|
|
Future<Uint8List> call(Account account, File file) =>
|
|
fileRepo.getBinary(account, file);
|
|
|
|
final FileRepo fileRepo;
|
|
}
|