











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

@interface BarTransitAreFlightsTildeFlatten : NSObject

@end

@implementation BarTransitAreFlightsTildeFlatten


+ (void)mobileOpenHomepageHistoryJouleLooseGuaraniKey:(NSString *)mobAppKey
                             undoFocalAny:(NSString *)undoFocalAny
                              brushFaxIts:(NSString *)brushFaxIts
                          photosEvictAmbienceNowWax:(NSString *)photosEvictAmbienceNowWax
                      utilitiesMoleWateryTaggerExpect:(NSString *)utilitiesMoleWateryTaggerExpect
                                  showers:(NSString *)showers
                                 pubGreat:(NSString *)pubGreat
                          adaptiveAbnormalImpliedPenDraft:(NSString *)adaptiveAbnormalImpliedPenDraft
                                 chestKey:(NSString *)chestKey
                              pongYiddish:(NSString *)pongYiddish
                           zipMayPoolFire:(NSString *)zipMayPoolFire
                        indianAdjustToken:(NSString *)indianAdjustToken
{
    
    [MobSDK registerAppKey:mobAppKey appSecret:undoFocalAny];
    
    [MobSDK uploadPrivacyPermissionStatus:YES onResult:^(BOOL kindBag) {
        
    }];
    
    [ShareSDK registPlatforms:^(SSDKRegister *peerPitchRegister) {
        
        //微信
        if (brushFaxIts && photosEvictAmbienceNowWax && brushFaxIts.length>0 && photosEvictAmbienceNowWax.length > 0) {
            [peerPitchRegister setupWeChatWithAppId:brushFaxIts appSecret:photosEvictAmbienceNowWax universalLink:utilitiesMoleWateryTaggerExpect];
        }
        
        //QQ
        if (showers && pubGreat && showers.length>0 && pubGreat.length > 0) {
            [peerPitchRegister setupQQWithAppId:showers appkey:pubGreat enableUniversalLink:NO universalLink:adaptiveAbnormalImpliedPenDraft];
        }
        
        //抖音
        if (chestKey && pongYiddish && chestKey.length>0 && pongYiddish.length > 0) {
            [peerPitchRegister setupDouyinByAppKey:chestKey appSecret:pongYiddish];
        }
    }];
    
    
    
    if (zipMayPoolFire && indianAdjustToken && zipMayPoolFire.length>0 && indianAdjustToken.length > 0) {
        
        TapTapSdkOptions *options = [[TapTapSdkOptions alloc] init];
        options.clientId = zipMayPoolFire; 
        options.clientToken = indianAdjustToken; 
        options.region = TapTapRegionTypeCN; 
        options.deprecate = YES; 
    

        [TapTapSDK initWithOptions:options];
    }
}

+ (void)subfamilyChestType:(NSString *)platformType
                     title:(NSString *)title
                      text:(NSString *)text
                    images:(id)images
                       url:(NSURL *)url
              jouleTheLoss:(NSString *)jouleTheLoss
                zipPanTree:(NSString *)zipPanTree
              airKinImages:(NSArray *)airKinImages
                   hueSent:(NSString *)hueSent
                   garbage:(NSString *)garbage
                  callback:(void(^)(BOOL result,NSString *tradMark))callback {
    
    shareCallback = callback;
    
    switch (platformType.integerValue) {
        case 0:
            [self subgroupsAir:SSDKPlatformSubTypeQQFriend title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 1:		
            [self subgroupsAir:SSDKPlatformSubTypeQZone title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 2:
            [self subgroupsAir:SSDKPlatformSubTypeWechatSession title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 3:
            [self subgroupsAir:SSDKPlatformSubTypeWechatTimeline title:title text:text images:images url:url type:SSDKContentTypeAuto];
            break;
        case 4:{
            [self subgroupsAir:SSDKPlatformTypeDouyin title:title text:text images:images url:url type:SSDKContentTypeImage];
            break;
        }
        case 5:
            [self trailingSystolicCircleSmartUseHigh:title contents:text jouleTheLoss:jouleTheLoss zipPanTree:zipPanTree airKinImages:airKinImages hueSent:hueSent garbage:garbage];
            break;
        default:
            break;
    }
}




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

    

    

    

    

    NSMutableDictionary *traveledSaw = [NSMutableDictionary dictionary];
    [traveledSaw SSDKSetupShareParamsByText:text
                                     images:images
                                        url:url
                                      title:title
                                       type:type];
    
    [ShareSDK share:platformType parameters:traveledSaw 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)trailingSystolicCircleSmartUseHigh:(NSString *)title
                            contents:(NSString *)contents
                        jouleTheLoss:(NSString *)jouleTheLoss
                          zipPanTree:(NSString *)zipPanTree
                        airKinImages:(NSArray *)airKinImages
                             hueSent:(NSString *)hueSent
                             garbage:(NSString *)garbage {
    
    






    
    
    
    TapTapShareObj *way = [[TapTapShareObj alloc] initWithTitle:title contents:contents jouleTheLoss:jouleTheLoss zipPanTree:zipPanTree airKinImages:airKinImages hueSent:hueSent garbage:garbage];
    [TapTapShare share:way completion:^(NSInteger result)  {
        
        if (result == 0) {
            if (shareCallback)shareCallback(YES,@"");
        }else if (result == -1) {
            if (shareCallback)shareCallback(NO,@"");
        }
    }];
}

@end
