private void update(TL.Object someUser) { if (someUser.id == 0x771095da) { // userFull object = someUser; blocked = object.getBool("blocked"); } else object.set("user", someUser); TL.Object user = object.getObject("user"); id = user.getInt("id"); if (!user.name.equals("userEmpty")) { first_name = user.getString("first_name"); last_name = user.getString("last_name"); if (!user.name.equals("userDeleted")) { setPhoto(user.getObject("photo")); setStatus(user.getObject("status")); if (user.name.equals("userSelf")) User.self = this; else access_hash = user.getLong("access_hash"); if (!user.name.equals("userForeign")) { if (user.name.equals("userContact")) contact = true; phone = user.getString("phone"); } } } }
private void TL_updateUserStatus(TL.Object update) { User user = User.getUser(update.getInt("user_id")); if (user != null) user.setStatus(update.getObject("status")); }