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;
  late int subject = -1;
}

class CountData extends Object {
  int? kgtOkCount = 0;
  int? kgtDtlCount = 0;
  double? kgtAnswerRate = 0;
  double? kgtOkRate = 0;
  double? kgtCorrectRate = 0;
  int? kgtAnswerCount = 0;
  int? kgtCount = 0;
  int? zgtDtlCount = 0;
  int? zgtOkCount = 0;
  int? zgtAnswerCount = 0;
  double? zgtAnswerRate = 0;
  double? zgtCorrectRate = 0;
  double? zgtOkRate = 0;
  int? zgtCount = 0;
  int? studentCount = 0;
  List<Students>? priorityStudents = [];
  List<Students>? noAnswerStudents = [];
  List<Students>? studentSubmitStudents = [];
  List<Students>? allCorrectStudents = [];
  List<Students>? levelOneStudents = [];
  List<Students>? levelTwoStudents = [];
  List<Students>? levelThreeStudents = [];
  List<Students>? levelFourStudents = [];
  int? studentSubmitCount = 0;
  int? noAnswerCount = 0;
  int? allCorrect = 0;
  int? levelOneCount = 0;
  int? levelTwoCount = 0;
  int? levelThreeCount = 0;
  int? levelFourCount = 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,
    this.noAnswerCount,
    this.allCorrect,
    this.noAnswerStudents,
    this.studentSubmitStudents,
    this.allCorrectStudents,
    this.levelOneCount,
    this.levelOneStudents,
    this.levelTwoCount,
    this.levelTwoStudents,
    this.levelThreeCount,
    this.levelThreeStudents,
    this.levelFourCount,
    this.levelFourStudents,

  });
}
