











#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 *axialPan);

@interface TightMinBitInterruptStereoMin : NSObject

@end

@implementation TightMinBitInterruptStereoMin


+ (void)specifierClimbingShowFlippedWorldAlgorithmArrangerKey:(NSString *)mobAppKey
                             geometryYard:(NSString *)geometryYard
                              twoTopLater:(NSString *)twoTopLater
                          cleanThousandsCheckoutIncrementKin:(NSString *)cleanThousandsCheckoutIncrementKin
                      yahooAscentJobTaskDerived:(NSString *)yahooAscentJobTaskDerived
                                  yetMark:(NSString *)yetMark
                                 axesTrap:(NSString *)axesTrap
                          andMilesDeliverSelectionRepeat:(NSString *)andMilesDeliverSelectionRepeat
                                 sugarKey:(NSString *)sugarKey
                              prepRareWet:(NSString *)prepRareWet
                           longerKeepMail:(NSString *)longerKeepMail
                        cookiesLaterToken:(NSString *)cookiesLaterToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:geometryYard];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL success) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *forFusionRegister) {
        
        //微信
        if (twoTopLater && cleanThousandsCheckoutIncrementKin && twoTopLater.length>0 && cleanThousandsCheckoutIncrementKin.length > 0) {
            [forFusionRegister setupWeChatWithAppId:twoTopLater appSecret:cleanThousandsCheckoutIncrementKin universalLink:yahooAscentJobTaskDerived];
        }
        
        //QQ
        if (yetMark && axesTrap && yetMark.length>0 && axesTrap.length > 0) {
            [forFusionRegister setupQQWithAppId:yetMark appkey:axesTrap enableUniversalLink:NO universalLink:andMilesDeliverSelectionRepeat];
        }
        
        //抖音
        if (sugarKey && prepRareWet && sugarKey.length>0 && prepRareWet.length > 0) {
            [forFusionRegister setupDouyinByAppKey:sugarKey appSecret:prepRareWet];
        }
    }];
    
    
    
    if (longerKeepMail && cookiesLaterToken && longerKeepMail.length>0 && cookiesLaterToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = longerKeepMail; 
        options.clientToken = cookiesLaterToken; 
        options.region = TapTapRegionTypeCN; 
        options.workspace = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)mustStrongBeenType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              andDatabases:(NSString *)andDatabases
                getReadMix:(NSString *)getReadMix
              manEyeImages:(NSArray *)manEyeImages
                   boxFade:(NSString *)boxFade
                   hourSex:(NSString *)hourSex
                  callback:(void(^)(BOOL result,NSString *axialPan))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self toneMixCoast:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self toneMixCoast:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self toneMixCoast:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self toneMixCoast:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self toneMixCoast:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self indexedModifiersProducesTrackEraMax:title contents:text andDatabases:andDatabases getReadMix:getReadMix manEyeImages:manEyeImages boxFade:boxFade hourSex:hourSex];
            break;
        default:
            break;
    }
}




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

    

    

    

    

    
    NSMutableDictionary *ambienceLaw = [NSMutableDictionary dictionary];
    [ambienceLaw SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:ambienceLaw 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)indexedModifiersProducesTrackEraMax:(NSString *)title
                            contents:(NSString *)contents
                        andDatabases:(NSString *)andDatabases
                          getReadMix:(NSString *)getReadMix
                        manEyeImages:(NSArray *)manEyeImages
                             boxFade:(NSString *)boxFade
                             hourSex:(NSString *)hourSex {
    
    






    
    
    
    TapTapShareObj *bag = [[TapTapShareObj alloc] initWithTitle:title contents:contents andDatabases:andDatabases getReadMix:getReadMix manEyeImages:manEyeImages boxFade:boxFade hourSex:hourSex];
    [TapTapShare share:bag completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
