/*-----------------------------------------------
 *本文件由代码生成器自动生成,
 *千万不要修改本文件的任何代码,
 *修改的的任何代码都会被覆盖掉!
 --------------------------------------------------*/

var async = require('asyncawait/async');
var await = require('asyncawait/await');


var ZhanYaoHandler = function(socket){
	this.socket = socket;
}

ZhanYaoHandler.prototype.getZhanYaoMainDataRequest = async(function(){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getZhanYaoMainDataRequest',{}));
});

ZhanYaoHandler.prototype.upgradeYaoQiLevelRequest = async(function(){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.upgradeYaoQiLevelRequest',{}));
});

ZhanYaoHandler.prototype.getTodayZhanYaoAwardRequest = async(function(c2s_awardId){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getTodayZhanYaoAwardRequest',{c2s_awardId:c2s_awardId}));
});

ZhanYaoHandler.prototype.getPlayerShareYaoQiRequest = async(function(c2s_areaId,c2s_itemShareId){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getPlayerShareYaoQiRequest',{c2s_areaId:c2s_areaId,c2s_itemShareId:c2s_itemShareId}));
});

ZhanYaoHandler.prototype.zhanyaoLotteryRequest = async(function(){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.zhanyaoLotteryRequest',{}));
});

ZhanYaoHandler.prototype.receiveZhanyaoRewardBoxRequest = async(function(){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.receiveZhanyaoRewardBoxRequest',{}));
});

ZhanYaoHandler.prototype.searchDemonRequest = async(function(){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.searchDemonRequest',{}));
});

ZhanYaoHandler.prototype.upgradeGourdRequest = async(function(opType){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.upgradeGourdRequest',{opType:opType}));
});

ZhanYaoHandler.prototype.clearSearchDemonFlagRequest = async(function(){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.clearSearchDemonFlagRequest',{}));
});

ZhanYaoHandler.prototype.soulLampRequest = async(function(){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.soulLampRequest',{}));
});

ZhanYaoHandler.prototype.getStoryAwardRequest = async(function(memoriesId){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getStoryAwardRequest',{memoriesId:memoriesId}));
});

ZhanYaoHandler.prototype.mosaicSoulBallRequest = async(function(skillId,pos){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.mosaicSoulBallRequest',{skillId:skillId,pos:pos}));
});

ZhanYaoHandler.prototype.switchSkillRequest = async(function(){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.switchSkillRequest',{}));
});

ZhanYaoHandler.prototype.upgradeYaojueSkillRequest = async(function(){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.upgradeYaojueSkillRequest',{}));
});

ZhanYaoHandler.prototype.alchemyRequest = async(function(destId,chooseItem){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.alchemyRequest',{destId:destId,chooseItem:chooseItem}));
});

ZhanYaoHandler.prototype.receiveAlchemyItemRequest = async(function(index){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.receiveAlchemyItemRequest',{index:index}));
});

ZhanYaoHandler.prototype.removeSoulBallRequest = async(function(skillId,pos){
	return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.removeSoulBallRequest',{skillId:skillId,pos:pos}));
});


ZhanYaoHandler.prototype.onPlayerYaoQiSharePush = function(cb){
	this.socket.on('zhanyao.zhanYaoPush.playerYaoQiSharePush',cb);
}

module.exports = ZhanYaoHandler;