//
//  FindTableTopCell.h
//  Open
//
//  Created by 雷俊博 on 2020/6/1.
//  Copyright © 2020 黄江涛 . All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LineProcessView.h"
#import "DHCWNativeAdView.h"
#import "KKRedPackageClickEventModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, FindTableTopCellType) {
    FindTableTopCellTypeInterface, //接口返回
    FindTableTopCellTypeCoins, //我的金币
    FindTableTopCellTypeHuaFees, //优惠充值
    FindTableTopCellTypeDraw, //金币抽奖
    FindTableTopCellTypePrize, //我的奖品
    FindTableTopCellTypeCoinCenter, //金币中心
    FindTableTopCellTypeInvite, //邀请好友
    FindTableTopCellTypeExpress, //快递查询
    FindTableTopCellTypeInterrogation, //平价药房
    FindTableTopCellTypeCalendar, //万年历
    FindTableTopCellTypeWeather, // 天气
    FindTableTopCellTypePhotostudio, // AI照相馆
    FindTableTopCellTypeRegister, //医院挂号
    FindTableTopCellTypePackage,//悬浮红包
    FindTableTopCellTypeBall, //获取计步数
    FindTableTopCellTypeTrain, //火车票
    FindTableTopCellTypeTravel, //周边游
    FindTableTopCellTypeMore, //更多功能
    FindTableTopCellTypeFreeMedical,//极速义诊
    FindTableTopCellTypeYaoFang,//广场舞
    FindTableTopCellTypeUNKnow //未识别
};

@protocol FindTableTopCellDelegate <NSObject>

- (void)TopCellClickWithType:(FindTableTopCellType)type;
- (void)TopCellClickWithModel:(KKRedPackageClickEventModel *)model;
@end

@interface FindTableTopCell : UITableViewCell

@property (nonatomic, assign)BOOL btnHidden;

@property (nonatomic, strong)UILabel* lb_count;

@property (nonatomic, strong)LineProcessView* progressView;

@property (nonatomic, weak)id<FindTableTopCellDelegate>delegate;

@property (nonatomic, strong)UICollectionView*top2CollectionView;

@property (nonatomic, strong)DHCWNativeAdDataObject *model;

@property (nonatomic, weak)id<DHCWNativeAdViewDelegate>dhcDelegate;

@property (nonatomic, weak)id<DHCWNativeLocaVideoAdDelegate>dhcLocaDelegate;


@property (nonatomic, strong)UIViewController *rootViewController;

- (void)setupCellWithModel:(DHCWNativeAdDataObject *)model
                  delegate:(id<DHCWNativeAdViewDelegate>)delegate loca:(id<DHCWNativeLocaVideoAdDelegate>)localDelegate
        rootViewController:(UIViewController *)rootViewController;

//刷新数据
- (void)refreshDataWithArray1:(NSArray *)model1Array andArray2:(NSArray *)model2Array;

@end

NS_ASSUME_NONNULL_END
