コード例 #1
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('PublicUserInfo')
     if self.userId is not None:
         oprot.writeFieldBegin('userId', TType.I32, 1)
         oprot.writeI32(self.userId)
         oprot.writeFieldEnd()
     if self.shardId is not None:
         oprot.writeFieldBegin('shardId', TType.STRING, 2)
         oprot.writeString(self.shardId)
         oprot.writeFieldEnd()
     if self.privilege is not None:
         oprot.writeFieldBegin('privilege', TType.I32, 3)
         oprot.writeI32(self.privilege)
         oprot.writeFieldEnd()
     if self.username is not None:
         oprot.writeFieldBegin('username', TType.STRING, 4)
         oprot.writeString(self.username)
         oprot.writeFieldEnd()
     if self.noteStoreUrl is not None:
         oprot.writeFieldBegin('noteStoreUrl', TType.STRING, 5)
         oprot.writeString(self.noteStoreUrl)
         oprot.writeFieldEnd()
     if self.webApiUrlPrefix is not None:
         oprot.writeFieldBegin('webApiUrlPrefix', TType.STRING, 6)
         oprot.writeString(self.webApiUrlPrefix)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
コード例 #2
0
ファイル: ttypes.py プロジェクト: Scriptkiddi/anknotes
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('PublicUserInfo')
   if self.userId is not None:
     oprot.writeFieldBegin('userId', TType.I32, 1)
     oprot.writeI32(self.userId)
     oprot.writeFieldEnd()
   if self.shardId is not None:
     oprot.writeFieldBegin('shardId', TType.STRING, 2)
     oprot.writeString(self.shardId)
     oprot.writeFieldEnd()
   if self.privilege is not None:
     oprot.writeFieldBegin('privilege', TType.I32, 3)
     oprot.writeI32(self.privilege)
     oprot.writeFieldEnd()
   if self.username is not None:
     oprot.writeFieldBegin('username', TType.STRING, 4)
     oprot.writeString(self.username)
     oprot.writeFieldEnd()
   if self.noteStoreUrl is not None:
     oprot.writeFieldBegin('noteStoreUrl', TType.STRING, 5)
     oprot.writeString(self.noteStoreUrl)
     oprot.writeFieldEnd()
   if self.webApiUrlPrefix is not None:
     oprot.writeFieldBegin('webApiUrlPrefix', TType.STRING, 6)
     oprot.writeString(self.webApiUrlPrefix)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
コード例 #3
0
ファイル: ttypes.py プロジェクト: Scriptkiddi/anknotes
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('BootstrapSettings')
   if self.serviceHost is not None:
     oprot.writeFieldBegin('serviceHost', TType.STRING, 1)
     oprot.writeString(self.serviceHost)
     oprot.writeFieldEnd()
   if self.marketingUrl is not None:
     oprot.writeFieldBegin('marketingUrl', TType.STRING, 2)
     oprot.writeString(self.marketingUrl)
     oprot.writeFieldEnd()
   if self.supportUrl is not None:
     oprot.writeFieldBegin('supportUrl', TType.STRING, 3)
     oprot.writeString(self.supportUrl)
     oprot.writeFieldEnd()
   if self.accountEmailDomain is not None:
     oprot.writeFieldBegin('accountEmailDomain', TType.STRING, 4)
     oprot.writeString(self.accountEmailDomain)
     oprot.writeFieldEnd()
   if self.enableFacebookSharing is not None:
     oprot.writeFieldBegin('enableFacebookSharing', TType.BOOL, 5)
     oprot.writeBool(self.enableFacebookSharing)
     oprot.writeFieldEnd()
   if self.enableGiftSubscriptions is not None:
     oprot.writeFieldBegin('enableGiftSubscriptions', TType.BOOL, 6)
     oprot.writeBool(self.enableGiftSubscriptions)
     oprot.writeFieldEnd()
   if self.enableSupportTickets is not None:
     oprot.writeFieldBegin('enableSupportTickets', TType.BOOL, 7)
     oprot.writeBool(self.enableSupportTickets)
     oprot.writeFieldEnd()
   if self.enableSharedNotebooks is not None:
     oprot.writeFieldBegin('enableSharedNotebooks', TType.BOOL, 8)
     oprot.writeBool(self.enableSharedNotebooks)
     oprot.writeFieldEnd()
   if self.enableSingleNoteSharing is not None:
     oprot.writeFieldBegin('enableSingleNoteSharing', TType.BOOL, 9)
     oprot.writeBool(self.enableSingleNoteSharing)
     oprot.writeFieldEnd()
   if self.enableSponsoredAccounts is not None:
     oprot.writeFieldBegin('enableSponsoredAccounts', TType.BOOL, 10)
     oprot.writeBool(self.enableSponsoredAccounts)
     oprot.writeFieldEnd()
   if self.enableTwitterSharing is not None:
     oprot.writeFieldBegin('enableTwitterSharing', TType.BOOL, 11)
     oprot.writeBool(self.enableTwitterSharing)
     oprot.writeFieldEnd()
   if self.enableLinkedInSharing is not None:
     oprot.writeFieldBegin('enableLinkedInSharing', TType.BOOL, 12)
     oprot.writeBool(self.enableLinkedInSharing)
     oprot.writeFieldEnd()
   if self.enablePublicNotebooks is not None:
     oprot.writeFieldBegin('enablePublicNotebooks', TType.BOOL, 13)
     oprot.writeBool(self.enablePublicNotebooks)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
