1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // RQExerciseExamToolBarItemViewModel.m
- // SDJK
- //
- // Created by 张嵘 on 2021/8/24.
- //
- #import "RQExerciseExamToolBarItemViewModel.h"
- @interface RQExerciseExamToolBarItemViewModel ()
- @property (nonatomic, readwrite, strong) RQExerciseModel *exerciseModel;
- /// homePageCarType
- @property (nonatomic, readwrite, assign) RQHomePageCarType homePageCarType;
- /// homePageSubjectType
- @property (nonatomic, readwrite, assign) RQHomePageSubjectType homePageSubjectType;
- /// readingQuestionsAndAnswerCommand
- @property (nonatomic, readwrite, strong) RACCommand *readingQuestionsAndAnswerCommand;
- /// skillExplanationCommand
- @property (nonatomic, readwrite, strong) RACCommand *skillExplanationCommand;
- /// lastQuestionCommand
- @property (nonatomic, readwrite, strong) RACCommand *lastQuestionCommand;
- /// nextQuestionCommand
- @property (nonatomic, readwrite, strong) RACCommand *nextQuestionCommand;
- /// showCatalogueCommand
- @property (nonatomic, readwrite, strong) RACCommand *showCatalogueCommand;
- @end
- @implementation RQExerciseExamToolBarItemViewModel
- - (instancetype)initWithRQExerciseModel:(RQExerciseModel *)exerciseModel
- homePageCarType:(RQHomePageCarType)homePageCarType
- homePageSubject:(RQHomePageSubjectType)homePageSubject
- readingQuestionsAndAnswerCommand:(RACCommand *)readingQuestionsAndAnswerCommand
- skillExplanationCommand:(RACCommand *)skillExplanationCommand
- lastQuestionCommand:(RACCommand *)lastQuestionCommand
- nextQuestionCommand:(RACCommand *)nextQuestionCommand
- showCatalogueCommand:(RACCommand *)showCatalogueCommand{
- if (self = [super init]) {
- self.exerciseModel = exerciseModel;
- self.homePageCarType = homePageCarType;
- self.homePageSubjectType = homePageSubject;
- self.readingQuestionsAndAnswerCommand = readingQuestionsAndAnswerCommand;
- self.skillExplanationCommand = skillExplanationCommand;
- self.lastQuestionCommand = lastQuestionCommand;
- self.nextQuestionCommand = nextQuestionCommand;
- self.showCatalogueCommand = showCatalogueCommand;
- }
- return self;
- }
- - (NSString *)itemClassName {
- return @"RQExerciseExamToolBarCell";
- }
- @end
|