RQHomeSubPageVideoScrollSubViewModel.m 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. //
  2. // RQHomeSubPageVideoScrollSubViewModel.m
  3. // JSJP
  4. //
  5. // Created by 张嵘 on 2021/11/11.
  6. //
  7. #import "RQHomeSubPageVideoScrollSubViewModel.h"
  8. @interface RQHomeSubPageVideoScrollSubViewModel ()
  9. @property (nonatomic, readwrite, strong) RQTreeListModel *treeListModel;
  10. @property (nonatomic, readwrite, assign) NSInteger index;
  11. @property (nonatomic, readwrite, strong) NSIndexPath *indexPath;
  12. @property (nonatomic, readwrite, assign) RQHomePageSubjectType homePageSubjectType;
  13. @property (nonatomic, readwrite, strong) VideosItem *videosItem;
  14. @end
  15. @implementation RQHomeSubPageVideoScrollSubViewModel
  16. - (instancetype)initWithServices:(id<RQViewModelServices>)services params:(NSDictionary *)params {
  17. if (self = [super initWithServices:services params:params]) {
  18. self.treeListModel = params[RQViewModelUtilKey];
  19. self.index = [params[RQVideoItemIndexKey] integerValue];
  20. self.indexPath = params[RQVideoItemIndexPathKey];
  21. self.homePageSubjectType = [params[RQHomePageSubjectTypeKey] integerValue];
  22. self.videosItem = params[RQViewCommonValueKey];
  23. }
  24. return self;
  25. }
  26. @end