12345678910111213141516171819202122232425262728293031 |
- //
- // RQHomeSubPageVideoScrollSubViewModel.m
- // JSJP
- //
- // Created by 张嵘 on 2021/11/11.
- //
- #import "RQHomeSubPageVideoScrollSubViewModel.h"
- @interface RQHomeSubPageVideoScrollSubViewModel ()
- @property (nonatomic, readwrite, strong) RQTreeListModel *treeListModel;
- @property (nonatomic, readwrite, assign) NSInteger index;
- @property (nonatomic, readwrite, strong) NSIndexPath *indexPath;
- @property (nonatomic, readwrite, assign) RQHomePageSubjectType homePageSubjectType;
- @property (nonatomic, readwrite, strong) VideosItem *videosItem;
- @end
- @implementation RQHomeSubPageVideoScrollSubViewModel
- - (instancetype)initWithServices:(id<RQViewModelServices>)services params:(NSDictionary *)params {
- if (self = [super initWithServices:services params:params]) {
- self.treeListModel = params[RQViewModelUtilKey];
- self.index = [params[RQVideoItemIndexKey] integerValue];
- self.indexPath = params[RQVideoItemIndexPathKey];
- self.homePageSubjectType = [params[RQHomePageSubjectTypeKey] integerValue];
- self.videosItem = params[RQViewCommonValueKey];
- }
- return self;
- }
- @end
|