123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- //
- // RQExerciseModel.h
- // JSJP
- //
- // Created by 张嵘 on 2021/8/12.
- //
- #import "RQBaseModel.h"
- typedef NS_ENUM(NSInteger, RQExerciseOptionItemType) {
- RQExerciseOptionItemType_Default, /// 默认样式:左边选项文本为ABCD 文本色为黑色 背景色为白色 右边文本为黑色
- RQExerciseOptionItemType_Correct_CorrectOption, /// 单选/判断/多选 答对了正确选项 样式:左边选项文本为空 为正确图片 文本色为白色 背景色为绿色 右边文本为绿色
- RQExerciseOptionItemType_Error_CorrectOption, /// 单选/判断/多选 答错了正确选项 样式:左边选项文本为ABCD 文本色为白色 背景色为绿色 右边文本为绿色
- RQExerciseOptionItemType_Correct_ErrorOption, /// 单选/判断 答对了错误选项 样式:左边选项文本为ABCD 文本色为白色 背景色为红色 右边文本为红色
- RQExerciseOptionItemType_Error_ErrorOption, /// 单选/判断/多选 答错了错误选项 样式:左边选项文本为空 为错误图片 文本色为白色 背景色为红色 右边文本为红色
- RQExerciseOptionItemType_Multiple_Primary, /// 多选 未确认预选 样式:左边选项文本为ABCD 文本色为白色 背景色为蓝色 右边文本为蓝色
- };
- NS_ASSUME_NONNULL_BEGIN
- @interface RQExerciseModel : RQBaseModel
- /// 题目
- @property (nonatomic, readwrite, strong) RQYDTQuestionModel *ydtQuestionModel;
- /**
- * 答对答错或没做 0没做 1答对 2答错
- */
- @property (nonatomic, readwrite, assign) RQAnswerResultsType answerResultsType;
- /**
- * 用户选项
- */
- @property (nonatomic, readwrite, copy) NSArray *userAnswer;
- /**
- * 是否收藏0收藏1否
- */
- @property (nonatomic, readwrite, assign) NSInteger is_favorite;
- /**
- * 是否为当前题
- */
- @property (nonatomic, readwrite, assign) BOOL isCurrent;
- /**
- * 是否显示过技巧讲解
- */
- @property (nonatomic, readwrite, assign) BOOL isShowSkillExplanation;
- /**
- * 是否是本地练习
- */
- @property (nonatomic, readwrite, assign) BOOL isLocalityLX;
- /**
- * Cell样式
- */
- @property (nonatomic, readwrite, assign) RQExerciseOptionItemType exerciseOptionItemType;
- /**
- * 题目顺序
- */
- //@property (nonatomic, readwrite, assign) NSInteger num;
- /**
- * 题目数量
- */
- @property (nonatomic, readwrite, assign) NSInteger allNum;
- //@property (nonatomic, readwrite, assign) RQExerciseType exerciseType;
- + (id)exerciseModelWithRQYDTQuestionModel:(RQYDTQuestionModel *)ydtQuestionModel;
- @end
- NS_ASSUME_NONNULL_END
|