RQExerciseExamToolBarItemViewModel.m 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // RQExerciseExamToolBarItemViewModel.m
  3. // SDJK
  4. //
  5. // Created by 张嵘 on 2021/8/24.
  6. //
  7. #import "RQExerciseExamToolBarItemViewModel.h"
  8. @interface RQExerciseExamToolBarItemViewModel ()
  9. @property (nonatomic, readwrite, strong) RQExerciseModel *exerciseModel;
  10. /// homePageCarType
  11. @property (nonatomic, readwrite, assign) RQHomePageCarType homePageCarType;
  12. /// homePageSubjectType
  13. @property (nonatomic, readwrite, assign) RQHomePageSubjectType homePageSubjectType;
  14. /// readingQuestionsAndAnswerCommand
  15. @property (nonatomic, readwrite, strong) RACCommand *readingQuestionsAndAnswerCommand;
  16. /// skillExplanationCommand
  17. @property (nonatomic, readwrite, strong) RACCommand *skillExplanationCommand;
  18. /// lastQuestionCommand
  19. @property (nonatomic, readwrite, strong) RACCommand *lastQuestionCommand;
  20. /// nextQuestionCommand
  21. @property (nonatomic, readwrite, strong) RACCommand *nextQuestionCommand;
  22. /// showCatalogueCommand
  23. @property (nonatomic, readwrite, strong) RACCommand *showCatalogueCommand;
  24. @end
  25. @implementation RQExerciseExamToolBarItemViewModel
  26. - (instancetype)initWithRQExerciseModel:(RQExerciseModel *)exerciseModel
  27. homePageCarType:(RQHomePageCarType)homePageCarType
  28. homePageSubject:(RQHomePageSubjectType)homePageSubject
  29. readingQuestionsAndAnswerCommand:(RACCommand *)readingQuestionsAndAnswerCommand
  30. skillExplanationCommand:(RACCommand *)skillExplanationCommand
  31. lastQuestionCommand:(RACCommand *)lastQuestionCommand
  32. nextQuestionCommand:(RACCommand *)nextQuestionCommand
  33. showCatalogueCommand:(RACCommand *)showCatalogueCommand{
  34. if (self = [super init]) {
  35. self.exerciseModel = exerciseModel;
  36. self.homePageCarType = homePageCarType;
  37. self.homePageSubjectType = homePageSubject;
  38. self.readingQuestionsAndAnswerCommand = readingQuestionsAndAnswerCommand;
  39. self.skillExplanationCommand = skillExplanationCommand;
  40. self.lastQuestionCommand = lastQuestionCommand;
  41. self.nextQuestionCommand = nextQuestionCommand;
  42. self.showCatalogueCommand = showCatalogueCommand;
  43. }
  44. return self;
  45. }
  46. - (NSString *)itemClassName {
  47. return @"RQExerciseExamToolBarCell";
  48. }
  49. @end