|
//
// topicListViewModel.h
// ThePaperHD
//
// Created by liyuan on 15/7/3.
// Copyright (c) 2015年 scar1900. All rights reserved.
//问吧列表的viewmodel
#import <Foundation/Foundation.h>
@protocol topicListViewDelegate <NSObject>
@optional
-(void) returnCategory:(NSMutableArray *)categoryList;//返回分类
-(void) returnAlldata:(NSMutableArray*) allDataList nextUrl:(NSString*) url;//返回所有话题列表
-(void) returnCateData:(NSMutableArray *)cateDataList nextUrl:(NSString*) url;//返回分类列表信息
-(void) returnNextUrlData:(NSMutableArray *)nextUrlData nextUrl:(NSString *)url;//返回下页数据
-(void) returnBannerData:(NSMutableArray *) bannerDataList;
- (void)startWaitWithViewModel;
- (void)stopWaitWithViewModel;
@end
@interface topicListViewModel : NSObject<RemoteDelegate>
@property(nonatomic, strong)NSDictionary *cateDic;//分类信息
@property(nonatomic, strong) NSString *nextUrl;
@property(nonatomic, strong) NSDictionary *dict;//分类传参
@property(nonatomic, strong) NSDictionary *firstDict;//精选传参
@property(nonatomic, strong)id<topicListViewDelegate> delegate;
@end
|