Package networking.response

Source Code of networking.response.ResponseSetUserPrimaryAvatar

package networking.response;

import metadata.Constants;
import utility.GamePacket;

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

    private short isTrue;//0 means not true, 1 means true

    public ResponseSetUserPrimaryAvatar() {
        responseCode = Constants.SMSG_SET_USER_PRIMARY_AVATAR;
    }

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

    public void setIsTrue(int isTrue) {
        this.isTrue = (short) isTrue;
    }
}
TOP

Related Classes of networking.response.ResponseSetUserPrimaryAvatar

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.