Esempio n. 1
0
        public override string ToString()
        {
            StringBuilder __sb = new StringBuilder("TMessages(");

            __sb.Append(", FromVssId: ");
            __sb.Append(FromVssId);
            __sb.Append(", FileOject: ");
            __sb.Append(FileOject == null ? "<null>" : FileOject.ToString());
            __sb.Append(", ProvideTime: ");
            __sb.Append(ProvideTime);
            __sb.Append(", FromApp: ");
            __sb.Append(FromApp);
            __sb.Append(", ProvideName: ");
            __sb.Append(ProvideName);
            __sb.Append(")");
            return(__sb.ToString());
        }
Esempio n. 2
0
        public void Write(TProtocol oprot)
        {
            TStruct struc = new TStruct("TMessages");

            oprot.WriteStructBegin(struc);
            TField field = new TField();

            field.Name = "FromVssId";
            field.Type = TType.String;
            field.ID   = 1;
            oprot.WriteFieldBegin(field);
            oprot.WriteString(FromVssId);
            oprot.WriteFieldEnd();
            field.Name = "FileOject";
            field.Type = TType.Struct;
            field.ID   = 2;
            oprot.WriteFieldBegin(field);
            FileOject.Write(oprot);
            oprot.WriteFieldEnd();
            field.Name = "ProvideTime";
            field.Type = TType.I32;
            field.ID   = 3;
            oprot.WriteFieldBegin(field);
            oprot.WriteI32(ProvideTime);
            oprot.WriteFieldEnd();
            field.Name = "FromApp";
            field.Type = TType.String;
            field.ID   = 4;
            oprot.WriteFieldBegin(field);
            oprot.WriteString(FromApp);
            oprot.WriteFieldEnd();
            field.Name = "ProvideName";
            field.Type = TType.String;
            field.ID   = 5;
            oprot.WriteFieldBegin(field);
            oprot.WriteString(ProvideName);
            oprot.WriteFieldEnd();
            oprot.WriteFieldStop();
            oprot.WriteStructEnd();
        }