RQExerciseModel.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // RQExerciseModel.h
  3. // JSJP
  4. //
  5. // Created by 张嵘 on 2021/8/12.
  6. //
  7. #import "RQBaseModel.h"
  8. typedef NS_ENUM(NSInteger, RQExerciseOptionItemType) {
  9. RQExerciseOptionItemType_Default, /// 默认样式:左边选项文本为ABCD 文本色为黑色 背景色为白色 右边文本为黑色
  10. RQExerciseOptionItemType_Correct_CorrectOption, /// 单选/判断/多选 答对了正确选项 样式:左边选项文本为空 为正确图片 文本色为白色 背景色为绿色 右边文本为绿色
  11. RQExerciseOptionItemType_Error_CorrectOption, /// 单选/判断/多选 答错了正确选项 样式:左边选项文本为ABCD 文本色为白色 背景色为绿色 右边文本为绿色
  12. RQExerciseOptionItemType_Correct_ErrorOption, /// 单选/判断 答对了错误选项 样式:左边选项文本为ABCD 文本色为白色 背景色为红色 右边文本为红色
  13. RQExerciseOptionItemType_Error_ErrorOption, /// 单选/判断/多选 答错了错误选项 样式:左边选项文本为空 为错误图片 文本色为白色 背景色为红色 右边文本为红色
  14. RQExerciseOptionItemType_Multiple_Primary, /// 多选 未确认预选 样式:左边选项文本为ABCD 文本色为白色 背景色为蓝色 右边文本为蓝色
  15. };
  16. NS_ASSUME_NONNULL_BEGIN
  17. @interface RQExerciseModel : RQBaseModel
  18. /// 题目
  19. @property (nonatomic, readwrite, strong) RQYDTQuestionModel *ydtQuestionModel;
  20. /**
  21. * 答对答错或没做 0没做 1答对 2答错
  22. */
  23. @property (nonatomic, readwrite, assign) RQAnswerResultsType answerResultsType;
  24. /**
  25. * 用户选项
  26. */
  27. @property (nonatomic, readwrite, copy) NSArray *userAnswer;
  28. /**
  29. * 是否收藏0收藏1否
  30. */
  31. @property (nonatomic, readwrite, assign) NSInteger is_favorite;
  32. /**
  33. * 是否为当前题
  34. */
  35. @property (nonatomic, readwrite, assign) BOOL isCurrent;
  36. /**
  37. * 是否显示过技巧讲解
  38. */
  39. @property (nonatomic, readwrite, assign) BOOL isShowSkillExplanation;
  40. /**
  41. * Cell样式
  42. */
  43. @property (nonatomic, readwrite, assign) RQExerciseOptionItemType exerciseOptionItemType;
  44. /**
  45. * 题目顺序
  46. */
  47. //@property (nonatomic, readwrite, assign) NSInteger num;
  48. /**
  49. * 题目数量
  50. */
  51. @property (nonatomic, readwrite, assign) NSInteger allNum;
  52. //@property (nonatomic, readwrite, assign) RQExerciseType exerciseType;
  53. + (id)exerciseModelWithRQYDTQuestionModel:(RQYDTQuestionModel *)ydtQuestionModel;
  54. @end
  55. NS_ASSUME_NONNULL_END