RQMainTabBarViewModel.m 1.4 KB

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