// // RQHomeSubPageListItemViewModel.m // SDJK // // Created by 张嵘 on 2021/8/4. // #import "RQHomeSubPageListItemViewModel.h" @interface RQHomeSubPageListItemViewModel () /// closeCommand @property (nonatomic, readwrite, strong) RACCommand *gotoLocalTopicsCommand; @end @implementation RQHomeSubPageListItemViewModel - (instancetype)init { self = [super init]; if (self) { [self initialize]; } return self; } - (void)initialize { self.gotoLocalTopicsCommand = [[RACCommand alloc] initWithSignalBlock:^RACSignal *(id input) { RQHomeSubPageLocalTopicListViewModel *homeSubPageLocalTopicListViewModel = [[RQHomeSubPageLocalTopicListViewModel alloc] initWithServices:RQSharedAppDelegate.services params:@{ RQHomePageCarTypeKey : @(self.homePageCarType), RQHomePageSubjectTypeKey : @(self.homePageSubjectType), RQHomeSubPageTypeKey : @(RQHomeSubPageType_LocalTopics)}]; [RQSharedAppDelegate.services pushViewModel:homeSubPageLocalTopicListViewModel animated:YES]; return [RACSignal empty]; }]; } @end