|
@@ -37,6 +37,8 @@ public class User implements IUser, Parcelable, IModel {
|
|
|
public int msg_num; //未读消息
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
public Boolean isDriver() {
|
|
|
return type == 1;
|
|
|
}
|
|
@@ -100,14 +102,33 @@ public class User implements IUser, Parcelable, IModel {
|
|
|
return get() != null;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ public static final Creator<User> CREATOR = new Creator<User>() {
|
|
|
+ @Override
|
|
|
+ public User createFromParcel(Parcel in) {
|
|
|
+ return new User(in);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public User[] newArray(int size) {
|
|
|
+ return new User[size];
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
protected User(Parcel in) {
|
|
|
uid = in.readString();
|
|
|
name = in.readString();
|
|
|
mobile = in.readString();
|
|
|
+ kf_mobile = in.readString();
|
|
|
avatar = in.readString();
|
|
|
money = in.readString();
|
|
|
type = in.readInt();
|
|
|
status = in.readString();
|
|
|
+ nickname = in.readString();
|
|
|
openid = in.readString();
|
|
|
union_id = in.readString();
|
|
|
create_time = in.readString();
|
|
@@ -118,6 +139,7 @@ public class User implements IUser, Parcelable, IModel {
|
|
|
is_company = in.readInt();
|
|
|
is_pay_pwd = in.readInt();
|
|
|
is_pwd = in.readInt();
|
|
|
+ msg_num = in.readInt();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -125,10 +147,12 @@ public class User implements IUser, Parcelable, IModel {
|
|
|
dest.writeString(uid);
|
|
|
dest.writeString(name);
|
|
|
dest.writeString(mobile);
|
|
|
+ dest.writeString(kf_mobile);
|
|
|
dest.writeString(avatar);
|
|
|
dest.writeString(money);
|
|
|
dest.writeInt(type);
|
|
|
dest.writeString(status);
|
|
|
+ dest.writeString(nickname);
|
|
|
dest.writeString(openid);
|
|
|
dest.writeString(union_id);
|
|
|
dest.writeString(create_time);
|
|
@@ -139,6 +163,7 @@ public class User implements IUser, Parcelable, IModel {
|
|
|
dest.writeInt(is_company);
|
|
|
dest.writeInt(is_pay_pwd);
|
|
|
dest.writeInt(is_pwd);
|
|
|
+ dest.writeInt(msg_num);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -146,17 +171,4 @@ public class User implements IUser, Parcelable, IModel {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- public static final Creator<User> CREATOR = new Creator<User>() {
|
|
|
- @Override
|
|
|
- public User createFromParcel(Parcel in) {
|
|
|
- return new User(in);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public User[] newArray(int size) {
|
|
|
- return new User[size];
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
-
|
|
|
}
|