コード例 #4
0
ファイル: ttypes.py プロジェクト: Scriptkiddi/anknotes
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('BootstrapInfo')
   if self.profiles is not None:
     oprot.writeFieldBegin('profiles', TType.LIST, 1)
     oprot.writeListBegin(TType.STRUCT, len(self.profiles))
     for iter6 in self.profiles:
       iter6.write(oprot)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
コード例 #5
0
ファイル: ttypes.py プロジェクト: Scriptkiddi/anknotes
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('EDAMNotFoundException')
   if self.identifier is not None:
     oprot.writeFieldBegin('identifier', TType.STRING, 1)
     oprot.writeString(self.identifier)
     oprot.writeFieldEnd()
   if self.key is not None:
     oprot.writeFieldBegin('key', TType.STRING, 2)
     oprot.writeString(self.key)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
コード例 #6
0
ファイル: ttypes.py プロジェクト: Scriptkiddi/anknotes
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('EDAMUserException')
   if self.errorCode is not None:
     oprot.writeFieldBegin('errorCode', TType.I32, 1)
     oprot.writeI32(self.errorCode)
     oprot.writeFieldEnd()
   if self.parameter is not None:
     oprot.writeFieldBegin('parameter', TType.STRING, 2)
     oprot.writeString(self.parameter)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
コード例 #7
0
ファイル: ttypes.py プロジェクト: Scriptkiddi/anknotes
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('BootstrapProfile')
   if self.name is not None:
     oprot.writeFieldBegin('name', TType.STRING, 1)
     oprot.writeString(self.name)
     oprot.writeFieldEnd()
   if self.settings is not None:
     oprot.writeFieldBegin('settings', TType.STRUCT, 2)
     self.settings.write(oprot)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
コード例 #8
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('BootstrapInfo')
     if self.profiles is not None:
         oprot.writeFieldBegin('profiles', TType.LIST, 1)
         oprot.writeListBegin(TType.STRUCT, len(self.profiles))
         for iter6 in self.profiles:
             iter6.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
コード例 #9
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('BootstrapProfile')
     if self.name is not None:
         oprot.writeFieldBegin('name', TType.STRING, 1)
         oprot.writeString(self.name)
         oprot.writeFieldEnd()
     if self.settings is not None:
         oprot.writeFieldBegin('settings', TType.STRUCT, 2)
         self.settings.write(oprot)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
コード例 #10
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('EDAMNotFoundException')
     if self.identifier is not None:
         oprot.writeFieldBegin('identifier', TType.STRING, 1)
         oprot.writeString(self.identifier)
         oprot.writeFieldEnd()
     if self.key is not None:
         oprot.writeFieldBegin('key', TType.STRING, 2)
         oprot.writeString(self.key)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
