//
//  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, copy) NSString * nickname;
@property (nonatomic, copy) NSString * uid;
@property (nonatomic, copy) NSString * unionid;
@property (nonatomic, copy) NSString * icon;
@property (nonatomic, copy) NSString  * provice;
@property (nonatomic, copy) NSString  * city;
@property (nonatomic, assign) GMSharePlatform  platformType;
@property (nonatomic, copy) NSString *thirdDetail;
@end



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

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