123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // RQExerciseToolBarItemViewModel.m
- // SDJK
- //
- // Created by 张嵘 on 2021/8/16.
- //
- #import "RQExerciseToolBarItemViewModel.h"
- @interface RQExerciseToolBarItemViewModel ()
- @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;
- @end
- @implementation RQExerciseToolBarItemViewModel
- - (instancetype)initWithRQExerciseModel:(RQExerciseModel *)exerciseModel
- homePageCarType:(RQHomePageCarType)homePageCarType
- homePageSubject:(RQHomePageSubjectType)homePageSubject
- readingQuestionsAndAnswerCommand:(RACCommand *)readingQuestionsAndAnswerCommand
- skillExplanationCommand:(RACCommand *)skillExplanationCommand {
- if (self = [super init]) {
- self.exerciseModel = exerciseModel;
- self.homePageCarType = homePageCarType;
- self.homePageSubjectType = homePageSubject;
- self.readingQuestionsAndAnswerCommand = readingQuestionsAndAnswerCommand;
- self.skillExplanationCommand = skillExplanationCommand;
- }
- return self;
- }
- - (NSString *)itemClassName {
- return @"RQExerciseToolBarCell";
- }
- @end
|