| | |
| | | exam_type = 3; |
| | | examStatusViewModel.updateStartExam(exam_type); |
| | | sendExamJson(1,exam_type); |
| | | if (simulateNightBean == null){ |
| | | simulateNightBean = new SimulateNightBean(); |
| | | } |
| | | simulateNightBean.setExam(0); |
| | | |
| | | final List<SimulateNightBean.QuestionBean> list = ExamPlatformData.getInstance().getSimulate_light_tips(); |
| | | simulateNightBean.setQuestion(list.subList(list.size()-2,list.size()-1)); |
| | | AYSdk.getInstance().sendCmd(0x8012,gson.toJson(simulateNightBean)); |
| | | jkMessage0202.curr_exam = 1; |
| | | |
| | | MessageProcessor.getInstance().sendMessage(jkMessage0202); |
| | | |
| | | iv_head.getDrawable().setLevel(1); |
| | | tempQs.add(list.get(0)); |
| | | int [] a =Utils.getRandomInts(4,12); |
| | | for (int i = 0; i < a.length; i++) { |
| | | tempQs.add(list.get(a[i])); |
| | | } |
| | | |
| | | simulateNightBean.setQuestion(tempQs); |
| | | mHandler.postDelayed(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | AYSdk.getInstance().sendCmd(0x8012,gson.toJson(simulateNightBean)); |
| | | tempQs.clear(); |
| | | } |
| | | },10*1000); |
| | | MessageProcessor.getInstance().sendMessage(jkMessage0202); |
| | | // if (simulateNightBean == null){ |
| | | // simulateNightBean = new SimulateNightBean(); |
| | | // } |
| | | // simulateNightBean.setExam(0); |
| | | // |
| | | // final List<SimulateNightBean.QuestionBean> list = ExamPlatformData.getInstance().getSimulate_light_tips(); |
| | | // simulateNightBean.setQuestion(list.subList(list.size()-2,list.size()-1)); |
| | | // AYSdk.getInstance().sendCmd(0x8012,gson.toJson(simulateNightBean)); |
| | | // |
| | | // |
| | | // |
| | | // tempQs.add(list.get(0)); |
| | | // int [] a =Utils.getRandomInts(4,12); |
| | | // for (int i = 0; i < a.length; i++) { |
| | | // tempQs.add(list.get(a[i])); |
| | | // } |
| | | // |
| | | // simulateNightBean.setQuestion(tempQs); |
| | | // mHandler.postDelayed(new Runnable() { |
| | | // @Override |
| | | // public void run() { |
| | | // AYSdk.getInstance().sendCmd(0x8012,gson.toJson(simulateNightBean)); |
| | | // tempQs.clear(); |
| | | // } |
| | | // },10*1000); |
| | | |
| | | } |
| | | }); |