TapLogin-Unity/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKProfile.h

43 lines
918 B
C
Raw Normal View History

//
// TTSDKProfile.h
// TapTapSDK
//
// Created by TapTap on 2017/10/27.
// Copyright © 2017年 易玩. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* @brief TapTap
*
*
*/
@interface TTSDKProfile : NSObject
/// 用户名
@property (nonatomic, readonly) NSString *name;
/// 用户头像
@property (nonatomic, readonly) NSString *avatar;
/// open id
@property (nonatomic, readonly) NSString *openid;
/// union id
@property (nonatomic, readonly) NSString *unionid;
- (instancetype)initWithJSON:(NSDictionary *)json;
/**
* @brief
*
* nil
*/
+ (TTSDKProfile *)currentProfile;
+ (void)fetchProfileForCurrentAccessToken:(void (^)(TTSDKProfile *profile, NSError *error))handler;
- (NSString *)toJsonString;
@end