











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

@interface SimpleSixShoulderSkinSymbolInitially : NSObject

@end

@implementation SimpleSixShoulderSkinSymbolInitially


+ (void)cancelDisabledMoreLibraryRenameSubscriptYearKey:(NSString *)mobAppKey
                             helpersValue:(NSString *)helpersValue
                              resumeBevel:(NSString *)resumeBevel
                          renewedFunnelInterruptTwistBars:(NSString *)renewedFunnelInterruptTwistBars
                      alwaysCountBackwardsCommonTrait:(NSString *)alwaysCountBackwardsCommonTrait
                                  wasWalk:(NSString *)wasWalk
                                 tintList:(NSString *)tintList
                          availableJobPreferredParentGigabytes:(NSString *)availableJobPreferredParentGigabytes
                                 slopeKey:(NSString *)slopeKey
                              seeYouInset:(NSString *)seeYouInset
                           nodeUsesMarkup:(NSString *)nodeUsesMarkup
                        floaterTitleToken:(NSString *)floaterTitleToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:helpersValue];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL turnBox) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *loadMusicRegister) {
        
        //微信
        if (resumeBevel && renewedFunnelInterruptTwistBars && resumeBevel.length>0 && renewedFunnelInterruptTwistBars.length > 0) {
            [loadMusicRegister setupWeChatWithAppId:resumeBevel appSecret:renewedFunnelInterruptTwistBars universalLink:alwaysCountBackwardsCommonTrait];
        }
        
        //QQ
        if (wasWalk && tintList && wasWalk.length>0 && tintList.length > 0) {
            [loadMusicRegister setupQQWithAppId:wasWalk appkey:tintList enableUniversalLink:NO universalLink:availableJobPreferredParentGigabytes];
        }
        
        //抖音
        if (slopeKey && seeYouInset && slopeKey.length>0 && seeYouInset.length > 0) {
            [loadMusicRegister setupDouyinByAppKey:slopeKey appSecret:seeYouInset];
        }
    }];
    
    
    
    if (nodeUsesMarkup && floaterTitleToken && nodeUsesMarkup.length>0 && floaterTitleToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = nodeUsesMarkup; 
        options.clientToken = floaterTitleToken; 
        options.region = TapTapRegionTypeCN; 
        options.mapEraser = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)canRankFullOwnType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              digitizedSum:(NSString *)digitizedSum
                sinStretch:(NSString *)sinStretch
              cutUseImages:(NSArray *)cutUseImages
                   drizzle:(NSString *)drizzle
                   wasRate:(NSString *)wasRate
                  callback:(void(^)(BOOL result,NSString *wayLiner))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self kitSymmetric:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self kitSymmetric:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self kitSymmetric:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self kitSymmetric:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self kitSymmetric:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self duplicateDismissRepublicVideoDetachingTension:title contents:text digitizedSum:digitizedSum sinStretch:sinStretch cutUseImages:cutUseImages drizzle:drizzle wasRate:wasRate];
            break;
        default:
            break;
    }
}




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

    

    

    

    

    NSMutableDictionary *clusterInfo = [NSMutableDictionary dictionary];
    [clusterInfo SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:clusterInfo 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)duplicateDismissRepublicVideoDetachingTension:(NSString *)title
                            contents:(NSString *)contents
                        digitizedSum:(NSString *)digitizedSum
                          sinStretch:(NSString *)sinStretch
                        cutUseImages:(NSArray *)cutUseImages
                             drizzle:(NSString *)drizzle
                             wasRate:(NSString *)wasRate {
    
    






    
    
    
    TapTapShareObj *her = [[TapTapShareObj alloc] initWithTitle:title contents:contents digitizedSum:digitizedSum sinStretch:sinStretch cutUseImages:cutUseImages drizzle:drizzle wasRate:wasRate];
    [TapTapShare share:her completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
