// lib/presentation/offer/bloc/offer_event.dart

import 'package:equatable/equatable.dart';
import 'package:proxibuy/data/models/offer_model.dart';

abstract class OffersEvent extends Equatable {
  const OffersEvent();

  @override
  List<Object> get props => [];
}

class OffersFetchRequested extends OffersEvent {
  final List<String> selectedCategories;

  const OffersFetchRequested({required this.selectedCategories});

  @override
  List<Object> get props => [selectedCategories];
}

class OffersReceivedFromMqtt extends OffersEvent {
  final List<OfferModel> offers;

  const OffersReceivedFromMqtt(this.offers);

  @override
  List<Object> get props => [offers];
}

class ClearOffers extends OffersEvent {} // این کلاس را اضافه کنید
