예제 #1
0
파일: User.java 프로젝트: soa4java/yibairun
 public User clone() {
   User user = new User();
   user.setAvailable(User.this.available);
   user.setFrom(User.this.from);
   user.setGroupName(User.this.groupName);
   user.setImgId(User.this.imgId);
   user.setJID(User.this.JID);
   user.setName(User.this.name);
   user.setSize(User.this.size);
   user.setStatus(User.this.status);
   user.setGender(User.this.gender);
   return user;
 }
예제 #2
0
파일: User.java 프로젝트: soa4java/yibairun
 @Override
 public User createFromParcel(Parcel source) {
   User u = new User();
   u.JID = source.readString();
   u.name = source.readString();
   u.from = source.readString();
   u.status = source.readString();
   u.gender = source.readInt();
   u.available = source.readInt() == 1 ? true : false;
   return u;
 }