public void refreshFriends() { friends = H4J.getDAO().getMessengerDAO().loadFriends(user); Session session = H4J.getNetwork().getSessionManager().getSessionById(user.getId()); session.respond(InitializeMessengerMessageComposer.compose(friends)); }
public void refreshRequests() { requests = H4J.getDAO().getMessengerDAO().loadRequests(user); Session session = H4J.getNetwork().getSessionManager().getSessionById(user.getId()); session.respond(SendPendingFriendRequestsMessageComposer.compose(requests)); }
public MessengerManager(User user) { friends = H4J.getDAO().getMessengerDAO().loadFriends(user); requests = H4J.getDAO().getMessengerDAO().loadRequests(user); this.user = user; }