|
//
// liveViewModel.h
// ThePaperHD
//
// Created by scar1900 on 15/7/2.
// Copyright (c) 2015年 scar1900. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol liveViewModelDelegate <NSObject>
@optional
- (void)getLiveDetailPageData:(liveDetailPageVO*)pageBO; //获取直播详情数据
- (void)getLiveInfo:(liveInfoBO*)infoBO;
- (void)returnMoreInfoData:(id)responseData; //返回加载更多数据
//评论数据
- (void)returnCommentList:(NSMutableArray*)commentArray
nodeId:(NSString*)nodeId
nextUrl:(NSString*)nextUrl
commentTotalRecord:(NSInteger)recordTotal;
//热问答数据
- (void)returnHotAskDic:(NSMutableDictionary*)qaDic
nodeId:(NSString*)nodeId
nextUrl:(NSString*)nextUrl
askTotalRecord:(NSInteger)recordTotal;
//隐藏状态栏
-(void) hiddenStatusBar:(BOOL) hidden;
- (void)contentHaveOffline; //文章已下线
- (void)remoteFail; //网络出错
@end
@interface liveViewModel : NSObject
@property(nonatomic, strong)NSString *nodeId;
@property(nonatomic, weak)id<liveViewModelDelegate> delegate;
- (void)remoteAction;//网络请求
- (void)remotePullMethod; //上拉刷新
- (void)remotePullLoadMethod:(NSString*)nextUrl; //下拉加载数据
//获取table页面数据源
- (void)getTableDataSourceWithLivePageData:(liveDetailPageVO*)pageBO
completion:(void (^)(NSMutableArray* dataSource,
NSMutableArray *sectionTitleList,
NSMutableArray *heightList,
NSString *nextUrl))completion;
//添加视频
- (void)adVideoInView:(UIView*)view
videoFrame:(CGRect)videoFrame
videoData:(videoObjectBO*)videoBO;
//处理加载更多数据
- (void)getMoreFootData:(NSMutableArray *)sourceList
responseData:(id)responsData
heightList:(NSMutableArray*)heightList
titleList:(NSMutableArray*)titleList
completion:(void (^)(NSMutableArray* dataSource,
NSMutableArray *sectionTitleList,
NSMutableArray *heightList,
NSString *nextUrl))completion;
- (void)stopAndRemoveVideo;
- (CGFloat)returnContentExtendHeight:(NSString*)str;
@end
|