//
//  GMThirdPartyLoginHelper.h
//  Gengmei
//
//  Created by licong on 2017/8/2.
//  Copyright © 2017年 更美互动信息科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GMThirdPartyDefine.h"

@interface GMThirdPartyUser : NSObject
@property (nonatomic, strong) NSString * nickname;
@property (nonatomic, strong) NSString * uid;
@property (nonatomic, strong) NSString * unionid;
@property (nonatomic, strong) NSString * icon;
@property (nonatomic, strong) NSString  * provice;
@property (nonatomic, strong) NSString  * city;
@property (nonatomic, assign) GMSharePlatform  platformType;
@property (nonatomic, strong) NSString *third_detail;
@end



typedef void (^GMThirdPartyUserHandler) (GMShareResponseState state, GMThirdPartyUser *user);

@interface GMThirdPartyLoginHelper : NSObject
+ (void)loginByPlatform:(GMSharePlatform)platform
             onUserSync:(GMThirdPartyUserHandler)userHandler;
+ (void)thirdPartyLogout;
@end
