part of 'rating_staff_bloc.dart';

class RatingStaffState {
  StaffContact staff;
  int rating;
  bool favorite = false;
  bool blackListed = false;
  String? reason;
  String comment = '';
  String error = '';
  bool success = false;

  RatingStaffState(
      {required this.staff,
      this.rating = 5,
      this.favorite = false,
      this.blackListed = false,
      this.reason,
      this.comment = '',
      this.success = false,
      this.error = ''});

  copyWith({
    StaffContact? staff,
    int? rating,
    bool? favorite,
    bool? blackListed,
    String? reason,
    String? comment,
    String? error,
    bool? success,
  }) {
    return RatingStaffState(
      staff: staff ?? this.staff,
      rating: rating ?? this.rating,
      favorite: favorite ?? this.favorite,
      blackListed: blackListed ?? this.blackListed,
      reason: reason ?? this.reason,
      comment: comment ?? this.comment,
      error: error ?? '',
      success: success ?? false,
    );
  }
}
