RQExerciseModel.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. @property (nonatomic, readwrite, copy) NSString *userAnswerStr;
  29. /**
  30. * 用户(背题)-选项
  31. */
  32. @property (nonatomic, readwrite, copy) NSArray *userAnswerRecitation;
  33. /**
  34. * 是否收藏0收藏1否
  35. */
  36. @property (nonatomic, readwrite, assign) NSInteger is_favorite;
  37. /**
  38. * 是否为当前题
  39. */
  40. @property (nonatomic, readwrite, assign) BOOL isCurrent;
  41. /**
  42. * 是否显示过技巧讲解
  43. */
  44. @property (nonatomic, readwrite, assign) BOOL isShowSkillExplanation;
  45. /**
  46. * 是否是本地练习
  47. */
  48. @property (nonatomic, readwrite, assign) BOOL isLocalityLX;
  49. /**
  50. * Cell样式
  51. */
  52. @property (nonatomic, readwrite, assign) RQExerciseOptionItemType exerciseOptionItemType;
  53. /**
  54. * 题目顺序
  55. */
  56. //@property (nonatomic, readwrite, assign) NSInteger num;
  57. /**
  58. * 题目数量
  59. */
  60. @property (nonatomic, readwrite, assign) NSInteger allNum;
  61. //@property (nonatomic, readwrite, assign) RQExerciseType exerciseType;
  62. + (id)exerciseModelWithRQYDTQuestionModel:(RQYDTQuestionModel *)ydtQuestionModel;
  63. @end
  64. NS_ASSUME_NONNULL_END