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

#import <UIKit/UIKit.h>
#import "TTNewsListModel.h"
#import "TTNewsDetailCfg.h"

typedef void(^TTNewsDetailSuccessBlock)(NSString *success);
typedef void(^TTNewsDetailFailBlock)(NSString *fail);

@interface TTNewsDetailView : UIView
@property (nonatomic, assign) id delegate;

- (instancetype)initWithFrame:(CGRect)frame withSpecailNewsDetailCfg:(TTNewsDetailCfg *)newsDetailCfg withNewsListModel:(TTNewsListModel *)model withSuccess:(TTNewsDetailSuccessBlock)successBlock withFail:(TTNewsDetailFailBlock)failBlock;
@end

@protocol TTNewsDetailViewDelegate <NSObject>

- (void)TTNewsDetailView:(TTNewsDetailView *)newsDetailView CellClickWithNewsListModel:(id)newsListModel withNewsListCellType:(TTNewsListViewCellPushViewType)pushViewType;

@end
