コード例 #1
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("SmartTransInfo");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (V_tokenDeploy != null && __isset.v_tokenDeploy)
         {
             field.Name = "v_tokenDeploy";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             V_tokenDeploy.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (V_tokenTransfer != null && __isset.v_tokenTransfer)
         {
             field.Name = "v_tokenTransfer";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             V_tokenTransfer.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (V_smartDeploy != null && __isset.v_smartDeploy)
         {
             field.Name = "v_smartDeploy";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             V_smartDeploy.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (V_smartExecution != null && __isset.v_smartExecution)
         {
             field.Name = "v_smartExecution";
             field.Type = TType.Struct;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             V_smartExecution.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (V_smartState != null && __isset.v_smartState)
         {
             field.Name = "v_smartState";
             field.Type = TType.Struct;
             field.ID   = 5;
             oprot.WriteFieldBegin(field);
             V_smartState.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }