commit | author | age
|
d1f6ab
|
1 |
// |
H |
2 |
// GHWLoginResult.h |
|
3 |
// GHWSdk |
|
4 |
// |
|
5 |
// Created by wuyx on 15/5/6. |
|
6 |
// Copyright (c) 2015年 GHW-T-01. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
/*! |
|
11 |
@discussion 该类为登录结果 |
|
12 |
- - - |
|
13 |
*/ |
|
14 |
@interface WALoginResult : NSObject<NSCoding,NSCopying> |
|
15 |
/*! |
|
16 |
@abstract 状态码 |
|
17 |
*/ |
|
18 |
@property(copy,nonatomic)NSString *code; |
|
19 |
/*! |
|
20 |
@abstract 结果描述 |
|
21 |
*/ |
|
22 |
@property(copy,nonatomic)NSString *msg; |
|
23 |
/*! |
|
24 |
@abstract 用户Id,(注册)登录成功的时候返回 |
|
25 |
*/ |
|
26 |
@property(copy,nonatomic)NSString *userId; |
|
27 |
/*! |
|
28 |
@abstract 在线token,(注册)登录成功的时候返回,如果传入的token未过期,直接返回原来的token,否则返回更新后的token |
|
29 |
*/ |
|
30 |
@property(copy,nonatomic)NSString *token; |
|
31 |
/*! |
|
32 |
@abstract 用户在第三方平台的Id,GUEST登录时 值与userId一致 |
|
33 |
*/ |
|
34 |
@property(copy,nonatomic)NSString *pUserId; |
|
35 |
/*! |
|
36 |
@abstract 平台 |
|
37 |
*/ |
|
38 |
@property(copy,nonatomic)NSString *platform; |
|
39 |
/*! |
|
40 |
@abstract 第三方平台token(当GUEST登录时为空,当Apple登录时,实际上是将extends转化为NSString) |
|
41 |
*/ |
|
42 |
@property(copy,nonatomic)NSString *pToken; |
|
43 |
/*! |
|
44 |
@abstract 当APPLE登录时有值,否则为空 |
|
45 |
*/ |
|
46 |
@property(strong,nonatomic)NSDictionary *extends;//当APPLE登录时有值,否则为空 |
|
47 |
/**! |
|
48 |
@abstract 是否绑定手机号 |
|
49 |
*/ |
|
50 |
@property BOOL isBindMobile; |
|
51 |
-(id)initWithPUserId:(NSString*)userId pToken:(NSString*)token platform:(NSString*)platform; |
|
52 |
+(id)loginResultWithPUserId:(NSString*)userId pToken:(NSString*)token platform:(NSString*)platform; |
|
53 |
@end |