nc-photos/lib/use_case/create_share.dart
2021-09-28 16:36:37 +08:00

16 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;
}