

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

abstract class OffersState extends Equatable {
  const OffersState();

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

class OffersInitial extends OffersState {}

class OffersLoadInProgress extends OffersState {}

class OffersLoadSuccess extends OffersState {
  final List<OfferModel> offers;

  const OffersLoadSuccess(this.offers);

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

class OffersLoadFailure extends OffersState {
  final String error;

  const OffersLoadFailure(this.error);

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