import 'package:krow_core/core.dart';
import '../arguments/upload_attire_photo_arguments.dart';
import '../repositories/attire_repository.dart';

/// Use case to upload a photo for an attire item.
class UploadAttirePhotoUseCase extends UseCase<UploadAttirePhotoArguments, String> {
  final AttireRepository _repository;

  /// Creates a [UploadAttirePhotoUseCase].
  UploadAttirePhotoUseCase(this._repository);

  @override
  Future<String> call(UploadAttirePhotoArguments arguments) {
    return _repository.uploadPhoto(arguments.itemId);
  }
}
