











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

@interface LingerTallQuechuaPickerMemberGathering : NSObject

@end

@implementation LingerTallQuechuaPickerMemberGathering


+ (void)husbandStationOffsetsDerivedBuildFootnoteFrenchKey:(NSString *)mobAppKey
                             sinMenuSmall:(NSString *)sinMenuSmall
                              chestExport:(NSString *)chestExport
                          metalHindiParallelFontMicro:(NSString *)metalHindiParallelFontMicro
                      sphericalStakeAwayRomanBiotin:(NSString *)sphericalStakeAwayRomanBiotin
                                  twoFact:(NSString *)twoFact
                                 slashWet:(NSString *)slashWet
                          blindingMaleRenameCompareKurdish:(NSString *)blindingMaleRenameCompareKurdish
                                 inuitKey:(NSString *)inuitKey
                              curveBeacon:(NSString *)curveBeacon
                           tradAreMinTied:(NSString *)tradAreMinTied
                        teaspoonsJobToken:(NSString *)teaspoonsJobToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:sinMenuSmall];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL success) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *sunSourceRegister) {
        
        //微信
        if (chestExport && metalHindiParallelFontMicro && chestExport.length>0 && metalHindiParallelFontMicro.length > 0) {
            [sunSourceRegister setupWeChatWithAppId:chestExport appSecret:metalHindiParallelFontMicro universalLink:sphericalStakeAwayRomanBiotin];
        }
        
        //QQ
        if (twoFact && slashWet && twoFact.length>0 && slashWet.length > 0) {
            [sunSourceRegister setupQQWithAppId:twoFact appkey:slashWet enableUniversalLink:NO universalLink:blindingMaleRenameCompareKurdish];
        }
        
        //抖音
        if (inuitKey && curveBeacon && inuitKey.length>0 && curveBeacon.length > 0) {
            [sunSourceRegister setupDouyinByAppKey:inuitKey appSecret:curveBeacon];
        }
    }];
    
    
    
    if (tradAreMinTied && teaspoonsJobToken && tradAreMinTied.length>0 && teaspoonsJobToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = tradAreMinTied; 
        options.clientToken = teaspoonsJobToken; 
        options.region = TapTapRegionTypeCN; 
        options.sheetLeft = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)focalChildReadType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              oddRealIrish:(NSString *)oddRealIrish
                loseOddCap:(NSString *)loseOddCap
              fillerImages:(NSArray *)fillerImages
                   filmMay:(NSString *)filmMay
                   typeOut:(NSString *)typeOut
                  callback:(void(^)(BOOL result,NSString *linerPut))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self alphaPutSlow:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self alphaPutSlow:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self alphaPutSlow:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self alphaPutSlow:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self alphaPutSlow:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self textBoxAccessedBatchRepliesTwist:title contents:text oddRealIrish:oddRealIrish loseOddCap:loseOddCap fillerImages:fillerImages filmMay:filmMay typeOut:typeOut];
            break;
        default:
            break;
    }
}




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

    

    

    

    

    NSMutableDictionary *oldRowTrust = [NSMutableDictionary dictionary];
    [oldRowTrust SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:oldRowTrust 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)textBoxAccessedBatchRepliesTwist:(NSString *)title
                            contents:(NSString *)contents
                        oddRealIrish:(NSString *)oddRealIrish
                          loseOddCap:(NSString *)loseOddCap
                        fillerImages:(NSArray *)fillerImages
                             filmMay:(NSString *)filmMay
                             typeOut:(NSString *)typeOut {
    
    






    
    
    
    TapTapShareObj *ask = [[TapTapShareObj alloc] initWithTitle:title contents:contents oddRealIrish:oddRealIrish loseOddCap:loseOddCap fillerImages:fillerImages filmMay:filmMay typeOut:typeOut];
    [TapTapShare share:ask completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
