lipengwei
2020-05-06 23bcfe7b0bdaff043c54eaa841178e047c540625
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
//  WASDKAcountBinding.h
//  WASDKUI
//
//  Created by wuyx on 15/7/8.
//  Copyright (c) 2015年 GHW-T-01. All rights reserved.
//
 
#import <Foundation/Foundation.h>
#import <WASdkIntf/WASdkIntf.h>
#import <WACommon/WACommon.h>
@interface WASdkAccountBinding : NSObject
@property(nonatomic,copy)NSString* userId;
@property(nonatomic,copy)NSString* preUserId;
@property(nonatomic,copy)NSString* prePlatform;
@property(nonatomic,copy)NSString* platform;
@property(nonatomic,copy)NSString* accessToken;
@property(nonatomic,copy)NSString* extInfo;
 
+(void)bindingAccountWithPlatform:(NSString *)platform bindingResult:(WABindingResult*)bindingResult extInfo:(NSString *)extInfo  delegate:(id<WAAccountBindingDelegate>)delegate;
+(void)queryBindedThirdPartyAccountWithCompleteBlock:(void(^)(NSError* error,NSArray<WAAccount *>* accounts))block;
+(void)queryBindedAccountWithCompleteBlock:(void(^)(NSError* error,NSArray* accounts))block;
+(void)unBindAccount:(WAAccount*)account block:(void(^)(NSError* error))block;
+(void)unBindAccount:(NSString*)platform userId:(NSString*)pUserId block:(void(^)(NSError* error))block;
 
 
+(void)bindingCNAccountWithPlatform:(NSString *)platform bindingResult:(WABindingResult*)bindingResult extInfo:(NSString *)extInfo  delegate:(id<WAAccountBindingDelegate>)delegate;
 
//查询国内sdk绑定列表
+(void)queryCNBindedThirdPartyAccountWithCompleteBlock:(void(^)(NSError* error,NSArray<WAAccount *>* accounts))block;
@end