











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

@interface BinDeletingArrowParentSocketNumber : NSObject

@end

@implementation BinDeletingArrowParentSocketNumber


+ (void)cityWaxIndicesCinematicMusicalPrivilegeDebuggerKey:(NSString *)mobAppKey
                             wayTagsFrame:(NSString *)wayTagsFrame
                              tapsLikeFix:(NSString *)tapsLikeFix
                          cursiveFilterCoalesceLookFilename:(NSString *)cursiveFilterCoalesceLookFilename
                      factorAddSuspendedUnsafeDecide:(NSString *)factorAddSuspendedUnsafeDecide
                                  freeHow:(NSString *)freeHow
                                 globally:(NSString *)globally
                          disablingMessagingWinDayEntropy:(NSString *)disablingMessagingWinDayEntropy
                                 largeKey:(NSString *)largeKey
                              dialogTower:(NSString *)dialogTower
                           pubOwnLeastHas:(NSString *)pubOwnLeastHas
                        armTenRectumToken:(NSString *)armTenRectumToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:wayTagsFrame];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL success) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *binDuplexRegister) {
        
        //微信
        if (tapsLikeFix && cursiveFilterCoalesceLookFilename && tapsLikeFix.length>0 && cursiveFilterCoalesceLookFilename.length > 0) {
            [binDuplexRegister setupWeChatWithAppId:tapsLikeFix appSecret:cursiveFilterCoalesceLookFilename universalLink:factorAddSuspendedUnsafeDecide];
        }
        
        //QQ
        if (freeHow && globally && freeHow.length>0 && globally.length > 0) {
            [binDuplexRegister setupQQWithAppId:freeHow appkey:globally enableUniversalLink:NO universalLink:disablingMessagingWinDayEntropy];
        }
        
        //抖音
        if (largeKey && dialogTower && largeKey.length>0 && dialogTower.length > 0) {
            [binDuplexRegister setupDouyinByAppKey:largeKey appSecret:dialogTower];
        }
    }];
    
    
    
    if (pubOwnLeastHas && armTenRectumToken && pubOwnLeastHas.length>0 && armTenRectumToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = pubOwnLeastHas; 
        options.clientToken = armTenRectumToken; 
        options.region = TapTapRegionTypeCN; 
        options.nineSlant = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)bedWetLeasePopType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              responseLoud:(NSString *)responseLoud
                tempMapSex:(NSString *)tempMapSex
              jobMixImages:(NSArray *)jobMixImages
                   entered:(NSString *)entered
                   sixRule:(NSString *)sixRule
                  callback:(void(^)(BOOL result,NSString *optStart))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self optDisparity:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self optDisparity:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self optDisparity:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self optDisparity:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self optDisparity:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self darkOffCupLemmaPascalBus:title contents:text responseLoud:responseLoud tempMapSex:tempMapSex jobMixImages:jobMixImages entered:entered sixRule:sixRule];
            break;
        default:
            break;
    }
}




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

    

    

    

    

    NSMutableDictionary *paceAreaThe = [NSMutableDictionary dictionary];
    [paceAreaThe SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:paceAreaThe 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)darkOffCupLemmaPascalBus:(NSString *)title
                            contents:(NSString *)contents
                        responseLoud:(NSString *)responseLoud
                          tempMapSex:(NSString *)tempMapSex
                        jobMixImages:(NSArray *)jobMixImages
                             entered:(NSString *)entered
                             sixRule:(NSString *)sixRule {
    
    






    
    
    
    TapTapShareObj *era = [[TapTapShareObj alloc] initWithTitle:title contents:contents responseLoud:responseLoud tempMapSex:tempMapSex jobMixImages:jobMixImages entered:entered sixRule:sixRule];
    [TapTapShare share:era completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
