ZXWUserModel.m
1.96 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// ZXWUserModel.m
// CNLiveScioLive
//
// Created by CNLive-zxw on 2018/9/20.
// Copyright © 2018年 CNLive. All rights reserved.
//
#import "ZXWUserModel.h"
@implementation ZXWUserModel
- (id)initWithDictionary: (NSDictionary*)jsonDic {
self.aid = [jsonDic[@"aid"] intValue];
self.alevel = [jsonDic[@"alevel"] intValue];
self.avatar = jsonDic[@"avatar"];
self.china_coin = [jsonDic[@"china_coin"] intValue];
self.ctaddress = jsonDic[@"ctaddress"];
self.ctemail = jsonDic[@"ctemail"];
self.ctid = jsonDic[@"ctid"];
self.ctmobile = jsonDic[@"ctmobile"];
self.ctpostcode = jsonDic[@"ctpostcode"];
self.ctrealname = jsonDic[@"ctrealname"];
self.emailVerify = [jsonDic[@"emailVerify"] intValue];
self.errorCode = [jsonDic[@"errorCode"] intValue];
self.errorMessage = jsonDic[@"errorMessage"];
self.gift_rec = [jsonDic[@"gift_rec"] intValue];
self.gift_sent = [jsonDic[@"gift_sent"] intValue];
self.integrity = [jsonDic[@"integrity"] intValue];
self.level = [jsonDic[@"level"] intValue];
self.levelName = jsonDic[@"levelName"];
self.liveStatuts = [jsonDic[@"liveStatuts"] intValue];
self.openId = jsonDic[@"openId"];
self.point = [jsonDic[@"point"] intValue];
self.redPackage = [jsonDic[@"redPackage"] intValue];
self.type = [jsonDic[@"type"] intValue];
self.uname = jsonDic[@"uname"];
self.uniqueId = jsonDic[@"uniqueId"];
self.extInfo = jsonDic[@"extInfo"];
self.faceUrl = jsonDic[@"faceUrl"];
self.email = jsonDic[@"email"];
self.gender = jsonDic[@"gender"];
self.hUid = jsonDic[@"hUid"];
self.location = jsonDic[@"location"];
self.mobile = jsonDic[@"mobile"];
self.nickname = jsonDic[@"nickName"];
self.qqUid = jsonDic[@"qqUid"];
self.renrenUid = jsonDic[@"renrenUid"];
self.sinaUid = jsonDic[@"sinaUid"];
self.token = jsonDic[@"token"];
self.wxUid = jsonDic[@"wxUid"];
self.uid = jsonDic[@"uid"];
return self;
}
@end