Example #1
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIAbstractHARAPackage");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (UsedHARAPackage != null && __isset.UsedHARAPackage)
         {
             field.Name = "UsedHARAPackage";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             UsedHARAPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (__isset.UsedHARAPackageType)
         {
             field.Name = "UsedHARAPackageType";
             field.Type = TType.I32;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             oprot.WriteI32((int)UsedHARAPackageType);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }