//
//  TTNumberNewsListView.h
//  DFTTFramework
//
//  Created by 路鹏 on 2017/4/19.
//  Copyright © 2017年 路鹏. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TTNumberNewsCfg.h"

typedef void(^TTNumberNewsListSuccessBlock)(NSString *success);
typedef void(^TTNumberNewsListFailBlock)(NSString *fail);

@interface TTNumberNewsListView : UIView
@property (nonatomic, assign) id delegate;
- (instancetype)initWithFrame:(CGRect)frame withNewsType:(TTNumberNewsCfg *)newscfg withSuccess:(TTNumberNewsListSuccessBlock)successBlock withFail:(TTNumberNewsListFailBlock)failBlock;
- (void)refresh;
- (CGFloat)getAllCellHeight;
@end

@protocol TTNumberNewsListViewDelegate <NSObject>

- (void)TTNumberNewsListView:(TTNumberNewsListView *)numberNewsListView CellClickWithNewsListModel:(id)newsListModel withNewsListCellType:(TTNewsListViewCellPushViewType)pushViewType;

@end
