public static EventResponse compose(MessengerHandler Handler) {
    EventResponse Message = new EventResponse();
    Message.Initialize(HeaderLibrary.InitializePendingFriendRequestsEvent);
    Message.addInt(Integer.valueOf(Handler.GrabRequests().size()));
    Message.addInt(Integer.valueOf(Handler.GrabRequests().size()));
    Iterator var3 = Handler.GrabRequests().values().iterator();

    while (var3.hasNext()) {
      User mUser = (User) var3.next();
      Message.addInt(Integer.valueOf(mUser.getID()));
      Message.addString(mUser.getUsername());
      Message.addString(mUser.getLook());
    }

    return Message;
  }
예제 #2
0
 public static EventResponse compose(int ID) {
   EventResponse Message = new EventResponse();
   Message.Initialize(HeaderLibrary.RemoveRoomItemEvent);
   Message.addString(Integer.valueOf(ID));
   return Message;
 }