RQMainTabBarViewModel.m 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // RQMainTabBarViewModel.m
  3. // RQCommon
  4. //
  5. // Created by 张嵘 on 2018/11/21.
  6. // Copyright © 2018 张嵘. All rights reserved.
  7. // 主界面的视图的视图模型
  8. #import "RQMainTabBarViewModel.h"
  9. @interface RQMainTabBarViewModel ()
  10. /// The view model of `HomePage` interface.
  11. @property (nonatomic, strong, readwrite) RQHomePageViewModel *homePageViewModel;
  12. /// The view model of `secondPage` interface.
  13. @property (nonatomic, strong, readwrite) RQSecondPageViewModel *secondPageViewModel;
  14. /// The view model of `thirdPage` interface.
  15. @property (nonatomic, strong, readwrite) RQThirdPageViewModel *thirdPageViewModel;
  16. /// The view model of `fourthPage` interface.
  17. @property (nonatomic, strong, readwrite) RQFourthPageViewModel *fourthPageViewModel;
  18. @end
  19. @implementation RQMainTabBarViewModel
  20. - (void)initialize {
  21. [super initialize];
  22. self.homePageViewModel = [[RQHomePageViewModel alloc] initWithServices:self.services params:nil];
  23. self.secondPageViewModel = [[RQSecondPageViewModel alloc] initWithServices:self.services params:nil];
  24. self.thirdPageViewModel = [[RQThirdPageViewModel alloc] initWithServices:self.services params:nil];
  25. self.fourthPageViewModel = [[RQFourthPageViewModel alloc] initWithServices:self.services params:nil];
  26. }
  27. @end