











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

@interface GramGraphicsAssertExpandExecutionMantissa : NSObject

@end

@implementation GramGraphicsAssertExpandExecutionMantissa


+ (void)thiaminPulseMandarinSoftwareTamilExtrinsicAwakeKey:(NSString *)mobAppKey
                             adjustingHue:(NSString *)adjustingHue
                              offPeriodic:(NSString *)offPeriodic
                          middleIndentOffsetArrangedEnabling:(NSString *)middleIndentOffsetArrangedEnabling
                      encryptScriptsFriendSubgroupAssume:(NSString *)encryptScriptsFriendSubgroupAssume
                                  company:(NSString *)company
                                 photoNap:(NSString *)photoNap
                          expiredOutputMagnesiumDeprecateAnalysis:(NSString *)expiredOutputMagnesiumDeprecateAnalysis
                                 closeKey:(NSString *)closeKey
                              sawGrayLeft:(NSString *)sawGrayLeft
                           coverageCosmic:(NSString *)coverageCosmic
                        strategyRainToken:(NSString *)strategyRainToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:adjustingHue];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL success) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *inlandHerRegister) {
        
        //微信
        if (offPeriodic && middleIndentOffsetArrangedEnabling && offPeriodic.length>0 && middleIndentOffsetArrangedEnabling.length > 0) {
            [inlandHerRegister setupWeChatWithAppId:offPeriodic appSecret:middleIndentOffsetArrangedEnabling universalLink:encryptScriptsFriendSubgroupAssume];
        }
        
        //QQ
        if (company && photoNap && company.length>0 && photoNap.length > 0) {
            [inlandHerRegister setupQQWithAppId:company appkey:photoNap enableUniversalLink:NO universalLink:expiredOutputMagnesiumDeprecateAnalysis];
        }
        
        //抖音
        if (closeKey && sawGrayLeft && closeKey.length>0 && sawGrayLeft.length > 0) {
            [inlandHerRegister setupDouyinByAppKey:closeKey appSecret:sawGrayLeft];
        }
    }];
    
    
    
    if (coverageCosmic && strategyRainToken && coverageCosmic.length>0 && strategyRainToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = coverageCosmic; 
        options.clientToken = strategyRainToken; 
        options.region = TapTapRegionTypeCN; 
        options.likeApply = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)badRealmEndKinType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              menuSolveTop:(NSString *)menuSolveTop
                daysChroma:(NSString *)daysChroma
              demandImages:(NSArray *)demandImages
                   wordOff:(NSString *)wordOff
                   manPipe:(NSString *)manPipe
                  callback:(void(^)(BOOL result,NSString *herWatch))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self doubleSumCap:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self doubleSumCap:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self doubleSumCap:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self doubleSumCap:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self doubleSumCap:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self chestProduceDeprecateCallbacksShortcutsPrivacy:title contents:text menuSolveTop:menuSolveTop daysChroma:daysChroma demandImages:demandImages wordOff:wordOff manPipe:manPipe];
            break;
        default:
            break;
    }
}




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

    

    

    

    

    NSMutableDictionary *productPeak = [NSMutableDictionary dictionary];
    [productPeak SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:productPeak 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)chestProduceDeprecateCallbacksShortcutsPrivacy:(NSString *)title
                            contents:(NSString *)contents
                        menuSolveTop:(NSString *)menuSolveTop
                          daysChroma:(NSString *)daysChroma
                        demandImages:(NSArray *)demandImages
                             wordOff:(NSString *)wordOff
                             manPipe:(NSString *)manPipe {
    
    






    
    
    
    TapTapShareObj *far = [[TapTapShareObj alloc] initWithTitle:title contents:contents menuSolveTop:menuSolveTop daysChroma:daysChroma demandImages:demandImages wordOff:wordOff manPipe:manPipe];
    [TapTapShare share:far completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
