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

#import <UIKit/UIKit.h>
#import "TTNewscfg.h"
#import "DFTTNS_ENUM.h"
#import "TTSortScrollTitleModel.h"

typedef void(^TTAtlasViewSuccessBlock)(NSString *success);
typedef void(^TTAtlasViewFailBlock)(NSString *fail);

@interface TTAtlasView : UIView
@property (nonatomic, assign) BOOL isAlloc;
@property (nonatomic, assign) id delegate;
@property (nonatomic, strong) TTSortScrollTitleModel *sortModel;

- (void)setFrame:(CGRect)frame withNewsType:(TTNewscfg *)newscfg withSuccessBlock:(TTAtlasViewSuccessBlock)successBlock withFailBlock:(TTAtlasViewFailBlock)failBlock;
@end


@protocol TTAtlasViewDelegate <NSObject>

@optional
/** 新闻列表点击代理回调 */
- (void)TTAtlasView:(TTAtlasView *)newsView CellClickWithNewsListModel:(id)newsListModel withNewsListCellType:(TTNewsListViewCellPushViewType)pushViewType;
/** 返回按钮点击 */
- (void)TTAtlasViewBackBtnClick:(TTAtlasView *)newsView;
/** 执行返回顶部方法回调 */
- (void)TTAtlasViewBackToTop:(TTAtlasView *)newsView;
@end
