public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 10: if (field.Type == TType.Struct) { FailSystemInfo = new NetWork.Auto.SystemInfo(); FailSystemInfo.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.Struct) { PlayerInfo = new NetWork.Auto.PlayerInfo(); PlayerInfo.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 10: if (field.Type == TType.Struct) { FailSystemInfo = new NetWork.Auto.SystemInfo(); FailSystemInfo.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.Struct) { PlayerInfo = new NetWork.Auto.PlayerInfo(); PlayerInfo.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }