Пример #1
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.I64:
         self.currentTime = iprot.readI64();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.authenticationToken = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I64:
         self.expiration = iprot.readI64();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.STRUCT:
         self.user = evernote.edam.type.ttypes.User()
         self.user.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 5:
       if ftype == TType.STRUCT:
         self.publicUserInfo = PublicUserInfo()
         self.publicUserInfo.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 6:
       if ftype == TType.STRING:
         self.noteStoreUrl = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 7:
       if ftype == TType.STRING:
         self.webApiUrlPrefix = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 8:
       if ftype == TType.BOOL:
         self.secondFactorRequired = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 9:
       if ftype == TType.STRING:
         self.secondFactorDeliveryHint = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Пример #2
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.I32:
         self.errorCode = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.message = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.rateLimitDuration = iprot.readI32();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Пример #3
0
 def read(self, iprot):
   if (iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and
       isinstance(iprot.trans, TTransport.CReadableTransport) and
       self.thrift_spec is not None and
       fastbinary is not None):
     fastbinary.decode_binary(self,
                              iprot.trans,
                              (self.__class__, self.thrift_spec))
     return
   iprot.readStruct(self, self.thrift_spec)
Пример #4
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.I32:
         self.userId = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.shardId = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.privilege = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.STRING:
         self.username = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 5:
       if ftype == TType.STRING:
         self.noteStoreUrl = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 6:
       if ftype == TType.STRING:
         self.webApiUrlPrefix = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Пример #5
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.LIST:
         self.profiles = []
         (_etype3, _size0) = iprot.readListBegin()
         for _i4 in range(_size0):
           _elem5 = BootstrapProfile()
           _elem5.read(iprot)
           self.profiles.append(_elem5)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Пример #6
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.STRING:
         self.name = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRUCT:
         self.settings = BootstrapSettings()
         self.settings.read(iprot)
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Пример #7
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.STRING:
         self.serviceHost = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.marketingUrl = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.STRING:
         self.supportUrl = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.STRING:
         self.accountEmailDomain = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 5:
       if ftype == TType.BOOL:
         self.enableFacebookSharing = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 6:
       if ftype == TType.BOOL:
         self.enableGiftSubscriptions = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 7:
       if ftype == TType.BOOL:
         self.enableSupportTickets = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 8:
       if ftype == TType.BOOL:
         self.enableSharedNotebooks = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 9:
       if ftype == TType.BOOL:
         self.enableSingleNoteSharing = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 10:
       if ftype == TType.BOOL:
         self.enableSponsoredAccounts = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 11:
       if ftype == TType.BOOL:
         self.enableTwitterSharing = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 12:
       if ftype == TType.BOOL:
         self.enableLinkedInSharing = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 13:
       if ftype == TType.BOOL:
         self.enablePublicNotebooks = iprot.readBool();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()