











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

@interface PolishLatencyImplicitAlienFunctionsStopped : NSObject

@end

@implementation PolishLatencyImplicitAlienFunctionsStopped


+ (void)nicknameTheResponderNanogramsLingerStoodNiacinKey:(NSString *)mobAppKey
                             higherCupYet:(NSString *)higherCupYet
                              yardFastest:(NSString *)yardFastest
                          senderReceiptIntensityDefinedObserving:(NSString *)senderReceiptIntensityDefinedObserving
                      logVisitedExpandAllJob:(NSString *)logVisitedExpandAllJob
                                  hitPage:(NSString *)hitPage
                                 globally:(NSString *)globally
                          mapUbiquityChangeTradText:(NSString *)mapUbiquityChangeTradText
                                 mouseKey:(NSString *)mouseKey
                              pubSockRear:(NSString *)pubSockRear
                           realWinFaceBin:(NSString *)realWinFaceBin
                        ownershipAirToken:(NSString *)ownershipAirToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:higherCupYet];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL success) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *perfusionRegister) {
        
        //微信
        if (yardFastest && senderReceiptIntensityDefinedObserving && yardFastest.length>0 && senderReceiptIntensityDefinedObserving.length > 0) {
            [perfusionRegister setupWeChatWithAppId:yardFastest appSecret:senderReceiptIntensityDefinedObserving universalLink:logVisitedExpandAllJob];
        }
        
        //QQ
        if (hitPage && globally && hitPage.length>0 && globally.length > 0) {
            [perfusionRegister setupQQWithAppId:hitPage appkey:globally enableUniversalLink:NO universalLink:mapUbiquityChangeTradText];
        }
        
        //抖音
        if (mouseKey && pubSockRear && mouseKey.length>0 && pubSockRear.length > 0) {
            [perfusionRegister setupDouyinByAppKey:mouseKey appSecret:pubSockRear];
        }
    }];
    
    
    
    if (realWinFaceBin && ownershipAirToken && realWinFaceBin.length>0 && ownershipAirToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = realWinFaceBin; 
        options.clientToken = ownershipAirToken; 
        options.region = TapTapRegionTypeCN; 
        options.deriveHis = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)axialForbiddenType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              functionsBag:(NSString *)functionsBag
                executeShe:(NSString *)executeShe
              cousinImages:(NSArray *)cousinImages
                   askDisk:(NSString *)askDisk
                   endDrum:(NSString *)endDrum
                  callback:(void(^)(BOOL result,NSString *mayOccur))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self lowIncrement:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self lowIncrement:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self lowIncrement:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self lowIncrement:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self lowIncrement:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self segmentedDigestBitPubAwakeGram:title contents:text functionsBag:functionsBag executeShe:executeShe cousinImages:cousinImages askDisk:askDisk endDrum:endDrum];
            break;
        default:
            break;
    }
}




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

    

    

    

    

    
    NSMutableDictionary *ourKindMill = [NSMutableDictionary dictionary];
    [ourKindMill SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:ourKindMill 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)segmentedDigestBitPubAwakeGram:(NSString *)title
                            contents:(NSString *)contents
                        functionsBag:(NSString *)functionsBag
                          executeShe:(NSString *)executeShe
                        cousinImages:(NSArray *)cousinImages
                             askDisk:(NSString *)askDisk
                             endDrum:(NSString *)endDrum {
    
    






    
    
    
    TapTapShareObj *bin = [[TapTapShareObj alloc] initWithTitle:title contents:contents functionsBag:functionsBag executeShe:executeShe cousinImages:cousinImages askDisk:askDisk endDrum:endDrum];
    [TapTapShare share:bin completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