コード例 #11
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('EDAMUserException')
     if self.errorCode is not None:
         oprot.writeFieldBegin('errorCode', TType.I32, 1)
         oprot.writeI32(self.errorCode)
         oprot.writeFieldEnd()
     if self.parameter is not None:
         oprot.writeFieldBegin('parameter', TType.STRING, 2)
         oprot.writeString(self.parameter)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
コード例 #12
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('AuthenticationResult')
     if self.currentTime is not None:
         oprot.writeFieldBegin('currentTime', TType.I64, 1)
         oprot.writeI64(self.currentTime)
         oprot.writeFieldEnd()
     if self.authenticationToken is not None:
         oprot.writeFieldBegin('authenticationToken', TType.STRING, 2)
         oprot.writeString(self.authenticationToken)
         oprot.writeFieldEnd()
     if self.expiration is not None:
         oprot.writeFieldBegin('expiration', TType.I64, 3)
         oprot.writeI64(self.expiration)
         oprot.writeFieldEnd()
     if self.user is not None:
         oprot.writeFieldBegin('user', TType.STRUCT, 4)
         self.user.write(oprot)
         oprot.writeFieldEnd()
     if self.publicUserInfo is not None:
         oprot.writeFieldBegin('publicUserInfo', TType.STRUCT, 5)
         self.publicUserInfo.write(oprot)
         oprot.writeFieldEnd()
     if self.noteStoreUrl is not None:
         oprot.writeFieldBegin('noteStoreUrl', TType.STRING, 6)
         oprot.writeString(self.noteStoreUrl)
         oprot.writeFieldEnd()
     if self.webApiUrlPrefix is not None:
         oprot.writeFieldBegin('webApiUrlPrefix', TType.STRING, 7)
         oprot.writeString(self.webApiUrlPrefix)
         oprot.writeFieldEnd()
     if self.secondFactorRequired is not None:
         oprot.writeFieldBegin('secondFactorRequired', TType.BOOL, 8)
         oprot.writeBool(self.secondFactorRequired)
         oprot.writeFieldEnd()
     if self.secondFactorDeliveryHint is not None:
         oprot.writeFieldBegin('secondFactorDeliveryHint', TType.STRING, 9)
         oprot.writeString(self.secondFactorDeliveryHint)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
コード例 #13
0
ファイル: ttypes.py プロジェクト: Scriptkiddi/anknotes
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('EDAMSystemException')
   if self.errorCode is not None:
     oprot.writeFieldBegin('errorCode', TType.I32, 1)
     oprot.writeI32(self.errorCode)
     oprot.writeFieldEnd()
   if self.message is not None:
     oprot.writeFieldBegin('message', TType.STRING, 2)
     oprot.writeString(self.message)
     oprot.writeFieldEnd()
   if self.rateLimitDuration is not None:
     oprot.writeFieldBegin('rateLimitDuration', TType.I32, 3)
     oprot.writeI32(self.rateLimitDuration)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
コード例 #14
0
ファイル: ttypes.py プロジェクト: Scriptkiddi/anknotes
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('AuthenticationResult')
   if self.currentTime is not None:
     oprot.writeFieldBegin('currentTime', TType.I64, 1)
     oprot.writeI64(self.currentTime)
     oprot.writeFieldEnd()
   if self.authenticationToken is not None:
     oprot.writeFieldBegin('authenticationToken', TType.STRING, 2)
     oprot.writeString(self.authenticationToken)
     oprot.writeFieldEnd()
   if self.expiration is not None:
     oprot.writeFieldBegin('expiration', TType.I64, 3)
     oprot.writeI64(self.expiration)
     oprot.writeFieldEnd()
   if self.user is not None:
     oprot.writeFieldBegin('user', TType.STRUCT, 4)
     self.user.write(oprot)
     oprot.writeFieldEnd()
   if self.publicUserInfo is not None:
     oprot.writeFieldBegin('publicUserInfo', TType.STRUCT, 5)
     self.publicUserInfo.write(oprot)
     oprot.writeFieldEnd()
   if self.noteStoreUrl is not None:
     oprot.writeFieldBegin('noteStoreUrl', TType.STRING, 6)
     oprot.writeString(self.noteStoreUrl)
     oprot.writeFieldEnd()
   if self.webApiUrlPrefix is not None:
     oprot.writeFieldBegin('webApiUrlPrefix', TType.STRING, 7)
     oprot.writeString(self.webApiUrlPrefix)
     oprot.writeFieldEnd()
   if self.secondFactorRequired is not None:
     oprot.writeFieldBegin('secondFactorRequired', TType.BOOL, 8)
     oprot.writeBool(self.secondFactorRequired)
     oprot.writeFieldEnd()
   if self.secondFactorDeliveryHint is not None:
     oprot.writeFieldBegin('secondFactorDeliveryHint', TType.STRING, 9)
     oprot.writeString(self.secondFactorDeliveryHint)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
