-
Notifications
You must be signed in to change notification settings - Fork 0
/
Member.as
46 lines (40 loc) · 1.24 KB
/
Member.as
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
package {
public class Member {
public var id:String;
public var name:String = "익명";
public var period_number:int = -1;
public var phone_number:String;
public var mentor:Member;
public var mentees:Vector.<Member>;
public var admin:Boolean;
public var last_attendance_date_time:Number;
public var cs_attendance:Number;
public var cs_attendance_rank:Number;
public var profile_url:String;
public function Member(jsonObject:Object = null) {
if(jsonObject == null)
return;
id = jsonObject.id;
name = jsonObject.name;
period_number = jsonObject.period_number;
phone_number = jsonObject.phone_number;
if(jsonObject.last_attendance_date_time == undefined){
jsonObject.last_attendance_date_time = 0
}
if(jsonObject.cs_attendance == undefined){
jsonObject.cs_attendance = 0
}
if(jsonObject.cs_attendance_rank == undefined){
jsonObject.cs_attendance_rank = 0
}
last_attendance_date_time = jsonObject.last_attendance_date_time;
profile_url = jsonObject.profile_url;
admin = jsonObject.admin;
cs_attendance = jsonObject.cs_attendance
cs_attendance_rank = jsonObject.cs_attendance_rank
}
public function isEqual(_member:Member){
return id == _member.id
}
}
}