RQExerciseModel.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. * 是否是本地练习
  42. */
  43. @property (nonatomic, readwrite, assign) BOOL isLocalityLX;
  44. /**
  45. * Cell样式
  46. */
  47. @property (nonatomic, readwrite, assign) RQExerciseOptionItemType exerciseOptionItemType;
  48. /**
  49. * 题目顺序
  50. */
  51. //@property (nonatomic, readwrite, assign) NSInteger num;
  52. /**
  53. * 题目数量
  54. */
  55. @property (nonatomic, readwrite, assign) NSInteger allNum;
  56. //@property (nonatomic, readwrite, assign) RQExerciseType exerciseType;
  57. + (id)exerciseModelWithRQYDTQuestionModel:(RQYDTQuestionModel *)ydtQuestionModel;
  58. @end
  59. NS_ASSUME_NONNULL_END