Skip to content

Listen a Room Request

Ta Van Dung edited this page Aug 18, 2016 · 2 revisions
import com.tvd12.ezyfox.core.annotation.ClientRequestListener;
import com.tvd12.ezyfox.core.annotation.ClientResponseHandler;
import com.tvd12.ezyfox.core.annotation.RequestParam;
import com.tvd12.ezyfox.core.annotation.ResponseParam;
import com.tvd12.ezyfox.core.command.Log;
import com.tvd12.ezyfox.core.command.UpdateBuddyProperties;
import com.tvd12.ezyfox.core.command.UpdateRoom;
import com.tvd12.ezyfox.core.command.UpdateUser;
import com.tvd12.ezyfox.core.content.AppContext;
import com.tvd12.ezyfox.videopoker.entities.BettingType;
import com.tvd12.ezyfox.videopoker.entities.VideoPokerRoom;
import com.tvd12.ezyfox.videopoker.entities.VideoPokerUser;

import lombok.Data;

/**
 * @author tavandung12
 *
 */
@Data
@ClientResponseHandler
@ClientRequestListener(command = "2")
public class BetRequestListener {
    
    @RequestParam("1")
    @ResponseParam("1")
    private int bettingTypeId;
    
    public void execute(AppContext context, VideoPokerRoom room, VideoPokerUser user) {
       // your business
    }
    
}

Hello World

Clone this wiki locally