public CqlResult(CqlResultType type) : this() { this.Type = type; }
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.I32) { Type = (CqlResultType)iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.List) { { Rows = new List<CqlRow>(); TList _list79 = iprot.ReadListBegin(); for( int _i80 = 0; _i80 < _list79.Count; ++_i80) { CqlRow _elem81 = new CqlRow(); _elem81 = new CqlRow(); _elem81.Read(iprot); Rows.Add(_elem81); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.I32) { Num = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Struct) { Schema = new CqlMetadata(); Schema.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }