Пример #1
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("EncryptionAlgorithm(");
            bool          __first = true;

            if (AES_GCM_V1 != null && __isset.AES_GCM_V1)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("AES_GCM_V1: ");
                __sb.Append(AES_GCM_V1 == null ? "<null>" : AES_GCM_V1.ToString());
            }
            if (AES_GCM_CTR_V1 != null && __isset.AES_GCM_CTR_V1)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("AES_GCM_CTR_V1: ");
                __sb.Append(AES_GCM_CTR_V1 == null ? "<null>" : AES_GCM_CTR_V1.ToString());
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
Пример #2
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("EncryptionAlgorithm");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (AES_GCM_V1 != null && __isset.AES_GCM_V1)
         {
             field.Name = "AES_GCM_V1";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             AES_GCM_V1.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (AES_GCM_CTR_V1 != null && __isset.AES_GCM_CTR_V1)
         {
             field.Name = "AES_GCM_CTR_V1";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             AES_GCM_CTR_V1.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }