











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

@interface LocalTopSignalOtherExtendsPreserves : NSObject

@end

@implementation LocalTopSignalOtherExtendsPreserves


+ (void)unlockedCaretThermalForkTransformChangedConnectedKey:(NSString *)mobAppKey
                             popRareJoule:(NSString *)popRareJoule
                              rematchTrad:(NSString *)rematchTrad
                          americanAlignYiddishUtteranceRange:(NSString *)americanAlignYiddishUtteranceRange
                      queryingUsabilityButAscendingExits:(NSString *)queryingUsabilityButAscendingExits
                                  fatUsed:(NSString *)fatUsed
                                 hexFloor:(NSString *)hexFloor
                          shearLastExtraEmptyHundred:(NSString *)shearLastExtraEmptyHundred
                                 spaceKey:(NSString *)spaceKey
                              lastOneCurl:(NSString *)lastOneCurl
                           roomArmGoalNap:(NSString *)roomArmGoalNap
                        femaleEditorToken:(NSString *)femaleEditorToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:popRareJoule];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL success) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *liftNonceRegister) {
        
        //微信
        if (rematchTrad && americanAlignYiddishUtteranceRange && rematchTrad.length>0 && americanAlignYiddishUtteranceRange.length > 0) {
            [liftNonceRegister setupWeChatWithAppId:rematchTrad appSecret:americanAlignYiddishUtteranceRange universalLink:queryingUsabilityButAscendingExits];
        }
        
        //QQ
        if (fatUsed && hexFloor && fatUsed.length>0 && hexFloor.length > 0) {
            [liftNonceRegister setupQQWithAppId:fatUsed appkey:hexFloor enableUniversalLink:NO universalLink:shearLastExtraEmptyHundred];
        }
        
        //抖音
        if (spaceKey && lastOneCurl && spaceKey.length>0 && lastOneCurl.length > 0) {
            [liftNonceRegister setupDouyinByAppKey:spaceKey appSecret:lastOneCurl];
        }
    }];
    
    
    
    if (roomArmGoalNap && femaleEditorToken && roomArmGoalNap.length>0 && femaleEditorToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = roomArmGoalNap; 
        options.clientToken = femaleEditorToken; 
        options.region = TapTapRegionTypeCN; 
        options.subsetTop = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)addUseMenPulseType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              inviteBorder:(NSString *)inviteBorder
                resignMore:(NSString *)resignMore
              jobTopImages:(NSArray *)jobTopImages
                   sunPeak:(NSString *)sunPeak
                   taskHue:(NSString *)taskHue
                  callback:(void(^)(BOOL result,NSString *earMovie))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self ownBoxNotify:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self ownBoxNotify:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self ownBoxNotify:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self ownBoxNotify:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self ownBoxNotify:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self invertedModifiersProtocolFixYetKey:title contents:text inviteBorder:inviteBorder resignMore:resignMore jobTopImages:jobTopImages sunPeak:sunPeak taskHue:taskHue];
            break;
        default:
            break;
    }
}




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

    

    

    

    

    NSMutableDictionary *flashFigure = [NSMutableDictionary dictionary];
    [flashFigure SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:flashFigure 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)invertedModifiersProtocolFixYetKey:(NSString *)title
                            contents:(NSString *)contents
                        inviteBorder:(NSString *)inviteBorder
                          resignMore:(NSString *)resignMore
                        jobTopImages:(NSArray *)jobTopImages
                             sunPeak:(NSString *)sunPeak
                             taskHue:(NSString *)taskHue {
    
    






    
    
    
    TapTapShareObj *its = [[TapTapShareObj alloc] initWithTitle:title contents:contents inviteBorder:inviteBorder resignMore:resignMore jobTopImages:jobTopImages sunPeak:sunPeak taskHue:taskHue];
    [TapTapShare share:its completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
