RQMainTabBarViewModel.m 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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 `MainFrame` interface.
  11. @property (nonatomic, strong, readwrite) RQHomePageViewModel *homePageViewModel;
  12. /// The view model of `Time` interface.
  13. @property (nonatomic, strong, readwrite) RQTimeViewModel *timeViewModel;
  14. /// The view model of `Discover` interface.
  15. @property (nonatomic, strong, readwrite) RQDiscoverViewModel *discoverViewModel;
  16. /// The view model of `Profile` interface.
  17. @property (nonatomic, strong, readwrite) RQProfileViewModel *profileViewModel;
  18. @end
  19. @implementation RQMainTabBarViewModel
  20. - (void)initialize {
  21. [super initialize];
  22. self.homePageViewModel = [[RQHomePageViewModel alloc] initWithServices:self.services params:nil];
  23. self.timeViewModel = [[RQTimeViewModel alloc] initWithServices:self.services params:nil];
  24. self.discoverViewModel = [[RQDiscoverViewModel alloc] initWithServices:self.services params:nil];
  25. self.profileViewModel = [[RQProfileViewModel alloc] initWithServices:self.services params:nil];
  26. }
  27. @end