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; }
@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; }