mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
17 lines
384 B
Dart
17 lines
384 B
Dart
|
import 'package:nc_photos/account.dart';
|
||
|
import 'package:nc_photos/entity/file.dart';
|
||
|
import 'package:nc_photos/entity/share.dart';
|
||
|
|
||
|
class CreateLinkShare {
|
||
|
const CreateLinkShare(this.shareRepo);
|
||
|
|
||
|
Future<Share> call(
|
||
|
Account account,
|
||
|
File file, {
|
||
|
String? password,
|
||
|
}) =>
|
||
|
shareRepo.createLink(account, file, password: password);
|
||
|
|
||
|
final ShareRepo shareRepo;
|
||
|
}
|