コード例 #15
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('EDAMSystemException')
     if self.errorCode is not None:
         oprot.writeFieldBegin('errorCode', TType.I32, 1)
         oprot.writeI32(self.errorCode)
         oprot.writeFieldEnd()
     if self.message is not None:
         oprot.writeFieldBegin('message', TType.STRING, 2)
         oprot.writeString(self.message)
         oprot.writeFieldEnd()
     if self.rateLimitDuration is not None:
         oprot.writeFieldBegin('rateLimitDuration', TType.I32, 3)
         oprot.writeI32(self.rateLimitDuration)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
コード例 #16
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('BootstrapSettings')
     if self.serviceHost is not None:
         oprot.writeFieldBegin('serviceHost', TType.STRING, 1)
         oprot.writeString(self.serviceHost)
         oprot.writeFieldEnd()
     if self.marketingUrl is not None:
         oprot.writeFieldBegin('marketingUrl', TType.STRING, 2)
         oprot.writeString(self.marketingUrl)
         oprot.writeFieldEnd()
     if self.supportUrl is not None:
         oprot.writeFieldBegin('supportUrl', TType.STRING, 3)
         oprot.writeString(self.supportUrl)
         oprot.writeFieldEnd()
     if self.accountEmailDomain is not None:
         oprot.writeFieldBegin('accountEmailDomain', TType.STRING, 4)
         oprot.writeString(self.accountEmailDomain)
         oprot.writeFieldEnd()
     if self.enableFacebookSharing is not None:
         oprot.writeFieldBegin('enableFacebookSharing', TType.BOOL, 5)
         oprot.writeBool(self.enableFacebookSharing)
         oprot.writeFieldEnd()
     if self.enableGiftSubscriptions is not None:
         oprot.writeFieldBegin('enableGiftSubscriptions', TType.BOOL, 6)
         oprot.writeBool(self.enableGiftSubscriptions)
         oprot.writeFieldEnd()
     if self.enableSupportTickets is not None:
         oprot.writeFieldBegin('enableSupportTickets', TType.BOOL, 7)
         oprot.writeBool(self.enableSupportTickets)
         oprot.writeFieldEnd()
     if self.enableSharedNotebooks is not None:
         oprot.writeFieldBegin('enableSharedNotebooks', TType.BOOL, 8)
         oprot.writeBool(self.enableSharedNotebooks)
         oprot.writeFieldEnd()
     if self.enableSingleNoteSharing is not None:
         oprot.writeFieldBegin('enableSingleNoteSharing', TType.BOOL, 9)
         oprot.writeBool(self.enableSingleNoteSharing)
         oprot.writeFieldEnd()
     if self.enableSponsoredAccounts is not None:
         oprot.writeFieldBegin('enableSponsoredAccounts', TType.BOOL, 10)
         oprot.writeBool(self.enableSponsoredAccounts)
         oprot.writeFieldEnd()
     if self.enableTwitterSharing is not None:
         oprot.writeFieldBegin('enableTwitterSharing', TType.BOOL, 11)
         oprot.writeBool(self.enableTwitterSharing)
         oprot.writeFieldEnd()
     if self.enableLinkedInSharing is not None:
         oprot.writeFieldBegin('enableLinkedInSharing', TType.BOOL, 12)
         oprot.writeBool(self.enableLinkedInSharing)
         oprot.writeFieldEnd()
     if self.enablePublicNotebooks is not None:
         oprot.writeFieldBegin('enablePublicNotebooks', TType.BOOL, 13)
         oprot.writeBool(self.enablePublicNotebooks)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()