part of 'dashboard_store_ticket_list_cubit.dart';

enum DashboardStoreTicketListStatus { initial, loading, success, failure }

class DashboardStoreTicketListState extends Equatable {
  final DashboardStoreTicketListStatus status;
  final List<TicketModel> tickets;
  final String? errorMessage;

  const DashboardStoreTicketListState({
    this.status = DashboardStoreTicketListStatus.initial,
    this.tickets = const [],
    this.errorMessage,
  });

  DashboardStoreTicketListState copyWith({
    DashboardStoreTicketListStatus? status,
    List<TicketModel>? tickets,
    String? errorMessage,
  }) {
    return DashboardStoreTicketListState(
      status: status ?? this.status,
      tickets: tickets ?? this.tickets,
      errorMessage: errorMessage ?? this.errorMessage,
    );
  }

  @override
  List<Object?> get props => [status, tickets, errorMessage];
}
