Пример #1
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("SquareInfo");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (Square != null && __isset.square)
         {
             field.Name = "square";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             Square.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (SquareStatus != null && __isset.squareStatus)
         {
             field.Name = "squareStatus";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             SquareStatus.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (SquareNoteStatus != null && __isset.squareNoteStatus)
         {
             field.Name = "squareNoteStatus";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             SquareNoteStatus.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
Пример #2
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("GetSquareResponse");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (Square != null && __isset.square)
         {
             field.Name = "square";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             Square.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (MyMembership != null && __isset.myMembership)
         {
             field.Name = "myMembership";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             MyMembership.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (SquareAuthority != null && __isset.squareAuthority)
         {
             field.Name = "squareAuthority";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             SquareAuthority.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (SquareStatus != null && __isset.squareStatus)
         {
             field.Name = "squareStatus";
             field.Type = TType.Struct;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             SquareStatus.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (SquareFeatureSet != null && __isset.squareFeatureSet)
         {
             field.Name = "squareFeatureSet";
             field.Type = TType.Struct;
             field.ID   = 5;
             oprot.WriteFieldBegin(field);
             SquareFeatureSet.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (NoteStatus != null && __isset.noteStatus)
         {
             field.Name = "noteStatus";
             field.Type = TType.Struct;
             field.ID   = 6;
             oprot.WriteFieldBegin(field);
             NoteStatus.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("SquareEventNotifiedCreateSquareMember");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (Square != null && __isset.square)
         {
             field.Name = "square";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             Square.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (SquareAuthority != null && __isset.squareAuthority)
         {
             field.Name = "squareAuthority";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             SquareAuthority.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (SquareStatus != null && __isset.squareStatus)
         {
             field.Name = "squareStatus";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             SquareStatus.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (SquareMember != null && __isset.squareMember)
         {
             field.Name = "squareMember";
             field.Type = TType.Struct;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             SquareMember.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (SquareFeatureSet != null && __isset.squareFeatureSet)
         {
             field.Name = "squareFeatureSet";
             field.Type = TType.Struct;
             field.ID   = 5;
             oprot.WriteFieldBegin(field);
             SquareFeatureSet.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }