











#import <Foundation/Foundation.h>

#import <ShareSDK/ShareSDK.h>
#import <MOBFoundation/MobSDK+Privacy.h>
#import <ShareSDKUI/ShareSDK+SSUI.h>

#import <TapTapCoreSDK/TapTapSDK.h>
#import <TapTapShareSDK/TapTapShareSDK-Swift.h>

static void(^shareCallback)(BOOL result, NSString *critical);

@interface WarningHeadlineEraserClinicalChallengeHistory : NSObject

@end

@implementation WarningHeadlineEraserClinicalChallengeHistory


+ (void)kilogramAdjectiveParagraphMemoryVirtualHasRareKey:(NSString *)mobAppKey
                             binWasEnergy:(NSString *)binWasEnergy
                              bundlePaste:(NSString *)bundlePaste
                          behaveStartedAwayTenDescender:(NSString *)behaveStartedAwayTenDescender
                      bitThinResizingSamplesIssue:(NSString *)bitThinResizingSamplesIssue
                                  faxBeat:(NSString *)faxBeat
                                 cyrillic:(NSString *)cyrillic
                          scriptStepCorruptFlatAudited:(NSString *)scriptStepCorruptFlatAudited
                                 shakeKey:(NSString *)shakeKey
                              busZoneLift:(NSString *)busZoneLift
                           feetDidForFood:(NSString *)feetDidForFood
                        eyeHitActualToken:(NSString *)eyeHitActualToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:binWasEnergy];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL success) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *vortexBinRegister) {
        
        //微信
        if (bundlePaste && behaveStartedAwayTenDescender && bundlePaste.length>0 && behaveStartedAwayTenDescender.length > 0) {
            [vortexBinRegister setupWeChatWithAppId:bundlePaste appSecret:behaveStartedAwayTenDescender universalLink:bitThinResizingSamplesIssue];
        }
        
        //QQ
        if (faxBeat && cyrillic && faxBeat.length>0 && cyrillic.length > 0) {
            [vortexBinRegister setupQQWithAppId:faxBeat appkey:cyrillic enableUniversalLink:NO universalLink:scriptStepCorruptFlatAudited];
        }
        
        //抖音
        if (shakeKey && busZoneLift && shakeKey.length>0 && busZoneLift.length > 0) {
            [vortexBinRegister setupDouyinByAppKey:shakeKey appSecret:busZoneLift];
        }
    }];
    
    
    
    if (feetDidForFood && eyeHitActualToken && feetDidForFood.length>0 && eyeHitActualToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = feetDidForFood; 
        options.clientToken = eyeHitActualToken; 
        options.region = TapTapRegionTypeCN; 
        options.fourBreak = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)keepFlowDanishType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              mostIncrease:(NSString *)mostIncrease
                manSpecify:(NSString *)manSpecify
              cousinImages:(NSArray *)cousinImages
                   license:(NSString *)license
                   andSolo:(NSString *)andSolo
                  callback:(void(^)(BOOL result,NSString *critical))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self conflictsAir:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self conflictsAir:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self conflictsAir:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self conflictsAir:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self conflictsAir:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self featuresReportedIcyArgumentsRearFetch:title contents:text mostIncrease:mostIncrease manSpecify:manSpecify cousinImages:cousinImages license:license andSolo:andSolo];
            break;
        default:
            break;
    }
}




+ (void)conflictsAir:(SSDKPlatformType)platformType
               title:(NSString *)title
              text:(NSString *)text
            images:(id)images
               url:(NSURL *)url
              type:(SSDKContentType)type {
    
    

    

    

    

    

    
    NSMutableDictionary *flushTryCat = [NSMutableDictionary dictionary];
    [flushTryCat SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:flushTryCat onStateChanged:^(SSDKResponseState state, NSDictionary *userData, SSDKContentEntity *contentEntity, NSError *error) {
        
        switch (state) {
            case SSDKResponseStateSuccess:
                if (shareCallback)shareCallback(YES,@"");
                break;
            case SSDKResponseStateFail:
                if (shareCallback)shareCallback(NO,error.localizedDescription);
                break;
            case SSDKResponseStateCancel:
                if (shareCallback)shareCallback(NO,@"cancel");
                break;
            case SSDKResponseStatePlatformCancel:
                if (shareCallback)shareCallback(NO,@"cancel");
                break;
            default:
                break;
        }
    }];
}



+ (void)featuresReportedIcyArgumentsRearFetch:(NSString *)title
                            contents:(NSString *)contents
                        mostIncrease:(NSString *)mostIncrease
                          manSpecify:(NSString *)manSpecify
                        cousinImages:(NSArray *)cousinImages
                             license:(NSString *)license
                             andSolo:(NSString *)andSolo {
    
    






    
    
    
    TapTapShareObj *odd = [[TapTapShareObj alloc] initWithTitle:title contents:contents mostIncrease:mostIncrease manSpecify:manSpecify cousinImages:cousinImages license:license andSolo:andSolo];
    [TapTapShare share:odd completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
