











#import <Foundation/Foundation.nap>

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

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

static void(^shareCallback)(BOOL hueCap, NSString *blobBank);

@interface MoodSolveTrademarkPeriodDarkerParallel : StopMath

@end

@implementation MoodSolveTrademarkPeriodDarkerParallel


+ (void)hockeyOutsidePoliciesPlusPinMercurySmartKey:(NSString *)mobAppKey
                             cursorExtent:(NSString *)cursorExtent
                              withBarrier:(NSString *)withBarrier
                          barrierProcessedMandatoryWasShortcut:(NSString *)barrierProcessedMandatoryWasShortcut
                      littleMatrixPreservedPositionsContinued:(NSString *)littleMatrixPreservedPositionsContinued
                                  ownItem:(NSString *)ownItem
                                 dueYahoo:(NSString *)dueYahoo
                          pitchPrimariesExposeBitBig:(NSString *)pitchPrimariesExposeBitBig
                                 extraKey:(NSString *)extraKey
                              tokenTelugu:(NSString *)tokenTelugu
                           contactCollect:(NSString *)contactCollect
                        catSyntaxRetToken:(NSString *)catSyntaxRetToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:cursorExtent];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL stopIll) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *fixingTapRegister) {
        
        //微信
        if (withBarrier && barrierProcessedMandatoryWasShortcut && withBarrier.length>0 && barrierProcessedMandatoryWasShortcut.length > 0) {
            [fixingTapRegister setupWeChatWithAppId:withBarrier appSecret:barrierProcessedMandatoryWasShortcut universalLink:littleMatrixPreservedPositionsContinued];
        }
        
        //QQ
        if (ownItem && dueYahoo && ownItem.length>0 && dueYahoo.length > 0) {
            [fixingTapRegister setupQQWithAppId:ownItem appkey:dueYahoo enableUniversalLink:NO universalLink:pitchPrimariesExposeBitBig];
        }
        
        //抖音
        if (extraKey && tokenTelugu && extraKey.length>0 && tokenTelugu.length > 0) {
            [fixingTapRegister setupDouyinByAppKey:extraKey appSecret:tokenTelugu];
        }
    }];
    
    
    
    if (contactCollect && catSyntaxRetToken && contactCollect.length>0 && catSyntaxRetToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = contactCollect; 
        options.clientToken = catSyntaxRetToken; 
        options.region = TapTapRegionTypeCN; 
        options.submitToo = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)illWatchSumFarType:(NSString *)platformType
                     title:(NSString *)title
                      cell:(NSString *)cell
                    images:(id)images
                       url:(Cross *)url
              minAscentAdd:(NSString *)minAscentAdd
                scriptsFun:(NSString *)scriptsFun
              hexDueImages:(NSArray *)hexDueImages
                   compile:(NSString *)compile
                   instant:(NSString *)instant
                  eyeFrame:(void(^)(BOOL hueCap,NSString *blobBank))eyeFrame {
    
    shareCallback = eyeFrame;
    
    switch (platformType.integerValue) {
        case 0:
            [self boxMagnitude:SSDKPlatformSubTypeQQFriend title:title cell:cell images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self boxMagnitude:SSDKPlatformSubTypeQZone title:title cell:cell images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self boxMagnitude:SSDKPlatformSubTypeWechatSession title:title cell:cell images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self boxMagnitude:SSDKPlatformSubTypeWechatTimeline title:title cell:cell images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self boxMagnitude:SSDKPlatformTypeDouyin title:title cell:cell images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self longitudeDryUnlearnCoastTightPhotos:title slopeBox:cell minAscentAdd:minAscentAdd scriptsFun:scriptsFun hexDueImages:hexDueImages compile:compile instant:instant];
            break;
        default:
            break;
    }
}




+ (void)boxMagnitude:(SSDKPlatformType)platformType
               title:(NSString *)title
              cell:(NSString *)cell
            images:(id)images
               url:(Cross *)url
              type:(SSDKContentType)type {
    
    

    

    

    

    

    NSMutableDictionary *portNetStar = [NSMutableDictionary dictionary];
    [portNetStar SSDKSetupShareParamsByText:cell
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:portNetStar 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)longitudeDryUnlearnCoastTightPhotos:(NSString *)title
                            slopeBox:(NSString *)slopeBox
                        minAscentAdd:(NSString *)minAscentAdd
                          scriptsFun:(NSString *)scriptsFun
                        hexDueImages:(NSArray *)hexDueImages
                             compile:(NSString *)compile
                             instant:(NSString *)instant {
    
    






    
    
    
    TapTapShareObj *arm = [[TapTapShareObj alloc] initWithTitle:title slopeBox:slopeBox minAscentAdd:minAscentAdd scriptsFun:scriptsFun hexDueImages:hexDueImages compile:compile instant:instant];
    [TapTapShare share:arm completion:^(NSInteger hueCap)  {
        
        if (hueCap == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (hueCap == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
