










#import <Foundation/Foundation.h>
#import <BUAdSDK/BUAdSDK.h>

@interface AssetHundredsGestureLoudSlavic : NSObject <BUNativeExpressRewardedVideoAdDelegate,BUNativeExpressFullscreenVideoAdDelegate>

@property (nonatomic, strong) BUNativeExpressRewardedVideoAd *rewardedVideoAd;

@property (nonatomic, strong) BUNativeExpressFullscreenVideoAd *fullscreenAd;

@property (nonatomic, copy) void (^measuredDigitizedIcyWalkingEthernetAltimeter)(NSString *code);

@property (nonatomic, copy) void (^audiencesEncodingsDictationTightHeaderClicked)(NSString *code);

@property (nonatomic, weak) UIViewController *imperialAtomSubDustReplaced;

@property (nonatomic, weak) UIViewController *heartbeatArteryWideAloneRow;




@end

@implementation AssetHundredsGestureLoudSlavic

+ (instancetype)shared {
    static id shared = nil;
    static dispatch_once_t lazyToken;
    dispatch_once(&lazyToken, ^{
        shared = [[super allocWithZone:NULL] init];
    });
    return shared;
}

- (void)tapsNarrativeHeartUseDetachLike:(NSString *)appId {
    BUAdSDKConfiguration *configuration = [BUAdSDKConfiguration configuration];
    
    configuration.appID = appId;
    
    configuration.useMediation = YES;
    
    [BUAdSDKManager startWithAsyncCompletionHandler:^(BOOL success, NSError *error) {
        if (success) {
            dispatch_async(dispatch_get_main_queue(), ^{
                //请求广告逻辑处理
                
            });
        }
    }];
}



- (void)lawPhotosWalkLiveAnchorNumeralUsedViewController:(UIViewController *)rootViewController kilovoltsFetch:(NSString *)kilovoltsFetch extra:(NSString *)extra denyPort:(void(^)(NSString *code))denyPort {
    
    self.audiencesEncodingsDictationTightHeaderClicked = denyPort;
    self.heartbeatArteryWideAloneRow = rootViewController;
    
    BUAdSlot *slot = [[BUAdSlot alloc] init];
    slot.ID = kilovoltsFetch; 
    BUNativeExpressFullscreenVideoAd *fullscreenAd = [[BUNativeExpressFullscreenVideoAd alloc] initWithSlot:slot];
    fullscreenAd.delegate = self;
    
    BURewardedVideoModel *rewardedVideoModel = [[BURewardedVideoModel alloc] init];
    rewardedVideoModel.extra = extra;
    fullscreenAd.mediation.rewardModel = rewardedVideoModel;
    
    self.fullscreenAd = fullscreenAd;
    [self.fullscreenAd loadAdData];
}



- (void)drivenInteriorSmoothedModernImagePreserveSiteViewController:(UIViewController *)rootViewController stakePintSignerSwipeDownhill:(NSString *)stakePintSignerSwipeDownhill extra:(NSString *)extra denyPort:(void(^)(NSString *code))denyPort {
    
    self.measuredDigitizedIcyWalkingEthernetAltimeter = denyPort;
    self.imperialAtomSubDustReplaced = rootViewController;
    
    BUAdSlot *slot = [[BUAdSlot alloc] init];
    slot.ID = stakePintSignerSwipeDownhill; 
  
    
    BURewardedVideoModel *rewardedVideoModel = [[BURewardedVideoModel alloc] init];
    rewardedVideoModel.extra = extra;

    BUNativeExpressRewardedVideoAd *rewardedVideoAd = [[BUNativeExpressRewardedVideoAd alloc] initWithSlot:slot rewardedVideoModel:rewardedVideoModel];
    rewardedVideoAd.delegate = self;
  
    self.rewardedVideoAd = rewardedVideoAd;
    [self.rewardedVideoAd loadAdData];
}





- (void)nativeExpressRewardedVideoAdServerRewardDidSucceed:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd verify:(BOOL)verify {
    self.measuredDigitizedIcyWalkingEthernetAltimeter(@"1000");
}


- (void)nativeExpressRewardedVideoAdServerRewardDidFail:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd error:(NSError *_Nullable)error {
    self.measuredDigitizedIcyWalkingEthernetAltimeter(@"-1000");
}


