public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.List) { { MessageBoxWrapUpList = new List <TMessageBoxWrapUp>(); TList _list77 = iprot.ReadListBegin(); for (int _i78 = 0; _i78 < _list77.Count; ++_i78) { TMessageBoxWrapUp _elem79 = new TMessageBoxWrapUp(); _elem79 = new TMessageBoxWrapUp(); _elem79.Read(iprot); MessageBoxWrapUpList.Add(_elem79); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { TotalSize = iprot.ReadI32(); } 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 1: if (field.Type == TType.List) { { MessageBoxWrapUpList = new List<TMessageBoxWrapUp>(); TList _list77 = iprot.ReadListBegin(); for( int _i78 = 0; _i78 < _list77.Count; ++_i78) { TMessageBoxWrapUp _elem79 = new TMessageBoxWrapUp(); _elem79 = new TMessageBoxWrapUp(); _elem79.Read(iprot); MessageBoxWrapUpList.Add(_elem79); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { TotalSize = iprot.ReadI32(); } 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 0: if (field.Type == TType.Struct) { Success = new TMessageBoxWrapUp(); Success.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 1: if (field.Type == TType.Struct) { E = new TalkException(); E.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }