import 'package:nc_photos/account.dart'; import 'package:nc_photos/entity/file.dart'; import 'package:nc_photos/entity/share.dart'; class CreateUserShare { const CreateUserShare(this.shareRepo); Future call(Account account, File file, String shareWith) => shareRepo.create(account, file, shareWith); final ShareRepo shareRepo; } class CreateLinkShare { const CreateLinkShare(this.shareRepo); Future call( Account account, File file, { String? password, }) => shareRepo.createLink(account, file, password: password); final ShareRepo shareRepo; }