//
//  HomeCollectionItem2Cell.h
//  Open
//
//  Created by 雷俊博 on 2020/8/4.
//  Copyright © 2020 黄江涛 . All rights reserved.
//

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

NS_ASSUME_NONNULL_BEGIN

@interface NativeAdCustomView : DHCWNativeAdView

@property (nonatomic, strong) UIButton *clickButton;
- (void)setupWithModel:(DHCWNativeAdDataObject *)model;

@end

@interface HomeCollectionItem2Cell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *lb_title;
@property (weak, nonatomic) IBOutlet UIImageView *imgGif;
@property (weak, nonatomic) IBOutlet UIImageView *imgGif2;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgGifWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgGifHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgGif2Width;

@property (nonatomic, strong) NativeAdCustomView *adView;
/**
    本地视频播放配置对象
 */
@property(nonatomic,strong)DHCWNativeLocalVideoAd *localVideoAd;

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

+ (CGFloat)cellHeightForModel:(DHCWNativeAdDataObject *)model;



@end

NS_ASSUME_NONNULL_END
