ParseClassName _User public class User extends ParseUser implements Pa

 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
58
59
60
61
62
63
64
65
66
67
68
@ParseClassName("_User")
public class User extends ParseUser implements Parcelable {
public static final String ROLE_TOURIST = "TOURIST";
public static final String STATUS_VERIFIED = "Verified";
public User() {
}
public String getCountry() {
return getString(Columns.COLUMN_COUNTRY);
}
public void setCountry(String country) {
put(Columns.COLUMN_COUNTRY, country);
}
public String getPhone() {
return getString(Columns.COLUMN_PHONE);
}
public void setPhone(String phone) {
put(Columns.COLUMN_PHONE, phone);
}
public String getName() {
return getString(Columns.COLUMN_NAME);
}
public void setName(String name) {
put(Columns.COLUMN_NAME, name);
}
public String getRole() {
return getString(Columns.COLUMN_ROLE);
}
public void setRole(String role) {
put(Columns.COLUMN_ROLE, role);
}
public Bitmap getPhoto() {
return (Bitmap) get(Columns.COLUMN_PHOTO);
}
public void setPhoto(ParseFile photo) {
put(Columns.COLUMN_PHOTO, photo);
}
public String getStatus() {
return getString(Columns.COLUMN_STATUS);
}
public void setStatus() {
put(Columns.COLUMN_STATUS, STATUS_VERIFIED);
}
public static final class Columns {
public static final String COLUMN_COUNTRY = "COUNTRY";
public static final String COLUMN_PHONE = "PHONE";
public static final String COLUMN_NAME = "NAME";
public static final String COLUMN_ROLE = "ROLE";
public static final String COLUMN_STATUS = "STATUS";
public static final String COLUMN_PHOTO = "PHOTO";
}
}