import 'package:krow_core/core.dart';

import '../arguments/save_attire_arguments.dart';
import '../repositories/attire_repository.dart';

/// Use case to save user's attire selections.
class SaveAttireUseCase extends UseCase<SaveAttireArguments, void> {
  final AttireRepository _repository;

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

  @override
  Future<void> call(SaveAttireArguments arguments) {
    return _repository.saveAttire(
      selectedItemIds: arguments.selectedItemIds,
      photoUrls: arguments.photoUrls,
    );
  }
}
