【玩家信息优化】玩家信息中新增身外化身,四象心法,命格和坐骑信息
parent
cf6c9cc9ff
commit
315083312d
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Structs can also be exceptions, if they are nasty.
|
* Structs can also be exceptions, if they are nasty.
|
||||||
*/
|
*/
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCgTGRequestIFace {
|
public class RPCgTGRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Structs can also be exceptions, if they are nasty.
|
* Structs can also be exceptions, if they are nasty.
|
||||||
*/
|
*/
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCgTGRequestIFace {
|
public class RPCgTGRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
|
@ -186,6 +186,9 @@ public class CoreService implements RPCRequestIFace.Iface {
|
||||||
rpcArenaManager.setLifeGridInfos(getUserMinggeList(user));
|
rpcArenaManager.setLifeGridInfos(getUserMinggeList(user));
|
||||||
//玩家坐骑信息
|
//玩家坐骑信息
|
||||||
rpcArenaManager.setUserMountValidTime(getUserMountList(user));
|
rpcArenaManager.setUserMountValidTime(getUserMountList(user));
|
||||||
|
//身外化身
|
||||||
|
rpcArenaManager.setTransformationList(getTransformationInfoList(user));
|
||||||
|
|
||||||
LOGGER.info("跨服,获取玩家英雄信息耗时:{}ms",TimeUtils.now()-start);
|
LOGGER.info("跨服,获取玩家英雄信息耗时:{}ms",TimeUtils.now()-start);
|
||||||
return rpcArenaManager;
|
return rpcArenaManager;
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
|
@ -195,7 +198,22 @@ public class CoreService implements RPCRequestIFace.Iface {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取变身卡列表信息过滤
|
||||||
|
* @param user
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static List<TransformationCardInfo> getTransformationInfoList(User user){
|
||||||
|
List<TransformationCardInfo> list = new ArrayList<>();
|
||||||
|
for (TransformationInfo value : user.getHeroManager().getTransformationList().values().stream().filter(v -> v.getStatus() == 1).collect(Collectors.toList())) {
|
||||||
|
TransformationCardInfo builder = new TransformationCardInfo();
|
||||||
|
builder.setId(value.getCardId());
|
||||||
|
builder .setIndex(value.getIndex());
|
||||||
|
builder .setStatus(value.getStatus());
|
||||||
|
list.add(builder);
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -56,6 +56,7 @@ public class ExplorerMapLogic {
|
||||||
|
|
||||||
PlayerInfoProto.ExplorerMapIndicationResponse.Builder indication = PlayerInfoProto.ExplorerMapIndicationResponse.newBuilder();
|
PlayerInfoProto.ExplorerMapIndicationResponse.Builder indication = PlayerInfoProto.ExplorerMapIndicationResponse.newBuilder();
|
||||||
indication.setExploreInfo(mapInfo);
|
indication.setExploreInfo(mapInfo);
|
||||||
|
LOGGER.info("sendIndication::::::::::::::::::::"+dropKeyValList.size());
|
||||||
MessageUtil.sendIndicationMessage(sess, 1, MessageTypeProto.MessageType.ExplorerMapIndicationResponse_VALUE, indication.build(), true);
|
MessageUtil.sendIndicationMessage(sess, 1, MessageTypeProto.MessageType.ExplorerMapIndicationResponse_VALUE, indication.build(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +111,7 @@ public class ExplorerMapLogic {
|
||||||
explorerInfo.setPlayerHp(explorerInfo.getPlayerHp() - reducePlayer);
|
explorerInfo.setPlayerHp(explorerInfo.getPlayerHp() - reducePlayer);
|
||||||
explorerInfo.setEnemyHp(0);
|
explorerInfo.setEnemyHp(0);
|
||||||
LOGGER.info("玩家掉血:=》{},剩余血量-》{}", reducePlayer, explorerInfo.getPlayerHp());
|
LOGGER.info("玩家掉血:=》{},剩余血量-》{}", reducePlayer, explorerInfo.getPlayerHp());
|
||||||
LOGGER.info("玩家赢了 怪物死 怪物走复活逻辑 掉落组=>{}", explorerInfo.getEnemyReliveTime(), exploreConfig.getReward());
|
LOGGER.info("玩家赢了 怪物死 怪物走复活逻辑 掉落组=>{}", exploreConfig.getReward());
|
||||||
for (Map.Entry<Integer, Integer> keyVal : itemMap.entrySet()) {
|
for (Map.Entry<Integer, Integer> keyVal : itemMap.entrySet()) {
|
||||||
if (dropMap.containsKey(keyVal.getKey())) {
|
if (dropMap.containsKey(keyVal.getKey())) {
|
||||||
dropMap.put(keyVal.getKey(), dropMap.get(keyVal.getKey()) + keyVal.getValue());
|
dropMap.put(keyVal.getKey(), dropMap.get(keyVal.getKey()) + keyVal.getValue());
|
||||||
|
@ -196,11 +197,11 @@ public class ExplorerMapLogic {
|
||||||
if (exploreConfig == null) {
|
if (exploreConfig == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (keyVal.getValue().getBatteTime() +battleInterval >= offlineEndTime) {
|
if (keyVal.getValue().getBatteTime() >= offlineEndTime) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
LOGGER.info("离线玩家队伍id",keyVal.getKey());
|
LOGGER.info("离线玩家队伍id",keyVal.getKey());
|
||||||
for (int i = keyVal.getValue().getBatteTime() + battleInterval; i < offlineEndTime; i = i + battleInterval) {
|
for (int i = keyVal.getValue().getBatteTime(); i <= offlineEndTime; i = i + battleInterval) {
|
||||||
//复活玩家
|
//复活玩家
|
||||||
if (keyVal.getValue().getPlayerHp() == 0 && keyVal.getValue().getPlayerReliveTime() <= i) {
|
if (keyVal.getValue().getPlayerHp() == 0 && keyVal.getValue().getPlayerReliveTime() <= i) {
|
||||||
int teamForce = HeroLogic.getInstance().calTeamTotalForce(user, keyVal.getKey(), false);
|
int teamForce = HeroLogic.getInstance().calTeamTotalForce(user, keyVal.getKey(), false);
|
||||||
|
|
|
@ -913,6 +913,14 @@ public class PlayerLogic {
|
||||||
teamOneTeamInfo.addSealShow(CommonProto.PurpleSealShowInfo.newBuilder().setType(value.getType()).
|
teamOneTeamInfo.addSealShow(CommonProto.PurpleSealShowInfo.newBuilder().setType(value.getType()).
|
||||||
setId(value.getSealId()).setHeroTId(hero==null?0:hero.getTemplateId()));
|
setId(value.getSealId()).setHeroTId(hero==null?0:hero.getTemplateId()));
|
||||||
}
|
}
|
||||||
|
//身外化身变身卡
|
||||||
|
teamOneTeamInfo.addAllTransformationCardInfo(CBean2Proto.getTransformationInfoList2(user));
|
||||||
|
//四象心法
|
||||||
|
teamOneTeamInfo.addAllSixiangxinfaInfo(GetPlayerInfoHandler.getSixiangxinfaInfos(user.getHeroManager()));
|
||||||
|
//命格
|
||||||
|
teamOneTeamInfo.addAllLifeGridInfo(GetPlayerInfoHandler.getLifeGridInfos(user.getHeroManager()));
|
||||||
|
//坐骑
|
||||||
|
teamOneTeamInfo.addAllUserMountInfo(CBean2Proto.getUserMountList(user));
|
||||||
builder.setTeam(teamOneTeamInfo.build());
|
builder.setTeam(teamOneTeamInfo.build());
|
||||||
//builder.addCrossTeam(teamOneTeamInfo.build());
|
//builder.addCrossTeam(teamOneTeamInfo.build());
|
||||||
}
|
}
|
||||||
|
@ -1084,7 +1092,6 @@ public class PlayerLogic {
|
||||||
//基本信息从redis中拿 剩下的队伍 属性 数据量大的数据rpc调用
|
//基本信息从redis中拿 剩下的队伍 属性 数据量大的数据rpc调用
|
||||||
String serverName = CrossServiceLogic.simplifyServerName(csPlayer.getServerId());
|
String serverName = CrossServiceLogic.simplifyServerName(csPlayer.getServerId());
|
||||||
GuildCache mapEntry = CrossDeathPathLogic.getCrossGuild(csPlayer.getGuildId());
|
GuildCache mapEntry = CrossDeathPathLogic.getCrossGuild(csPlayer.getGuildId());
|
||||||
|
|
||||||
CommonProto.TeamOneInfo.Builder builder = CommonProto.TeamOneInfo.newBuilder()
|
CommonProto.TeamOneInfo.Builder builder = CommonProto.TeamOneInfo.newBuilder()
|
||||||
.setHead(csPlayer.getHead())
|
.setHead(csPlayer.getHead())
|
||||||
.setHeadFrame(csPlayer.getHeadFrame())
|
.setHeadFrame(csPlayer.getHeadFrame())
|
||||||
|
@ -1159,11 +1166,27 @@ public class PlayerLogic {
|
||||||
teamOneTeamInfo.addAllLifeGridInfo(RpcData2LifeGridInfos(crossArenaManager));
|
teamOneTeamInfo.addAllLifeGridInfo(RpcData2LifeGridInfos(crossArenaManager));
|
||||||
//玩家坐骑信息
|
//玩家坐骑信息
|
||||||
teamOneTeamInfo.addAllUserMountInfo(getUserMountList(crossArenaManager.getUserMountValidTime()));
|
teamOneTeamInfo.addAllUserMountInfo(getUserMountList(crossArenaManager.getUserMountValidTime()));
|
||||||
|
//身外化身
|
||||||
|
teamOneTeamInfo.addAllTransformationCardInfo(getTransformationInfoListFromRpc(crossArenaManager.getTransformationList()));
|
||||||
builder.setTeam(teamOneTeamInfo.build());
|
builder.setTeam(teamOneTeamInfo.build());
|
||||||
}
|
}
|
||||||
//PlayerInfoProto.GetPlayerCrossYxldOneTeamInfoResponse.Builder playerTeamInfo = PlayerInfoProto.GetPlayerCrossYxldOneTeamInfoResponse.newBuilder().setTeamInfo(builder.build());
|
//PlayerInfoProto.GetPlayerCrossYxldOneTeamInfoResponse.Builder playerTeamInfo = PlayerInfoProto.GetPlayerCrossYxldOneTeamInfoResponse.newBuilder().setTeamInfo(builder.build());
|
||||||
return builder.build();
|
return builder.build();
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 获取变身卡列表信息过滤
|
||||||
|
* @param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static List<CommonProto.TransformationCardInfo> getTransformationInfoListFromRpc( List<TransformationCardInfo> listRpc){
|
||||||
|
List<CommonProto.TransformationCardInfo> list = new ArrayList<>();
|
||||||
|
for(TransformationCardInfo rpcData:listRpc){
|
||||||
|
CommonProto.TransformationCardInfo perData = CommonProto.TransformationCardInfo.newBuilder()
|
||||||
|
.setId(rpcData.getId()).setIndex(rpcData.getIndex()).setStatus(rpcData.getStatus()).build();
|
||||||
|
list.add(perData);
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取玩家皮肤列表
|
* 获取玩家皮肤列表
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class ArenaOfHero implements org.apache.thrift.TBase<ArenaOfHero, ArenaOfHero._Fields>, java.io.Serializable, Cloneable, Comparable<ArenaOfHero> {
|
public class ArenaOfHero implements org.apache.thrift.TBase<ArenaOfHero, ArenaOfHero._Fields>, java.io.Serializable, Cloneable, Comparable<ArenaOfHero> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ArenaOfHero");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ArenaOfHero");
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Structs can also be exceptions, if they are nasty.
|
* Structs can also be exceptions, if they are nasty.
|
||||||
*/
|
*/
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InvalidOperException extends TException implements org.apache.thrift.TBase<InvalidOperException, InvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InvalidOperException> {
|
public class InvalidOperException extends TException implements org.apache.thrift.TBase<InvalidOperException, InvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InvalidOperException> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidOperException");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidOperException");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class LifeGridInfo implements org.apache.thrift.TBase<LifeGridInfo, LifeGridInfo._Fields>, java.io.Serializable, Cloneable, Comparable<LifeGridInfo> {
|
public class LifeGridInfo implements org.apache.thrift.TBase<LifeGridInfo, LifeGridInfo._Fields>, java.io.Serializable, Cloneable, Comparable<LifeGridInfo> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LifeGridInfo");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LifeGridInfo");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class Pokemon implements org.apache.thrift.TBase<Pokemon, Pokemon._Fields>, java.io.Serializable, Cloneable, Comparable<Pokemon> {
|
public class Pokemon implements org.apache.thrift.TBase<Pokemon, Pokemon._Fields>, java.io.Serializable, Cloneable, Comparable<Pokemon> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Pokemon");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Pokemon");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class PropertyItem implements org.apache.thrift.TBase<PropertyItem, PropertyItem._Fields>, java.io.Serializable, Cloneable, Comparable<PropertyItem> {
|
public class PropertyItem implements org.apache.thrift.TBase<PropertyItem, PropertyItem._Fields>, java.io.Serializable, Cloneable, Comparable<PropertyItem> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PropertyItem");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PropertyItem");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class PurpleMansionSeal implements org.apache.thrift.TBase<PurpleMansionSeal, PurpleMansionSeal._Fields>, java.io.Serializable, Cloneable, Comparable<PurpleMansionSeal> {
|
public class PurpleMansionSeal implements org.apache.thrift.TBase<PurpleMansionSeal, PurpleMansionSeal._Fields>, java.io.Serializable, Cloneable, Comparable<PurpleMansionSeal> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PurpleMansionSeal");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PurpleMansionSeal");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCMatchRequestIFace {
|
public class RPCMatchRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCRequestIFace {
|
public class RPCRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
@ -7150,13 +7150,13 @@ public class RPCRequestIFace {
|
||||||
case 0: // SUCCESS
|
case 0: // SUCCESS
|
||||||
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
|
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
|
||||||
{
|
{
|
||||||
org.apache.thrift.protocol.TSet _set272 = iprot.readSetBegin();
|
org.apache.thrift.protocol.TSet _set280 = iprot.readSetBegin();
|
||||||
struct.success = new HashSet<String>(2*_set272.size);
|
struct.success = new HashSet<String>(2*_set280.size);
|
||||||
String _elem273;
|
String _elem281;
|
||||||
for (int _i274 = 0; _i274 < _set272.size; ++_i274)
|
for (int _i282 = 0; _i282 < _set280.size; ++_i282)
|
||||||
{
|
{
|
||||||
_elem273 = iprot.readString();
|
_elem281 = iprot.readString();
|
||||||
struct.success.add(_elem273);
|
struct.success.add(_elem281);
|
||||||
}
|
}
|
||||||
iprot.readSetEnd();
|
iprot.readSetEnd();
|
||||||
}
|
}
|
||||||
|
@ -7184,9 +7184,9 @@ public class RPCRequestIFace {
|
||||||
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
||||||
{
|
{
|
||||||
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
|
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
|
||||||
for (String _iter275 : struct.success)
|
for (String _iter283 : struct.success)
|
||||||
{
|
{
|
||||||
oprot.writeString(_iter275);
|
oprot.writeString(_iter283);
|
||||||
}
|
}
|
||||||
oprot.writeSetEnd();
|
oprot.writeSetEnd();
|
||||||
}
|
}
|
||||||
|
@ -7217,9 +7217,9 @@ public class RPCRequestIFace {
|
||||||
if (struct.isSetSuccess()) {
|
if (struct.isSetSuccess()) {
|
||||||
{
|
{
|
||||||
oprot.writeI32(struct.success.size());
|
oprot.writeI32(struct.success.size());
|
||||||
for (String _iter276 : struct.success)
|
for (String _iter284 : struct.success)
|
||||||
{
|
{
|
||||||
oprot.writeString(_iter276);
|
oprot.writeString(_iter284);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7231,13 +7231,13 @@ public class RPCRequestIFace {
|
||||||
BitSet incoming = iprot.readBitSet(1);
|
BitSet incoming = iprot.readBitSet(1);
|
||||||
if (incoming.get(0)) {
|
if (incoming.get(0)) {
|
||||||
{
|
{
|
||||||
org.apache.thrift.protocol.TSet _set277 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
|
org.apache.thrift.protocol.TSet _set285 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
|
||||||
struct.success = new HashSet<String>(2*_set277.size);
|
struct.success = new HashSet<String>(2*_set285.size);
|
||||||
String _elem278;
|
String _elem286;
|
||||||
for (int _i279 = 0; _i279 < _set277.size; ++_i279)
|
for (int _i287 = 0; _i287 < _set285.size; ++_i287)
|
||||||
{
|
{
|
||||||
_elem278 = iprot.readString();
|
_elem286 = iprot.readString();
|
||||||
struct.success.add(_elem278);
|
struct.success.add(_elem286);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
struct.setSuccessIsSet(true);
|
struct.setSuccessIsSet(true);
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RechargeResult implements org.apache.thrift.TBase<RechargeResult, RechargeResult._Fields>, java.io.Serializable, Cloneable, Comparable<RechargeResult> {
|
public class RechargeResult implements org.apache.thrift.TBase<RechargeResult, RechargeResult._Fields>, java.io.Serializable, Cloneable, Comparable<RechargeResult> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RechargeResult");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RechargeResult");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class Result implements org.apache.thrift.TBase<Result, Result._Fields>, java.io.Serializable, Cloneable, Comparable<Result> {
|
public class Result implements org.apache.thrift.TBase<Result, Result._Fields>, java.io.Serializable, Cloneable, Comparable<Result> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Result");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Result");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class SixiangxinfaInfo implements org.apache.thrift.TBase<SixiangxinfaInfo, SixiangxinfaInfo._Fields>, java.io.Serializable, Cloneable, Comparable<SixiangxinfaInfo> {
|
public class SixiangxinfaInfo implements org.apache.thrift.TBase<SixiangxinfaInfo, SixiangxinfaInfo._Fields>, java.io.Serializable, Cloneable, Comparable<SixiangxinfaInfo> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SixiangxinfaInfo");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SixiangxinfaInfo");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class SixiangxinfaPropertyInfo implements org.apache.thrift.TBase<SixiangxinfaPropertyInfo, SixiangxinfaPropertyInfo._Fields>, java.io.Serializable, Cloneable, Comparable<SixiangxinfaPropertyInfo> {
|
public class SixiangxinfaPropertyInfo implements org.apache.thrift.TBase<SixiangxinfaPropertyInfo, SixiangxinfaPropertyInfo._Fields>, java.io.Serializable, Cloneable, Comparable<SixiangxinfaPropertyInfo> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SixiangxinfaPropertyInfo");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SixiangxinfaPropertyInfo");
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* ArenaOfHeroManager 结构体
|
* ArenaOfHeroManager 结构体
|
||||||
*/
|
*/
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class TeamPosHeroInfo implements org.apache.thrift.TBase<TeamPosHeroInfo, TeamPosHeroInfo._Fields>, java.io.Serializable, Cloneable, Comparable<TeamPosHeroInfo> {
|
public class TeamPosHeroInfo implements org.apache.thrift.TBase<TeamPosHeroInfo, TeamPosHeroInfo._Fields>, java.io.Serializable, Cloneable, Comparable<TeamPosHeroInfo> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TeamPosHeroInfo");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TeamPosHeroInfo");
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,593 @@
|
||||||
|
/**
|
||||||
|
* Autogenerated by Thrift Compiler (0.9.2)
|
||||||
|
*
|
||||||
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
|
* @generated
|
||||||
|
*/
|
||||||
|
package com.ljsd.jieling.thrift.idl;
|
||||||
|
|
||||||
|
import org.apache.thrift.scheme.IScheme;
|
||||||
|
import org.apache.thrift.scheme.SchemeFactory;
|
||||||
|
import org.apache.thrift.scheme.StandardScheme;
|
||||||
|
|
||||||
|
import org.apache.thrift.scheme.TupleScheme;
|
||||||
|
import org.apache.thrift.protocol.TTupleProtocol;
|
||||||
|
import org.apache.thrift.protocol.TProtocolException;
|
||||||
|
import org.apache.thrift.EncodingUtils;
|
||||||
|
import org.apache.thrift.TException;
|
||||||
|
import org.apache.thrift.async.AsyncMethodCallback;
|
||||||
|
import org.apache.thrift.server.AbstractNonblockingServer.*;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.EnumMap;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.EnumSet;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.BitSet;
|
||||||
|
import java.nio.ByteBuffer;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
|
public class TransformationCardInfo implements org.apache.thrift.TBase<TransformationCardInfo, TransformationCardInfo._Fields>, java.io.Serializable, Cloneable, Comparable<TransformationCardInfo> {
|
||||||
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TransformationCardInfo");
|
||||||
|
|
||||||
|
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1);
|
||||||
|
private static final org.apache.thrift.protocol.TField INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("index", org.apache.thrift.protocol.TType.I32, (short)2);
|
||||||
|
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)3);
|
||||||
|
|
||||||
|
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
|
||||||
|
static {
|
||||||
|
schemes.put(StandardScheme.class, new TransformationCardInfoStandardSchemeFactory());
|
||||||
|
schemes.put(TupleScheme.class, new TransformationCardInfoTupleSchemeFactory());
|
||||||
|
}
|
||||||
|
|
||||||
|
public int id; // optional
|
||||||
|
public int index; // optional
|
||||||
|
public int status; // optional
|
||||||
|
|
||||||
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
|
ID((short)1, "id"),
|
||||||
|
INDEX((short)2, "index"),
|
||||||
|
STATUS((short)3, "status");
|
||||||
|
|
||||||
|
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
||||||
|
byName.put(field.getFieldName(), field);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the _Fields constant that matches fieldId, or null if its not found.
|
||||||
|
*/
|
||||||
|
public static _Fields findByThriftId(int fieldId) {
|
||||||
|
switch(fieldId) {
|
||||||
|
case 1: // ID
|
||||||
|
return ID;
|
||||||
|
case 2: // INDEX
|
||||||
|
return INDEX;
|
||||||
|
case 3: // STATUS
|
||||||
|
return STATUS;
|
||||||
|
default:
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the _Fields constant that matches fieldId, throwing an exception
|
||||||
|
* if it is not found.
|
||||||
|
*/
|
||||||
|
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
||||||
|
_Fields fields = findByThriftId(fieldId);
|
||||||
|
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
||||||
|
return fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the _Fields constant that matches name, or null if its not found.
|
||||||
|
*/
|
||||||
|
public static _Fields findByName(String name) {
|
||||||
|
return byName.get(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
private final short _thriftId;
|
||||||
|
private final String _fieldName;
|
||||||
|
|
||||||
|
_Fields(short thriftId, String fieldName) {
|
||||||
|
_thriftId = thriftId;
|
||||||
|
_fieldName = fieldName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public short getThriftFieldId() {
|
||||||
|
return _thriftId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFieldName() {
|
||||||
|
return _fieldName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// isset id assignments
|
||||||
|
private static final int __ID_ISSET_ID = 0;
|
||||||
|
private static final int __INDEX_ISSET_ID = 1;
|
||||||
|
private static final int __STATUS_ISSET_ID = 2;
|
||||||
|
private byte __isset_bitfield = 0;
|
||||||
|
private static final _Fields optionals[] = {_Fields.ID,_Fields.INDEX,_Fields.STATUS};
|
||||||
|
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
||||||
|
static {
|
||||||
|
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
||||||
|
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
||||||
|
tmpMap.put(_Fields.INDEX, new org.apache.thrift.meta_data.FieldMetaData("index", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
||||||
|
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
||||||
|
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
||||||
|
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TransformationCardInfo.class, metaDataMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformationCardInfo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Performs a deep copy on <i>other</i>.
|
||||||
|
*/
|
||||||
|
public TransformationCardInfo(TransformationCardInfo other) {
|
||||||
|
__isset_bitfield = other.__isset_bitfield;
|
||||||
|
this.id = other.id;
|
||||||
|
this.index = other.index;
|
||||||
|
this.status = other.status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformationCardInfo deepCopy() {
|
||||||
|
return new TransformationCardInfo(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clear() {
|
||||||
|
setIdIsSet(false);
|
||||||
|
this.id = 0;
|
||||||
|
setIndexIsSet(false);
|
||||||
|
this.index = 0;
|
||||||
|
setStatusIsSet(false);
|
||||||
|
this.status = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformationCardInfo setId(int id) {
|
||||||
|
this.id = id;
|
||||||
|
setIdIsSet(true);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void unsetId() {
|
||||||
|
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
||||||
|
public boolean isSetId() {
|
||||||
|
return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdIsSet(boolean value) {
|
||||||
|
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getIndex() {
|
||||||
|
return this.index;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformationCardInfo setIndex(int index) {
|
||||||
|
this.index = index;
|
||||||
|
setIndexIsSet(true);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void unsetIndex() {
|
||||||
|
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INDEX_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Returns true if field index is set (has been assigned a value) and false otherwise */
|
||||||
|
public boolean isSetIndex() {
|
||||||
|
return EncodingUtils.testBit(__isset_bitfield, __INDEX_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndexIsSet(boolean value) {
|
||||||
|
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INDEX_ISSET_ID, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getStatus() {
|
||||||
|
return this.status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformationCardInfo setStatus(int status) {
|
||||||
|
this.status = status;
|
||||||
|
setStatusIsSet(true);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void unsetStatus() {
|
||||||
|
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STATUS_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
||||||
|
public boolean isSetStatus() {
|
||||||
|
return EncodingUtils.testBit(__isset_bitfield, __STATUS_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusIsSet(boolean value) {
|
||||||
|
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STATUS_ISSET_ID, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFieldValue(_Fields field, Object value) {
|
||||||
|
switch (field) {
|
||||||
|
case ID:
|
||||||
|
if (value == null) {
|
||||||
|
unsetId();
|
||||||
|
} else {
|
||||||
|
setId((Integer)value);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case INDEX:
|
||||||
|
if (value == null) {
|
||||||
|
unsetIndex();
|
||||||
|
} else {
|
||||||
|
setIndex((Integer)value);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case STATUS:
|
||||||
|
if (value == null) {
|
||||||
|
unsetStatus();
|
||||||
|
} else {
|
||||||
|
setStatus((Integer)value);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getFieldValue(_Fields field) {
|
||||||
|
switch (field) {
|
||||||
|
case ID:
|
||||||
|
return Integer.valueOf(getId());
|
||||||
|
|
||||||
|
case INDEX:
|
||||||
|
return Integer.valueOf(getIndex());
|
||||||
|
|
||||||
|
case STATUS:
|
||||||
|
return Integer.valueOf(getStatus());
|
||||||
|
|
||||||
|
}
|
||||||
|
throw new IllegalStateException();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
||||||
|
public boolean isSet(_Fields field) {
|
||||||
|
if (field == null) {
|
||||||
|
throw new IllegalArgumentException();
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (field) {
|
||||||
|
case ID:
|
||||||
|
return isSetId();
|
||||||
|
case INDEX:
|
||||||
|
return isSetIndex();
|
||||||
|
case STATUS:
|
||||||
|
return isSetStatus();
|
||||||
|
}
|
||||||
|
throw new IllegalStateException();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object that) {
|
||||||
|
if (that == null)
|
||||||
|
return false;
|
||||||
|
if (that instanceof TransformationCardInfo)
|
||||||
|
return this.equals((TransformationCardInfo)that);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean equals(TransformationCardInfo that) {
|
||||||
|
if (that == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
boolean this_present_id = true && this.isSetId();
|
||||||
|
boolean that_present_id = true && that.isSetId();
|
||||||
|
if (this_present_id || that_present_id) {
|
||||||
|
if (!(this_present_id && that_present_id))
|
||||||
|
return false;
|
||||||
|
if (this.id != that.id)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean this_present_index = true && this.isSetIndex();
|
||||||
|
boolean that_present_index = true && that.isSetIndex();
|
||||||
|
if (this_present_index || that_present_index) {
|
||||||
|
if (!(this_present_index && that_present_index))
|
||||||
|
return false;
|
||||||
|
if (this.index != that.index)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean this_present_status = true && this.isSetStatus();
|
||||||
|
boolean that_present_status = true && that.isSetStatus();
|
||||||
|
if (this_present_status || that_present_status) {
|
||||||
|
if (!(this_present_status && that_present_status))
|
||||||
|
return false;
|
||||||
|
if (this.status != that.status)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
List<Object> list = new ArrayList<Object>();
|
||||||
|
|
||||||
|
boolean present_id = true && (isSetId());
|
||||||
|
list.add(present_id);
|
||||||
|
if (present_id)
|
||||||
|
list.add(id);
|
||||||
|
|
||||||
|
boolean present_index = true && (isSetIndex());
|
||||||
|
list.add(present_index);
|
||||||
|
if (present_index)
|
||||||
|
list.add(index);
|
||||||
|
|
||||||
|
boolean present_status = true && (isSetStatus());
|
||||||
|
list.add(present_status);
|
||||||
|
if (present_status)
|
||||||
|
list.add(status);
|
||||||
|
|
||||||
|
return list.hashCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int compareTo(TransformationCardInfo other) {
|
||||||
|
if (!getClass().equals(other.getClass())) {
|
||||||
|
return getClass().getName().compareTo(other.getClass().getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
int lastComparison = 0;
|
||||||
|
|
||||||
|
lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId());
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
if (isSetId()) {
|
||||||
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
lastComparison = Boolean.valueOf(isSetIndex()).compareTo(other.isSetIndex());
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
if (isSetIndex()) {
|
||||||
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index, other.index);
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
if (isSetStatus()) {
|
||||||
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public _Fields fieldForId(int fieldId) {
|
||||||
|
return _Fields.findByThriftId(fieldId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
||||||
|
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
||||||
|
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("TransformationCardInfo(");
|
||||||
|
boolean first = true;
|
||||||
|
|
||||||
|
if (isSetId()) {
|
||||||
|
sb.append("id:");
|
||||||
|
sb.append(this.id);
|
||||||
|
first = false;
|
||||||
|
}
|
||||||
|
if (isSetIndex()) {
|
||||||
|
if (!first) sb.append(", ");
|
||||||
|
sb.append("index:");
|
||||||
|
sb.append(this.index);
|
||||||
|
first = false;
|
||||||
|
}
|
||||||
|
if (isSetStatus()) {
|
||||||
|
if (!first) sb.append(", ");
|
||||||
|
sb.append("status:");
|
||||||
|
sb.append(this.status);
|
||||||
|
first = false;
|
||||||
|
}
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void validate() throws org.apache.thrift.TException {
|
||||||
|
// check for required fields
|
||||||
|
// check for sub-struct validity
|
||||||
|
}
|
||||||
|
|
||||||
|
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
||||||
|
try {
|
||||||
|
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
||||||
|
} catch (org.apache.thrift.TException te) {
|
||||||
|
throw new java.io.IOException(te);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
||||||
|
try {
|
||||||
|
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
||||||
|
__isset_bitfield = 0;
|
||||||
|
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
||||||
|
} catch (org.apache.thrift.TException te) {
|
||||||
|
throw new java.io.IOException(te);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class TransformationCardInfoStandardSchemeFactory implements SchemeFactory {
|
||||||
|
public TransformationCardInfoStandardScheme getScheme() {
|
||||||
|
return new TransformationCardInfoStandardScheme();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class TransformationCardInfoStandardScheme extends StandardScheme<TransformationCardInfo> {
|
||||||
|
|
||||||
|
public void read(org.apache.thrift.protocol.TProtocol iprot, TransformationCardInfo struct) throws org.apache.thrift.TException {
|
||||||
|
org.apache.thrift.protocol.TField schemeField;
|
||||||
|
iprot.readStructBegin();
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
schemeField = iprot.readFieldBegin();
|
||||||
|
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
switch (schemeField.id) {
|
||||||
|
case 1: // ID
|
||||||
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
||||||
|
struct.id = iprot.readI32();
|
||||||
|
struct.setIdIsSet(true);
|
||||||
|
} else {
|
||||||
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 2: // INDEX
|
||||||
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
||||||
|
struct.index = iprot.readI32();
|
||||||
|
struct.setIndexIsSet(true);
|
||||||
|
} else {
|
||||||
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 3: // STATUS
|
||||||
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
||||||
|
struct.status = iprot.readI32();
|
||||||
|
struct.setStatusIsSet(true);
|
||||||
|
} else {
|
||||||
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
||||||
|
}
|
||||||
|
iprot.readFieldEnd();
|
||||||
|
}
|
||||||
|
iprot.readStructEnd();
|
||||||
|
|
||||||
|
// check for required fields of primitive type, which can't be checked in the validate method
|
||||||
|
struct.validate();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void write(org.apache.thrift.protocol.TProtocol oprot, TransformationCardInfo struct) throws org.apache.thrift.TException {
|
||||||
|
struct.validate();
|
||||||
|
|
||||||
|
oprot.writeStructBegin(STRUCT_DESC);
|
||||||
|
if (struct.isSetId()) {
|
||||||
|
oprot.writeFieldBegin(ID_FIELD_DESC);
|
||||||
|
oprot.writeI32(struct.id);
|
||||||
|
oprot.writeFieldEnd();
|
||||||
|
}
|
||||||
|
if (struct.isSetIndex()) {
|
||||||
|
oprot.writeFieldBegin(INDEX_FIELD_DESC);
|
||||||
|
oprot.writeI32(struct.index);
|
||||||
|
oprot.writeFieldEnd();
|
||||||
|
}
|
||||||
|
if (struct.isSetStatus()) {
|
||||||
|
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
||||||
|
oprot.writeI32(struct.status);
|
||||||
|
oprot.writeFieldEnd();
|
||||||
|
}
|
||||||
|
oprot.writeFieldStop();
|
||||||
|
oprot.writeStructEnd();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class TransformationCardInfoTupleSchemeFactory implements SchemeFactory {
|
||||||
|
public TransformationCardInfoTupleScheme getScheme() {
|
||||||
|
return new TransformationCardInfoTupleScheme();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class TransformationCardInfoTupleScheme extends TupleScheme<TransformationCardInfo> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void write(org.apache.thrift.protocol.TProtocol prot, TransformationCardInfo struct) throws org.apache.thrift.TException {
|
||||||
|
TTupleProtocol oprot = (TTupleProtocol) prot;
|
||||||
|
BitSet optionals = new BitSet();
|
||||||
|
if (struct.isSetId()) {
|
||||||
|
optionals.set(0);
|
||||||
|
}
|
||||||
|
if (struct.isSetIndex()) {
|
||||||
|
optionals.set(1);
|
||||||
|
}
|
||||||
|
if (struct.isSetStatus()) {
|
||||||
|
optionals.set(2);
|
||||||
|
}
|
||||||
|
oprot.writeBitSet(optionals, 3);
|
||||||
|
if (struct.isSetId()) {
|
||||||
|
oprot.writeI32(struct.id);
|
||||||
|
}
|
||||||
|
if (struct.isSetIndex()) {
|
||||||
|
oprot.writeI32(struct.index);
|
||||||
|
}
|
||||||
|
if (struct.isSetStatus()) {
|
||||||
|
oprot.writeI32(struct.status);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void read(org.apache.thrift.protocol.TProtocol prot, TransformationCardInfo struct) throws org.apache.thrift.TException {
|
||||||
|
TTupleProtocol iprot = (TTupleProtocol) prot;
|
||||||
|
BitSet incoming = iprot.readBitSet(3);
|
||||||
|
if (incoming.get(0)) {
|
||||||
|
struct.id = iprot.readI32();
|
||||||
|
struct.setIdIsSet(true);
|
||||||
|
}
|
||||||
|
if (incoming.get(1)) {
|
||||||
|
struct.index = iprot.readI32();
|
||||||
|
struct.setIndexIsSet(true);
|
||||||
|
}
|
||||||
|
if (incoming.get(2)) {
|
||||||
|
struct.status = iprot.readI32();
|
||||||
|
struct.setStatusIsSet(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class UserMountInfo implements org.apache.thrift.TBase<UserMountInfo, UserMountInfo._Fields>, java.io.Serializable, Cloneable, Comparable<UserMountInfo> {
|
public class UserMountInfo implements org.apache.thrift.TBase<UserMountInfo, UserMountInfo._Fields>, java.io.Serializable, Cloneable, Comparable<UserMountInfo> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserMountInfo");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserMountInfo");
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Structs can also be exceptions, if they are nasty.
|
* Structs can also be exceptions, if they are nasty.
|
||||||
*/
|
*/
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCgTwRequestIFace {
|
public class RPCgTwRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCwTgRequestIFace {
|
public class RPCwTgRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
|
@ -100,6 +100,12 @@ struct UserMountInfo{
|
||||||
1:optional i32 mountId;
|
1:optional i32 mountId;
|
||||||
2:optional i32 overTime;
|
2:optional i32 overTime;
|
||||||
}
|
}
|
||||||
|
//变身卡信息
|
||||||
|
struct TransformationCardInfo{
|
||||||
|
1:optional i32 id ;//卡id
|
||||||
|
2:optional i32 index;// 位置
|
||||||
|
3:optional i32 status ;// 状态
|
||||||
|
}
|
||||||
|
|
||||||
struct CrossArenaManager{
|
struct CrossArenaManager{
|
||||||
1:optional map<i32, list<TeamPosHeroInfo>> teams ;
|
1:optional map<i32, list<TeamPosHeroInfo>> teams ;
|
||||||
|
@ -124,6 +130,7 @@ struct CrossArenaManager{
|
||||||
19:optional list<SixiangxinfaInfo> sixiangInfos;//四象心法数据
|
19:optional list<SixiangxinfaInfo> sixiangInfos;//四象心法数据
|
||||||
20:optional list<LifeGridInfo> lifeGridInfos;//命格
|
20:optional list<LifeGridInfo> lifeGridInfos;//命格
|
||||||
21:optional list<UserMountInfo> userMountValidTime; //坐骑
|
21:optional list<UserMountInfo> userMountValidTime; //坐骑
|
||||||
|
22:optional list<TransformationCardInfo> transformationList; //变身卡信息
|
||||||
}
|
}
|
||||||
|
|
||||||
service RPCRequestIFace{
|
service RPCRequestIFace{
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Structs can also be exceptions, if they are nasty.
|
* Structs can also be exceptions, if they are nasty.
|
||||||
*/
|
*/
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCgTGRequestIFace {
|
public class RPCgTGRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class ArenaOfHero implements org.apache.thrift.TBase<ArenaOfHero, ArenaOfHero._Fields>, java.io.Serializable, Cloneable, Comparable<ArenaOfHero> {
|
public class ArenaOfHero implements org.apache.thrift.TBase<ArenaOfHero, ArenaOfHero._Fields>, java.io.Serializable, Cloneable, Comparable<ArenaOfHero> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ArenaOfHero");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ArenaOfHero");
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Structs can also be exceptions, if they are nasty.
|
* Structs can also be exceptions, if they are nasty.
|
||||||
*/
|
*/
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InvalidOperException extends TException implements org.apache.thrift.TBase<InvalidOperException, InvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InvalidOperException> {
|
public class InvalidOperException extends TException implements org.apache.thrift.TBase<InvalidOperException, InvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InvalidOperException> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidOperException");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidOperException");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class LifeGridInfo implements org.apache.thrift.TBase<LifeGridInfo, LifeGridInfo._Fields>, java.io.Serializable, Cloneable, Comparable<LifeGridInfo> {
|
public class LifeGridInfo implements org.apache.thrift.TBase<LifeGridInfo, LifeGridInfo._Fields>, java.io.Serializable, Cloneable, Comparable<LifeGridInfo> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LifeGridInfo");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LifeGridInfo");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class Pokemon implements org.apache.thrift.TBase<Pokemon, Pokemon._Fields>, java.io.Serializable, Cloneable, Comparable<Pokemon> {
|
public class Pokemon implements org.apache.thrift.TBase<Pokemon, Pokemon._Fields>, java.io.Serializable, Cloneable, Comparable<Pokemon> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Pokemon");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Pokemon");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class PropertyItem implements org.apache.thrift.TBase<PropertyItem, PropertyItem._Fields>, java.io.Serializable, Cloneable, Comparable<PropertyItem> {
|
public class PropertyItem implements org.apache.thrift.TBase<PropertyItem, PropertyItem._Fields>, java.io.Serializable, Cloneable, Comparable<PropertyItem> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PropertyItem");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PropertyItem");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class PurpleMansionSeal implements org.apache.thrift.TBase<PurpleMansionSeal, PurpleMansionSeal._Fields>, java.io.Serializable, Cloneable, Comparable<PurpleMansionSeal> {
|
public class PurpleMansionSeal implements org.apache.thrift.TBase<PurpleMansionSeal, PurpleMansionSeal._Fields>, java.io.Serializable, Cloneable, Comparable<PurpleMansionSeal> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PurpleMansionSeal");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PurpleMansionSeal");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCMatchRequestIFace {
|
public class RPCMatchRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCRequestIFace {
|
public class RPCRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
@ -7150,13 +7150,13 @@ public class RPCRequestIFace {
|
||||||
case 0: // SUCCESS
|
case 0: // SUCCESS
|
||||||
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
|
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
|
||||||
{
|
{
|
||||||
org.apache.thrift.protocol.TSet _set272 = iprot.readSetBegin();
|
org.apache.thrift.protocol.TSet _set280 = iprot.readSetBegin();
|
||||||
struct.success = new HashSet<String>(2*_set272.size);
|
struct.success = new HashSet<String>(2*_set280.size);
|
||||||
String _elem273;
|
String _elem281;
|
||||||
for (int _i274 = 0; _i274 < _set272.size; ++_i274)
|
for (int _i282 = 0; _i282 < _set280.size; ++_i282)
|
||||||
{
|
{
|
||||||
_elem273 = iprot.readString();
|
_elem281 = iprot.readString();
|
||||||
struct.success.add(_elem273);
|
struct.success.add(_elem281);
|
||||||
}
|
}
|
||||||
iprot.readSetEnd();
|
iprot.readSetEnd();
|
||||||
}
|
}
|
||||||
|
@ -7184,9 +7184,9 @@ public class RPCRequestIFace {
|
||||||
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
||||||
{
|
{
|
||||||
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
|
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
|
||||||
for (String _iter275 : struct.success)
|
for (String _iter283 : struct.success)
|
||||||
{
|
{
|
||||||
oprot.writeString(_iter275);
|
oprot.writeString(_iter283);
|
||||||
}
|
}
|
||||||
oprot.writeSetEnd();
|
oprot.writeSetEnd();
|
||||||
}
|
}
|
||||||
|
@ -7217,9 +7217,9 @@ public class RPCRequestIFace {
|
||||||
if (struct.isSetSuccess()) {
|
if (struct.isSetSuccess()) {
|
||||||
{
|
{
|
||||||
oprot.writeI32(struct.success.size());
|
oprot.writeI32(struct.success.size());
|
||||||
for (String _iter276 : struct.success)
|
for (String _iter284 : struct.success)
|
||||||
{
|
{
|
||||||
oprot.writeString(_iter276);
|
oprot.writeString(_iter284);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7231,13 +7231,13 @@ public class RPCRequestIFace {
|
||||||
BitSet incoming = iprot.readBitSet(1);
|
BitSet incoming = iprot.readBitSet(1);
|
||||||
if (incoming.get(0)) {
|
if (incoming.get(0)) {
|
||||||
{
|
{
|
||||||
org.apache.thrift.protocol.TSet _set277 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
|
org.apache.thrift.protocol.TSet _set285 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
|
||||||
struct.success = new HashSet<String>(2*_set277.size);
|
struct.success = new HashSet<String>(2*_set285.size);
|
||||||
String _elem278;
|
String _elem286;
|
||||||
for (int _i279 = 0; _i279 < _set277.size; ++_i279)
|
for (int _i287 = 0; _i287 < _set285.size; ++_i287)
|
||||||
{
|
{
|
||||||
_elem278 = iprot.readString();
|
_elem286 = iprot.readString();
|
||||||
struct.success.add(_elem278);
|
struct.success.add(_elem286);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
struct.setSuccessIsSet(true);
|
struct.setSuccessIsSet(true);
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RechargeResult implements org.apache.thrift.TBase<RechargeResult, RechargeResult._Fields>, java.io.Serializable, Cloneable, Comparable<RechargeResult> {
|
public class RechargeResult implements org.apache.thrift.TBase<RechargeResult, RechargeResult._Fields>, java.io.Serializable, Cloneable, Comparable<RechargeResult> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RechargeResult");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RechargeResult");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class Result implements org.apache.thrift.TBase<Result, Result._Fields>, java.io.Serializable, Cloneable, Comparable<Result> {
|
public class Result implements org.apache.thrift.TBase<Result, Result._Fields>, java.io.Serializable, Cloneable, Comparable<Result> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Result");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Result");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class SixiangxinfaInfo implements org.apache.thrift.TBase<SixiangxinfaInfo, SixiangxinfaInfo._Fields>, java.io.Serializable, Cloneable, Comparable<SixiangxinfaInfo> {
|
public class SixiangxinfaInfo implements org.apache.thrift.TBase<SixiangxinfaInfo, SixiangxinfaInfo._Fields>, java.io.Serializable, Cloneable, Comparable<SixiangxinfaInfo> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SixiangxinfaInfo");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SixiangxinfaInfo");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class SixiangxinfaPropertyInfo implements org.apache.thrift.TBase<SixiangxinfaPropertyInfo, SixiangxinfaPropertyInfo._Fields>, java.io.Serializable, Cloneable, Comparable<SixiangxinfaPropertyInfo> {
|
public class SixiangxinfaPropertyInfo implements org.apache.thrift.TBase<SixiangxinfaPropertyInfo, SixiangxinfaPropertyInfo._Fields>, java.io.Serializable, Cloneable, Comparable<SixiangxinfaPropertyInfo> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SixiangxinfaPropertyInfo");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SixiangxinfaPropertyInfo");
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* ArenaOfHeroManager 结构体
|
* ArenaOfHeroManager 结构体
|
||||||
*/
|
*/
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class TeamPosHeroInfo implements org.apache.thrift.TBase<TeamPosHeroInfo, TeamPosHeroInfo._Fields>, java.io.Serializable, Cloneable, Comparable<TeamPosHeroInfo> {
|
public class TeamPosHeroInfo implements org.apache.thrift.TBase<TeamPosHeroInfo, TeamPosHeroInfo._Fields>, java.io.Serializable, Cloneable, Comparable<TeamPosHeroInfo> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TeamPosHeroInfo");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TeamPosHeroInfo");
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,593 @@
|
||||||
|
/**
|
||||||
|
* Autogenerated by Thrift Compiler (0.9.2)
|
||||||
|
*
|
||||||
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
|
* @generated
|
||||||
|
*/
|
||||||
|
package com.ljsd.jieling.thrift.idl;
|
||||||
|
|
||||||
|
import org.apache.thrift.scheme.IScheme;
|
||||||
|
import org.apache.thrift.scheme.SchemeFactory;
|
||||||
|
import org.apache.thrift.scheme.StandardScheme;
|
||||||
|
|
||||||
|
import org.apache.thrift.scheme.TupleScheme;
|
||||||
|
import org.apache.thrift.protocol.TTupleProtocol;
|
||||||
|
import org.apache.thrift.protocol.TProtocolException;
|
||||||
|
import org.apache.thrift.EncodingUtils;
|
||||||
|
import org.apache.thrift.TException;
|
||||||
|
import org.apache.thrift.async.AsyncMethodCallback;
|
||||||
|
import org.apache.thrift.server.AbstractNonblockingServer.*;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.EnumMap;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.EnumSet;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.BitSet;
|
||||||
|
import java.nio.ByteBuffer;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
|
public class TransformationCardInfo implements org.apache.thrift.TBase<TransformationCardInfo, TransformationCardInfo._Fields>, java.io.Serializable, Cloneable, Comparable<TransformationCardInfo> {
|
||||||
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TransformationCardInfo");
|
||||||
|
|
||||||
|
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1);
|
||||||
|
private static final org.apache.thrift.protocol.TField INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("index", org.apache.thrift.protocol.TType.I32, (short)2);
|
||||||
|
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)3);
|
||||||
|
|
||||||
|
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
|
||||||
|
static {
|
||||||
|
schemes.put(StandardScheme.class, new TransformationCardInfoStandardSchemeFactory());
|
||||||
|
schemes.put(TupleScheme.class, new TransformationCardInfoTupleSchemeFactory());
|
||||||
|
}
|
||||||
|
|
||||||
|
public int id; // optional
|
||||||
|
public int index; // optional
|
||||||
|
public int status; // optional
|
||||||
|
|
||||||
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
|
ID((short)1, "id"),
|
||||||
|
INDEX((short)2, "index"),
|
||||||
|
STATUS((short)3, "status");
|
||||||
|
|
||||||
|
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
||||||
|
byName.put(field.getFieldName(), field);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the _Fields constant that matches fieldId, or null if its not found.
|
||||||
|
*/
|
||||||
|
public static _Fields findByThriftId(int fieldId) {
|
||||||
|
switch(fieldId) {
|
||||||
|
case 1: // ID
|
||||||
|
return ID;
|
||||||
|
case 2: // INDEX
|
||||||
|
return INDEX;
|
||||||
|
case 3: // STATUS
|
||||||
|
return STATUS;
|
||||||
|
default:
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the _Fields constant that matches fieldId, throwing an exception
|
||||||
|
* if it is not found.
|
||||||
|
*/
|
||||||
|
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
||||||
|
_Fields fields = findByThriftId(fieldId);
|
||||||
|
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
||||||
|
return fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the _Fields constant that matches name, or null if its not found.
|
||||||
|
*/
|
||||||
|
public static _Fields findByName(String name) {
|
||||||
|
return byName.get(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
private final short _thriftId;
|
||||||
|
private final String _fieldName;
|
||||||
|
|
||||||
|
_Fields(short thriftId, String fieldName) {
|
||||||
|
_thriftId = thriftId;
|
||||||
|
_fieldName = fieldName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public short getThriftFieldId() {
|
||||||
|
return _thriftId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFieldName() {
|
||||||
|
return _fieldName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// isset id assignments
|
||||||
|
private static final int __ID_ISSET_ID = 0;
|
||||||
|
private static final int __INDEX_ISSET_ID = 1;
|
||||||
|
private static final int __STATUS_ISSET_ID = 2;
|
||||||
|
private byte __isset_bitfield = 0;
|
||||||
|
private static final _Fields optionals[] = {_Fields.ID,_Fields.INDEX,_Fields.STATUS};
|
||||||
|
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
||||||
|
static {
|
||||||
|
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
||||||
|
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
||||||
|
tmpMap.put(_Fields.INDEX, new org.apache.thrift.meta_data.FieldMetaData("index", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
||||||
|
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
||||||
|
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
||||||
|
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TransformationCardInfo.class, metaDataMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformationCardInfo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Performs a deep copy on <i>other</i>.
|
||||||
|
*/
|
||||||
|
public TransformationCardInfo(TransformationCardInfo other) {
|
||||||
|
__isset_bitfield = other.__isset_bitfield;
|
||||||
|
this.id = other.id;
|
||||||
|
this.index = other.index;
|
||||||
|
this.status = other.status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformationCardInfo deepCopy() {
|
||||||
|
return new TransformationCardInfo(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clear() {
|
||||||
|
setIdIsSet(false);
|
||||||
|
this.id = 0;
|
||||||
|
setIndexIsSet(false);
|
||||||
|
this.index = 0;
|
||||||
|
setStatusIsSet(false);
|
||||||
|
this.status = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformationCardInfo setId(int id) {
|
||||||
|
this.id = id;
|
||||||
|
setIdIsSet(true);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void unsetId() {
|
||||||
|
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
||||||
|
public boolean isSetId() {
|
||||||
|
return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdIsSet(boolean value) {
|
||||||
|
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getIndex() {
|
||||||
|
return this.index;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformationCardInfo setIndex(int index) {
|
||||||
|
this.index = index;
|
||||||
|
setIndexIsSet(true);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void unsetIndex() {
|
||||||
|
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INDEX_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Returns true if field index is set (has been assigned a value) and false otherwise */
|
||||||
|
public boolean isSetIndex() {
|
||||||
|
return EncodingUtils.testBit(__isset_bitfield, __INDEX_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndexIsSet(boolean value) {
|
||||||
|
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INDEX_ISSET_ID, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getStatus() {
|
||||||
|
return this.status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformationCardInfo setStatus(int status) {
|
||||||
|
this.status = status;
|
||||||
|
setStatusIsSet(true);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void unsetStatus() {
|
||||||
|
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STATUS_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
||||||
|
public boolean isSetStatus() {
|
||||||
|
return EncodingUtils.testBit(__isset_bitfield, __STATUS_ISSET_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusIsSet(boolean value) {
|
||||||
|
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STATUS_ISSET_ID, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFieldValue(_Fields field, Object value) {
|
||||||
|
switch (field) {
|
||||||
|
case ID:
|
||||||
|
if (value == null) {
|
||||||
|
unsetId();
|
||||||
|
} else {
|
||||||
|
setId((Integer)value);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case INDEX:
|
||||||
|
if (value == null) {
|
||||||
|
unsetIndex();
|
||||||
|
} else {
|
||||||
|
setIndex((Integer)value);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case STATUS:
|
||||||
|
if (value == null) {
|
||||||
|
unsetStatus();
|
||||||
|
} else {
|
||||||
|
setStatus((Integer)value);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getFieldValue(_Fields field) {
|
||||||
|
switch (field) {
|
||||||
|
case ID:
|
||||||
|
return Integer.valueOf(getId());
|
||||||
|
|
||||||
|
case INDEX:
|
||||||
|
return Integer.valueOf(getIndex());
|
||||||
|
|
||||||
|
case STATUS:
|
||||||
|
return Integer.valueOf(getStatus());
|
||||||
|
|
||||||
|
}
|
||||||
|
throw new IllegalStateException();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
||||||
|
public boolean isSet(_Fields field) {
|
||||||
|
if (field == null) {
|
||||||
|
throw new IllegalArgumentException();
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (field) {
|
||||||
|
case ID:
|
||||||
|
return isSetId();
|
||||||
|
case INDEX:
|
||||||
|
return isSetIndex();
|
||||||
|
case STATUS:
|
||||||
|
return isSetStatus();
|
||||||
|
}
|
||||||
|
throw new IllegalStateException();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object that) {
|
||||||
|
if (that == null)
|
||||||
|
return false;
|
||||||
|
if (that instanceof TransformationCardInfo)
|
||||||
|
return this.equals((TransformationCardInfo)that);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean equals(TransformationCardInfo that) {
|
||||||
|
if (that == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
boolean this_present_id = true && this.isSetId();
|
||||||
|
boolean that_present_id = true && that.isSetId();
|
||||||
|
if (this_present_id || that_present_id) {
|
||||||
|
if (!(this_present_id && that_present_id))
|
||||||
|
return false;
|
||||||
|
if (this.id != that.id)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean this_present_index = true && this.isSetIndex();
|
||||||
|
boolean that_present_index = true && that.isSetIndex();
|
||||||
|
if (this_present_index || that_present_index) {
|
||||||
|
if (!(this_present_index && that_present_index))
|
||||||
|
return false;
|
||||||
|
if (this.index != that.index)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean this_present_status = true && this.isSetStatus();
|
||||||
|
boolean that_present_status = true && that.isSetStatus();
|
||||||
|
if (this_present_status || that_present_status) {
|
||||||
|
if (!(this_present_status && that_present_status))
|
||||||
|
return false;
|
||||||
|
if (this.status != that.status)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
List<Object> list = new ArrayList<Object>();
|
||||||
|
|
||||||
|
boolean present_id = true && (isSetId());
|
||||||
|
list.add(present_id);
|
||||||
|
if (present_id)
|
||||||
|
list.add(id);
|
||||||
|
|
||||||
|
boolean present_index = true && (isSetIndex());
|
||||||
|
list.add(present_index);
|
||||||
|
if (present_index)
|
||||||
|
list.add(index);
|
||||||
|
|
||||||
|
boolean present_status = true && (isSetStatus());
|
||||||
|
list.add(present_status);
|
||||||
|
if (present_status)
|
||||||
|
list.add(status);
|
||||||
|
|
||||||
|
return list.hashCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int compareTo(TransformationCardInfo other) {
|
||||||
|
if (!getClass().equals(other.getClass())) {
|
||||||
|
return getClass().getName().compareTo(other.getClass().getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
int lastComparison = 0;
|
||||||
|
|
||||||
|
lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId());
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
if (isSetId()) {
|
||||||
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
lastComparison = Boolean.valueOf(isSetIndex()).compareTo(other.isSetIndex());
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
if (isSetIndex()) {
|
||||||
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index, other.index);
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
if (isSetStatus()) {
|
||||||
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
|
||||||
|
if (lastComparison != 0) {
|
||||||
|
return lastComparison;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public _Fields fieldForId(int fieldId) {
|
||||||
|
return _Fields.findByThriftId(fieldId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
||||||
|
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
||||||
|
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("TransformationCardInfo(");
|
||||||
|
boolean first = true;
|
||||||
|
|
||||||
|
if (isSetId()) {
|
||||||
|
sb.append("id:");
|
||||||
|
sb.append(this.id);
|
||||||
|
first = false;
|
||||||
|
}
|
||||||
|
if (isSetIndex()) {
|
||||||
|
if (!first) sb.append(", ");
|
||||||
|
sb.append("index:");
|
||||||
|
sb.append(this.index);
|
||||||
|
first = false;
|
||||||
|
}
|
||||||
|
if (isSetStatus()) {
|
||||||
|
if (!first) sb.append(", ");
|
||||||
|
sb.append("status:");
|
||||||
|
sb.append(this.status);
|
||||||
|
first = false;
|
||||||
|
}
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void validate() throws org.apache.thrift.TException {
|
||||||
|
// check for required fields
|
||||||
|
// check for sub-struct validity
|
||||||
|
}
|
||||||
|
|
||||||
|
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
||||||
|
try {
|
||||||
|
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
||||||
|
} catch (org.apache.thrift.TException te) {
|
||||||
|
throw new java.io.IOException(te);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
||||||
|
try {
|
||||||
|
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
||||||
|
__isset_bitfield = 0;
|
||||||
|
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
||||||
|
} catch (org.apache.thrift.TException te) {
|
||||||
|
throw new java.io.IOException(te);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class TransformationCardInfoStandardSchemeFactory implements SchemeFactory {
|
||||||
|
public TransformationCardInfoStandardScheme getScheme() {
|
||||||
|
return new TransformationCardInfoStandardScheme();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class TransformationCardInfoStandardScheme extends StandardScheme<TransformationCardInfo> {
|
||||||
|
|
||||||
|
public void read(org.apache.thrift.protocol.TProtocol iprot, TransformationCardInfo struct) throws org.apache.thrift.TException {
|
||||||
|
org.apache.thrift.protocol.TField schemeField;
|
||||||
|
iprot.readStructBegin();
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
schemeField = iprot.readFieldBegin();
|
||||||
|
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
switch (schemeField.id) {
|
||||||
|
case 1: // ID
|
||||||
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
||||||
|
struct.id = iprot.readI32();
|
||||||
|
struct.setIdIsSet(true);
|
||||||
|
} else {
|
||||||
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 2: // INDEX
|
||||||
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
||||||
|
struct.index = iprot.readI32();
|
||||||
|
struct.setIndexIsSet(true);
|
||||||
|
} else {
|
||||||
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 3: // STATUS
|
||||||
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
||||||
|
struct.status = iprot.readI32();
|
||||||
|
struct.setStatusIsSet(true);
|
||||||
|
} else {
|
||||||
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
||||||
|
}
|
||||||
|
iprot.readFieldEnd();
|
||||||
|
}
|
||||||
|
iprot.readStructEnd();
|
||||||
|
|
||||||
|
// check for required fields of primitive type, which can't be checked in the validate method
|
||||||
|
struct.validate();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void write(org.apache.thrift.protocol.TProtocol oprot, TransformationCardInfo struct) throws org.apache.thrift.TException {
|
||||||
|
struct.validate();
|
||||||
|
|
||||||
|
oprot.writeStructBegin(STRUCT_DESC);
|
||||||
|
if (struct.isSetId()) {
|
||||||
|
oprot.writeFieldBegin(ID_FIELD_DESC);
|
||||||
|
oprot.writeI32(struct.id);
|
||||||
|
oprot.writeFieldEnd();
|
||||||
|
}
|
||||||
|
if (struct.isSetIndex()) {
|
||||||
|
oprot.writeFieldBegin(INDEX_FIELD_DESC);
|
||||||
|
oprot.writeI32(struct.index);
|
||||||
|
oprot.writeFieldEnd();
|
||||||
|
}
|
||||||
|
if (struct.isSetStatus()) {
|
||||||
|
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
||||||
|
oprot.writeI32(struct.status);
|
||||||
|
oprot.writeFieldEnd();
|
||||||
|
}
|
||||||
|
oprot.writeFieldStop();
|
||||||
|
oprot.writeStructEnd();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class TransformationCardInfoTupleSchemeFactory implements SchemeFactory {
|
||||||
|
public TransformationCardInfoTupleScheme getScheme() {
|
||||||
|
return new TransformationCardInfoTupleScheme();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class TransformationCardInfoTupleScheme extends TupleScheme<TransformationCardInfo> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void write(org.apache.thrift.protocol.TProtocol prot, TransformationCardInfo struct) throws org.apache.thrift.TException {
|
||||||
|
TTupleProtocol oprot = (TTupleProtocol) prot;
|
||||||
|
BitSet optionals = new BitSet();
|
||||||
|
if (struct.isSetId()) {
|
||||||
|
optionals.set(0);
|
||||||
|
}
|
||||||
|
if (struct.isSetIndex()) {
|
||||||
|
optionals.set(1);
|
||||||
|
}
|
||||||
|
if (struct.isSetStatus()) {
|
||||||
|
optionals.set(2);
|
||||||
|
}
|
||||||
|
oprot.writeBitSet(optionals, 3);
|
||||||
|
if (struct.isSetId()) {
|
||||||
|
oprot.writeI32(struct.id);
|
||||||
|
}
|
||||||
|
if (struct.isSetIndex()) {
|
||||||
|
oprot.writeI32(struct.index);
|
||||||
|
}
|
||||||
|
if (struct.isSetStatus()) {
|
||||||
|
oprot.writeI32(struct.status);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void read(org.apache.thrift.protocol.TProtocol prot, TransformationCardInfo struct) throws org.apache.thrift.TException {
|
||||||
|
TTupleProtocol iprot = (TTupleProtocol) prot;
|
||||||
|
BitSet incoming = iprot.readBitSet(3);
|
||||||
|
if (incoming.get(0)) {
|
||||||
|
struct.id = iprot.readI32();
|
||||||
|
struct.setIdIsSet(true);
|
||||||
|
}
|
||||||
|
if (incoming.get(1)) {
|
||||||
|
struct.index = iprot.readI32();
|
||||||
|
struct.setIndexIsSet(true);
|
||||||
|
}
|
||||||
|
if (incoming.get(2)) {
|
||||||
|
struct.status = iprot.readI32();
|
||||||
|
struct.setStatusIsSet(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class UserMountInfo implements org.apache.thrift.TBase<UserMountInfo, UserMountInfo._Fields>, java.io.Serializable, Cloneable, Comparable<UserMountInfo> {
|
public class UserMountInfo implements org.apache.thrift.TBase<UserMountInfo, UserMountInfo._Fields>, java.io.Serializable, Cloneable, Comparable<UserMountInfo> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserMountInfo");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserMountInfo");
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Structs can also be exceptions, if they are nasty.
|
* Structs can also be exceptions, if they are nasty.
|
||||||
*/
|
*/
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCgTwRequestIFace {
|
public class RPCgTwRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCwTgRequestIFace {
|
public class RPCwTgRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Structs can also be exceptions, if they are nasty.
|
* Structs can also be exceptions, if they are nasty.
|
||||||
*/
|
*/
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
public class InnerInvalidOperException extends TException implements org.apache.thrift.TBase<InnerInvalidOperException, InnerInvalidOperException._Fields>, java.io.Serializable, Cloneable, Comparable<InnerInvalidOperException> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerInvalidOperException");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
public class InnerResult implements org.apache.thrift.TBase<InnerResult, InnerResult._Fields>, java.io.Serializable, Cloneable, Comparable<InnerResult> {
|
||||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerResult");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCgTwRequestIFace {
|
public class RPCgTwRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-14")
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2022-1-15")
|
||||||
public class RPCwTgRequestIFace {
|
public class RPCwTgRequestIFace {
|
||||||
|
|
||||||
public interface Iface {
|
public interface Iface {
|
||||||
|
|
Loading…
Reference in New Issue