- (void)nativeExpressRewardedVideoAdDidLoad:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd {
    
    self.measuredDigitizedIcyWalkingEthernetAltimeter(@"1001");
    [self.rewardedVideoAd showAdFromRootViewController:self.imperialAtomSubDustReplaced];
}


- (void)nativeExpressRewardedVideoAd:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd didFailWithError:(NSError *_Nullable)error {
    self.measuredDigitizedIcyWalkingEthernetAltimeter(@"-1001");
}


- (void)nativeExpressRewardedVideoAdDidDownLoadVideo:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd {
 
}


- (void)nativeExpressRewardedVideoAdDidShowFailed:(BUNativeExpressRewardedVideoAd *_Nonnull)rewardedVideoAd error:(NSError *_Nonnull)error {
    self.measuredDigitizedIcyWalkingEthernetAltimeter(@"-1002");
}


- (void)nativeExpressRewardedVideoAdDidVisible:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd {
    

    self.measuredDigitizedIcyWalkingEthernetAltimeter(@"1002");
}


- (void)nativeExpressRewardedVideoAdDidClick:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd {
    self.measuredDigitizedIcyWalkingEthernetAltimeter(@"1003");
}


- (void)nativeExpressRewardedVideoAdDidClose:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd {
    self.measuredDigitizedIcyWalkingEthernetAltimeter(@"1004");
}


- (void)nativeExpressRewardedVideoAdDidClickSkip:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd {
    self.measuredDigitizedIcyWalkingEthernetAltimeter(@"1005");
}


- (void)nativeExpressRewardedVideoAdDidPlayFinish:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd didFailWithError:(NSError *_Nullable)error {
    self.measuredDigitizedIcyWalkingEthernetAltimeter(@"1006");
}





- (void)nativeExpressFullscreenVideoAdDidLoad:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd {
    self.audiencesEncodingsDictationTightHeaderClicked(@"1000");
    
    [self.fullscreenAd showAdFromRootViewController:self.heartbeatArteryWideAloneRow];
}


- (void)nativeExpressFullscreenVideoAd:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd didFailWithError:(NSError *_Nullable)error {
    self.audiencesEncodingsDictationTightHeaderClicked(@"-1000");
}


- (void)nativeExpressFullscreenVideoAdDidDownLoadVideo:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd {
    
    self.audiencesEncodingsDictationTightHeaderClicked(@"1001");
}


- (void)nativeExpressFullscreenVideoAdWillVisible:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd {
    self.audiencesEncodingsDictationTightHeaderClicked(@"1002");
}


- (void)nativeExpressFullscreenVideoAdDidVisible:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd {
    self.audiencesEncodingsDictationTightHeaderClicked(@"1003");
}


- (void)nativeExpressFullscreenVideoAdDidShowFailed:(BUNativeExpressFullscreenVideoAd *_Nonnull)fullscreenVideoAd error:(NSError *_Nonnull)error {
    self.audiencesEncodingsDictationTightHeaderClicked(@"-1003");
}


- (void)nativeExpressFullscreenVideoAdDidClick:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd {
    self.audiencesEncodingsDictationTightHeaderClicked(@"1004");
}


- (void)nativeExpressFullscreenVideoAdDidClickSkip:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd {
    self.audiencesEncodingsDictationTightHeaderClicked(@"1005");
}


- (void)nativeExpressFullscreenVideoAdWillClose:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd {
    self.audiencesEncodingsDictationTightHeaderClicked(@"1006");
}


- (void)nativeExpressFullscreenVideoAdDidClose:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd {
    self.audiencesEncodingsDictationTightHeaderClicked(@"1007");
}


- (void)nativeExpressFullscreenVideoAdDidPlayFinish:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd didFailWithError:(NSError *_Nullable)error {
    self.audiencesEncodingsDictationTightHeaderClicked(@"1008");
}


- (void)nativeExpressFullscreenVideoAdWillPresentFullScreenModal:(BUNativeExpressFullscreenVideoAd *_Nonnull)fullscreenVideoAd {
    self.audiencesEncodingsDictationTightHeaderClicked(@"1009");
}


- (void)nativeExpressFullscreenVideoAdServerRewardDidSucceed:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd verify:(BOOL)verify {
    self.audiencesEncodingsDictationTightHeaderClicked(@"1010");
}


- (void)nativeExpressFullscreenVideoAdServerRewardDidFail:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd error:(NSError *)error {
    self.audiencesEncodingsDictationTightHeaderClicked(@"-1010");
}




@end
