Package networking.request

Source Code of networking.request.RequestSeePvPOnlinePlayers

package networking.request;

import java.io.IOException;
import java.util.List;

import networking.response.ResponseSeePvPOnlinePlayers;

/**
*
* @author Xuyuan
*/
public class RequestSeePvPOnlinePlayers extends GameRequest {

    // Responses
    private ResponseSeePvPOnlinePlayers responseSeePvPOnlinePlayers;

    public RequestSeePvPOnlinePlayers() {
        responses.add(responseSeePvPOnlinePlayers = new ResponseSeePvPOnlinePlayers());
    }

    @Override
    public void parse() throws IOException {
        //Do nothing here.
    }

    @Override
    public void doBusiness() throws Exception {
        List<String> onlinePlayers;
        onlinePlayers = client.getServer().getOnlinePlayersByCurrentPlayerLocation(1);//(0=MainLobby; 1=PvP Game Mode Lobby; 2=PvE Game Mode Lobby; 3=PvP World Lobby & PvP World; 4=PvE World Lobby & PvE World)
        responseSeePvPOnlinePlayers.setPvpPlayers(onlinePlayers);
    }
}
TOP

Related Classes of networking.request.RequestSeePvPOnlinePlayers

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.