import 'package:get/get.dart';
import 'package:making_school_asignment_app/common/job/homework_details.dart';

class QuickDataCheckState {
  QuickDataCheckState() {
    ///Initialize variables
  }

  late RxString homeworkId = ''.obs;
  late RxString classId = ''.obs;
  late RxString className = ''.obs;
  late int grade;
  late CountData dataCount = CountData();
  late RxBool hasData = false.obs;
  late RxList<Questions> kgReport = RxList();
  late RxList<Questions> zgReport = RxList();
  late RxList<Students> studentList = RxList();
  late HomeworkDetails homeData;
}

class CountData extends Object {
  int? kgtOkCount = 0;
  int? kgtDtlCount = 0;
  double? kgtAnswerRate = 0;
  double? kgtOkRate = 0;
  int? kgtAnswerCount = 0;
  int? kgtCount = 0;
  int? zgtDtlCount = 0;
  int? zgtOkCount = 0;
  int? zgtAnswerCount = 0;
  double? zgtAnswerRate = 0;
  double? zgtOkRate = 0;
  int? zgtCount = 0;
  int? studentCount = 0;
  List<Students>? priorityStudents = [];
  int? studentSubmitCount = 0;
  CountData({
    this.kgtOkCount,
    this.kgtDtlCount,
    this.kgtAnswerRate,
    this.kgtAnswerCount,
    this.kgtOkRate,
    this.studentCount,
    this.kgtCount,
    this.zgtAnswerCount,
    this.zgtOkCount,
    this.zgtDtlCount,
    this.zgtAnswerRate,
    this.zgtOkRate,
    this.zgtCount,
    this.priorityStudents,
    this.studentSubmitCount,
  });
}
