//
//  GSBaseShare.m
//  SocialSDKDemo
//
//  Created by lijunjie on 16/12/2016.
//  Copyright © 2016 GagSquad. All rights reserved.
//

#import "GSBaseShare.h"
#import "GSShareManager.h"
#import "GSLogger.h"

@interface GSBaseShare ()
{
    GSShareCompletionBlock _completionBlock;
}

@end

@implementation GSBaseShare

- (void)dealloc
{
    GSLogger(@"%@ 释放了", [self class]);
}

+ (GSPlatformType)platformType
{
    return GSPlatformTypeNone;
}

+ (GSShareChannelType)channelType;
{
    return GSShareChannelTypeNone;
}

- (void)shareSimpleText:(NSString *)text
{
    
}

- (void)shareSingleImage:(id)image title:(NSString *)title description:(NSString *)description
{
    
}

- (void)shareURL:(NSString *)url title:(NSString *)title description:(NSString *)description thumbnail:(id)thumbnail
{
    
}

- (void)shareMusicURL:(NSString *)musicURL
      musicLowBandURL:(NSString *)musicLowBandURL
         musicDataURL:(NSString *)musicDataURL
  musicLowBandDataURL:(NSString *)musicLowBandDataURL
                title:(NSString *)title
          description:(NSString *)description
            thumbnail:(id)thumbnail
{
    
}

- (void)shareVideoURL:(NSString *)videoURL
      videoLowBandURL:(NSString *)videoLowBandURL
       videoStreamURL:(NSString *)videoStreamURL
videoLowBandStreamURL:(NSString *)videoLowBandStreamURL
                title:(NSString *)title
          description:(NSString *)description
            thumbnail:(id)thumbnail
{
    
}

- (BOOL)handleOpenURL:(NSURL *)url
{
    return NO;
}

- (void)setShareCompletionBlock:(GSShareCompletionBlock)completionBlock
{
    _completionBlock = completionBlock;
}

- (void)completionWithResult:(id<GSShareResultProtocol>)result
{
    if (_completionBlock) {
        _completionBlock(result);
    }
    _completionBlock = nil;
    [[GSShareManager share] cleanChannel];
}

@end
