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

49 lines
1.1 KiB
C
Raw Normal View History

2023-08-31 15:23:41 +08:00
//
// 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, strong) NSString *name;
/// 用户头像
@property (nonatomic, readonly, strong) NSString *avatar;
/// open id
@property (nonatomic, readonly, strong) NSString *openid;
/// union id
@property (nonatomic, readonly, strong) NSString *unionid;
@property (nonatomic, readonly, strong) NSString *email;
@property (nonatomic, readonly, assign, getter = isEmailVerified) BOOL emailVerified;
- (instancetype)initWithJSON:(NSDictionary *)json;
/**
* @brief
*
* nil
*/
+ (TTSDKProfile *)currentProfile;
+ (void)fetchProfileForCurrentAccessToken:(void (^)(TTSDKProfile *profile, NSError *error))handler;
- (NSString *)toJsonString;
- (NSDictionary *)toDictionary;
@end