Ejemplo n.º 1
0
 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.Struct) {
                     AsapiEx = new AsapiException();
                     AsapiEx.Read(iprot);
                 } else {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             default:
                 TProtocolUtil.Skip(iprot, field.Type);
                 break;
         }
         iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
Ejemplo n.º 2
0
 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.List) {
                     {
                         Success = new List<string>();
                         TList _list36 = iprot.ReadListBegin();
                         for (int _i37 = 0; _i37 < _list36.Count; ++_i37) {
                             string _elem38 = null;
                             _elem38 = iprot.ReadString();
                             Success.Add(_elem38);
                         }
                         iprot.ReadListEnd();
                     }
                 } else {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             case 1:
                 if (field.Type == TType.Struct) {
                     AsapiEx = new AsapiException();
                     AsapiEx.Read(iprot);
                 } else {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             default:
                 TProtocolUtil.Skip(iprot, field.Type);
                 break;
         }
         iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }