Package networking.response

Source Code of networking.response.ResponseUpdateAvgGameScaleVote

package networking.response;

import metadata.Constants;
import utility.GamePacket;

/**
*
* @author Xuyuan
*/
public class ResponseUpdateAvgGameScaleVote extends GameResponse {

    private short avgVote;

    public ResponseUpdateAvgGameScaleVote() {
        responseCode = Constants.SMSG_UPDATE_AVG_GAME_SCALE_VOTE;
    }

    @Override
    public byte[] constructResponseInBytes() {
        GamePacket packet = new GamePacket(responseCode);
        packet.addShort16(avgVote);
        return packet.getBytes();
    }
}
TOP

Related Classes of networking.response.ResponseUpdateAvgGameScaleVote

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.