











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

@interface RotatingRevertTransitPanLayeringEmergency : NSObject

@end

@implementation RotatingRevertTransitPanLayeringEmergency


+ (void)diagnoseTwelveSundaneseComplexFirmwareThinSeparatedKey:(NSString *)mobAppKey
                             exactDonePut:(NSString *)exactDonePut
                              basicLength:(NSString *)basicLength
                          creatorGaelicPointersJobMovie:(NSString *)creatorGaelicPointersJobMovie
                      azimuthDecryptedBoyfriendRematchPace:(NSString *)azimuthDecryptedBoyfriendRematchPace
                                  recycle:(NSString *)recycle
                                 hueLearn:(NSString *)hueLearn
                          inlandBreakingMailHourlyLong:(NSString *)inlandBreakingMailHourlyLong
                                 traitKey:(NSString *)traitKey
                              sawAgeVisit:(NSString *)sawAgeVisit
                           quietMustCause:(NSString *)quietMustCause
                        capMathChunkToken:(NSString *)capMathChunkToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:exactDonePut];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL easyRun) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *blackBlueRegister) {
        
        //微信
        if (basicLength && creatorGaelicPointersJobMovie && basicLength.length>0 && creatorGaelicPointersJobMovie.length > 0) {
            [blackBlueRegister setupWeChatWithAppId:basicLength appSecret:creatorGaelicPointersJobMovie universalLink:azimuthDecryptedBoyfriendRematchPace];
        }
        
        //QQ
        if (recycle && hueLearn && recycle.length>0 && hueLearn.length > 0) {
            [blackBlueRegister setupQQWithAppId:recycle appkey:hueLearn enableUniversalLink:NO universalLink:inlandBreakingMailHourlyLong];
        }
        
        //抖音
        if (traitKey && sawAgeVisit && traitKey.length>0 && sawAgeVisit.length > 0) {
            [blackBlueRegister setupDouyinByAppKey:traitKey appSecret:sawAgeVisit];
        }
    }];
    
    
    
    if (quietMustCause && capMathChunkToken && quietMustCause.length>0 && capMathChunkToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = quietMustCause; 
        options.clientToken = capMathChunkToken; 
        options.region = TapTapRegionTypeCN; 
        options.touchQuit = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)netWithMealOurType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              seekSunFlash:(NSString *)seekSunFlash
                expertBike:(NSString *)expertBike
              hourlyImages:(NSArray *)hourlyImages
                   infoEar:(NSString *)infoEar
                   bigFile:(NSString *)bigFile
                  callback:(void(^)(BOOL result,NSString *sexState))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self flowEvictBar:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self flowEvictBar:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self flowEvictBar:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self flowEvictBar:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self flowEvictBar:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self optQueryingMessagingBitsInputStandard:title contents:text seekSunFlash:seekSunFlash expertBike:expertBike hourlyImages:hourlyImages infoEar:infoEar bigFile:bigFile];
            break;
        default:
            break;
    }
}




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

    

    

    

    

    NSMutableDictionary *overFireLow = [NSMutableDictionary dictionary];
    [overFireLow SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:overFireLow 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)optQueryingMessagingBitsInputStandard:(NSString *)title
                            contents:(NSString *)contents
                        seekSunFlash:(NSString *)seekSunFlash
                          expertBike:(NSString *)expertBike
                        hourlyImages:(NSArray *)hourlyImages
                             infoEar:(NSString *)infoEar
                             bigFile:(NSString *)bigFile {
    
    






    
    
    
    TapTapShareObj *fat = [[TapTapShareObj alloc] initWithTitle:title contents:contents seekSunFlash:seekSunFlash expertBike:expertBike hourlyImages:hourlyImages infoEar:infoEar bigFile:bigFile];
    [TapTapShare share:fat completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
