RQYDTKCQuestionModule.h 1.2 KB

123456789101112131415161718192021222324252627282930
  1. //
  2. // RQYDTKCQuestionModule.h
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/4/6.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "RQExerciseModule.h"
  10. #define RQ_YDT_KC_Question_Module [RQYDTKCQuestionModule sharedInstance]
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface RQYDTKCQuestionModule : NSObject
  13. /// 单例
  14. + (instancetype) sharedInstance;
  15. - (void)initDatabaseQueueWithResourcePath:(NSString *)resourcePath;
  16. - (NSInteger)getQuestionVersion;
  17. - (NSArray *)getQuestionWithSubject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType;
  18. - (NSArray *)getQuestionWithSubject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType isNeedMediaData:(BOOL)isNeedMediaData;
  19. - (NSArray *)getChapter;
  20. - (NSArray *)getChapterQuestionWithChapterName:(NSString *)chapterName;
  21. - (NSArray *)getPoint;
  22. - (NSArray *)getPointQuestionWithPointId:(NSInteger)pointId;
  23. - (BOOL)isNewRuleQuestionWithQuestionId:(NSInteger)questionId;
  24. - (NSData *)getMediaDataWithMediaName:(NSString *)mediaName;
  25. - (NSInteger)getQuestionNumWithWithSubject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType;
  26. @end
  27. NS_ASSUME_NONNULL_END