// // RQYDTQuestionModule.h // jiaPei // // Created by 张嵘 on 2022/3/28. // Copyright © 2022 JCZ. All rights reserved. // #import typedef NS_ENUM(NSUInteger, RQQuestionUpdateViewType) { /// 默认 RQQuestionUpdateViewType_Default, /// 下载中 RQQuestionUpdateViewType_Request, /// 下载结束 RQQuestionUpdateViewType_Complete, /// 题库下载 RQQuestionUpdateViewType_LibDownload, /// 解释下载 RQQuestionUpdateViewType_ExplainDownload, /// 解释下载中 RQQuestionUpdateViewType_ExplainDownloading, /// 解释下载中 RQQuestionUpdateViewType_ExplainDownloaded, }; #pragma mark - Model #import "RQYDTExamRuleModel.h" #import "RQYDTQuestionModel.h" #import "RQYDTPointModel.h" #import "RQHTTPService+RQGetChapterList.h" #import "RQHTTPService+RQGetUpdateQuestion.h" #pragma mark - ViewModel #pragma mark - View #import "RQUpdateView.h" #pragma mark - Module #import "RQExerciseModule.h" #import "RQYDTUserQuestionModule.h" #import "RQYDTJSQuestionModule.h" #import "YNYDTJQQuestionModule.h" /// RQCarTypeChangeNotification FOUNDATION_EXTERN NSString * const RQCarTypeChangeNotification; #define RQ_YDTQuestion_Module [RQYDTQuestionModule sharedInstance] NS_ASSUME_NONNULL_BEGIN @interface RQYDTQuestionModule : NSObject @property (nonatomic, readwrite, assign) RQHomePageCarType carType; @property (nonatomic, readwrite, copy) NSString *carTypeStr; @property (nonatomic, readwrite, assign) RQHomePageSubjectType subject; @property (nonatomic, readwrite, copy) NSString *subjectStr; /**用户题库类型。数据库要用的。 */ @property (nonatomic, readwrite, copy) NSString *car_type; /**是否资格证 */ @property (nonatomic, readwrite, copy) NSString *isZhiGeZheng; /**科目一的顺序练习题号 */ @property (nonatomic, readwrite, copy) NSString *userSubj1Index; /**科目四的顺序练习题号 */ @property (nonatomic, readwrite, copy) NSString *userSubj4Index; /**科目一的背题题号 */ @property (nonatomic, readwrite, copy) NSString *user1Index; /**科目四的背题题号 */ @property (nonatomic, readwrite, copy) NSString *user4Index; /** * 下面全是对题号的记录 客车 货车 摩托车 教练 货运 客运 危险品 出租车 */ @property (nonatomic, readwrite, copy) NSString *A2Subj1Index; @property (nonatomic, readwrite, copy) NSString *A2Subj4Index; @property (nonatomic, readwrite, copy) NSString *A1Subj1Index; @property (nonatomic, readwrite, copy) NSString *A1Subj4Index; @property (nonatomic, readwrite, copy) NSString *DSubj1Index; @property (nonatomic, readwrite, copy) NSString *DSubj4Index; @property (nonatomic, readwrite, copy) NSString *coachIndex; @property (nonatomic, readwrite, copy) NSString *A1Index; @property (nonatomic, readwrite, copy) NSString *A2Index; @property (nonatomic, readwrite, copy) NSString *dangerIndex; @property (nonatomic, readwrite, copy) NSString *texiIndex; @property (nonatomic, readwrite, copy) NSString *wycIndex; /// 科目一顺序练习 @property (nonatomic, readonly, copy) NSArray *subjectOneArr; /// 科目四顺序练习 @property (nonatomic, readonly, copy) NSArray *subjectFourArr; /// 单例 + (instancetype) sharedInstance; /// 更新题库 - (void)rq_updateQuestion; - (NSInteger)getQuestionVersion; - (void)saveQuestionsWithSubjectOneArr:(NSArray *)subjectOneArr; - (void)saveQuestionsWithSubjectFourArr:(NSArray *)subjectFourArr; - (RQHomePageSubjectType)getSubjectWithSubjectName:(NSString *)subjectName; - (NSString *)getSubjectNameWithSubject:(RQHomePageSubjectType)subject; - (NSString *)getCarTypeCNNameWithCarType:(RQHomePageCarType)carType; - (NSString *)getCar_TypeNameWithCarType:(RQHomePageCarType)carType; - (NSString *)getCarTypeExamNameWithCarType:(RQHomePageCarType)carType; - (NSString *)getCarTypeCNTiKuUpdateNameWithCarType:(RQHomePageCarType)carType; - (RQHomePageCarType)getCarTypeWithCarTypeName:(NSString *)carTypeName; - (NSArray *)getQuestionWithExerciseType:(RQExerciseType)exerciseType; - (NSArray *)getQuestionWithSubject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType; - (NSArray *)getQuestionWithSubject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType isNeedMediaData:(BOOL)isNeedMediaData; - (NSInteger)getQuestionNumWithWithSubject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType; /// 章节练习 - (NSArray *)getChapterArr; - (NSArray *)getChapterQuestionWithChapterName:(NSString *)chapterName; - (NSArray *)getChapterQuestionWithChapterName:(NSString *)chapterName exerciseType:(RQExerciseType)exerciseType; /// 强化练习(考点) - (NSArray *)getPoint; - (NSArray *)getPointQuestionWithPointID:(NSInteger)pointId; - (NSArray *)getPointQuestionWithPointID:(NSInteger)pointId exerciseType:(RQExerciseType)exerciseType; - (BOOL)isNewRuleQuestionWithQuestionId:(NSInteger)questionId; - (NSData *)getMediaDataWithMediaName:(NSString *)mediaName; /// 做到哪一题 - (NSInteger)getHistoryQuestionNum; - (void)saveHistoryQuestionNumWithQuestionId:(NSInteger)questionId; @end NS_ASSUME_NONNULL_END