Package networking.response

Source Code of networking.response.ResponseUpdateGameScaleVote

package networking.response;

import metadata.Constants;
import utility.GamePacket;

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

    private short avgVote;

    public ResponseUpdateGameScaleVote() {
        responseCode = Constants.SMSG_VOTE_GAME_SCALE;
    }

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

    public void setAvgVote(short avgVote) {
        this.avgVote = avgVote;
    }
}
TOP

Related Classes of networking.response.ResponseUpdateGameScaleVote

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.