











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

@interface PrologIntervalProducedAssetRefusedShutdown : NSObject

@end

@implementation PrologIntervalProducedAssetRefusedShutdown


+ (void)bengaliSelectingRaiseScheduledSayCreditsPullKey:(NSString *)mobAppKey
                             illegalCount:(NSString *)illegalCount
                              popFontTrap:(NSString *)popFontTrap
                          additionsLimitedDirectionEarPresented:(NSString *)additionsLimitedDirectionEarPresented
                      sequenceFixtureAllergyClimbingFact:(NSString *)sequenceFixtureAllergyClimbingFact
                                  integer:(NSString *)integer
                                 civilDid:(NSString *)civilDid
                          halftoneBlusteryPopWrappingWrap:(NSString *)halftoneBlusteryPopWrappingWrap
                                 priceKey:(NSString *)priceKey
                              mixPickChat:(NSString *)mixPickChat
                           sinkDanishPeer:(NSString *)sinkDanishPeer
                        maxStormStayToken:(NSString *)maxStormStayToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:illegalCount];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL success) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *jabberBusRegister) {
        
        //微信
        if (popFontTrap && additionsLimitedDirectionEarPresented && popFontTrap.length>0 && additionsLimitedDirectionEarPresented.length > 0) {
            [jabberBusRegister setupWeChatWithAppId:popFontTrap appSecret:additionsLimitedDirectionEarPresented universalLink:sequenceFixtureAllergyClimbingFact];
        }
        
        //QQ
        if (integer && civilDid && integer.length>0 && civilDid.length > 0) {
            [jabberBusRegister setupQQWithAppId:integer appkey:civilDid enableUniversalLink:NO universalLink:halftoneBlusteryPopWrappingWrap];
        }
        
        //抖音
        if (priceKey && mixPickChat && priceKey.length>0 && mixPickChat.length > 0) {
            [jabberBusRegister setupDouyinByAppKey:priceKey appSecret:mixPickChat];
        }
    }];
    
    
    
    if (sinkDanishPeer && maxStormStayToken && sinkDanishPeer.length>0 && maxStormStayToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = sinkDanishPeer; 
        options.clientToken = maxStormStayToken; 
        options.region = TapTapRegionTypeCN; 
        options.sayCorner = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)uighurPickPipeType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              writtenSheet:(NSString *)writtenSheet
                cupHerGray:(NSString *)cupHerGray
              reloadImages:(NSArray *)reloadImages
                   wideRet:(NSString *)wideRet
                   eggShow:(NSString *)eggShow
                  callback:(void(^)(BOOL result,NSString *rainWith))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self alphaSonFold:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self alphaSonFold:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self alphaSonFold:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self alphaSonFold:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self alphaSonFold:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self contentFormAboveTipArtsCombine:title contents:text writtenSheet:writtenSheet cupHerGray:cupHerGray reloadImages:reloadImages wideRet:wideRet eggShow:eggShow];
            break;
        default:
            break;
    }
}




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

    

    

    

    

    
    NSMutableDictionary *plateWhoMax = [NSMutableDictionary dictionary];
    [plateWhoMax SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:plateWhoMax 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)contentFormAboveTipArtsCombine:(NSString *)title
                            contents:(NSString *)contents
                        writtenSheet:(NSString *)writtenSheet
                          cupHerGray:(NSString *)cupHerGray
                        reloadImages:(NSArray *)reloadImages
                             wideRet:(NSString *)wideRet
                             eggShow:(NSString *)eggShow {
    
    






    
    
    
    TapTapShareObj *opt = [[TapTapShareObj alloc] initWithTitle:title contents:contents writtenSheet:writtenSheet cupHerGray:cupHerGray reloadImages:reloadImages wideRet:wideRet eggShow:eggShow];
    [TapTapShare share:opt completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
