public static PaginatedResult<Event> getRecommendedEvents(int page, Session session) { Result result = Caller.getInstance() .call( "user.getRecommendedEvents", session, "page", String.valueOf(page), "user", session.getUsername()); return ResponseBuilder.buildPaginatedResult(result, Event.class); }
private DarkBotMCSpambot(MinecraftBotData data, String owner) throws AuthenticationException, UnsupportedProtocolException { super(data); synchronized (bots) { bots.add(this); } addOwner(owner); addBackend(new ChatBackend(this)); TaskManager taskManager = bot.getTaskManager(); taskManager.registerTask(new FallTask(bot)); taskManager.registerTask(new FollowTask(bot)); taskManager.registerTask(new DefendTask(bot)); taskManager.registerTask(new AttackTask(bot)); taskManager.registerTask(new HostileTask(bot)); taskManager.registerTask(new EatTask(bot)); commandManager.register(new AttackAllCommand(this)); commandManager.register(new AttackCommand(this)); commandManager.register(new CalcCommand(this)); commandManager.register(new ChatDelayCommand(this)); commandManager.register(new DropAllCommand(this)); commandManager.register(new DropCommand(this)); commandManager.register(new DropIdCommand(this)); commandManager.register(new EquipCommand(this)); commandManager.register(new FollowCommand(this)); commandManager.register(new InteractCommand(this)); commandManager.register(new OwnerCommand(this)); commandManager.register(new QuitCommand(this)); commandManager.register(new SayCommand(this)); commandManager.register(new SetWalkCommand(this)); commandManager.register(new SpamCommand(this)); commandManager.register(new StatusCommand(this)); commandManager.register(new StopCommand(this)); commandManager.register(new SwitchCommand(this)); commandManager.register(new ToolCommand(this)); commandManager.register(new WalkCommand(this)); connectionHandler = bot.getConnectionHandler(); Session session = bot.getSession(); System.out.println("[" + session.getUsername() + "] Done! (" + bots.size() + ")"); }