import '../repositories/home_repository_interface.dart';

/// Use case for retrieving user session data.
///
/// Returns the user's business name and photo URL for display in the header.
class GetUserSessionDataUseCase {

  /// Creates a [GetUserSessionDataUseCase].
  GetUserSessionDataUseCase(this._repository);
  final HomeRepositoryInterface _repository;

  /// Executes the use case to get session data.
  UserSessionData call() {
    return _repository.getUserSessionData();
  }
}
