Repository: alfathdirk/LIN3-TCR Branch: master Commit: 9781b9aacdab Files: 15 Total size: 2.8 MB Directory structure: gitextract_snh0bt2x/ ├── .gitignore ├── LINETCR/ │ ├── Api/ │ │ ├── LineTracer.py │ │ ├── Poll.py │ │ ├── Talk.py │ │ ├── __init__.py │ │ └── channel.py │ ├── LineApi.py │ ├── __init__.py │ └── lib/ │ ├── __init__.py │ └── curve/ │ ├── LineService.py │ ├── __init__.py │ ├── constants.py │ └── ttypes.py ├── README.md └── tcr.py ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ *.pyc ================================================ FILE: LINETCR/Api/LineTracer.py ================================================ # -*- coding: utf-8 -*- from .LineClient import LineClient from types import * from ..lib.curve.ttypes import OpType from ..Net.LineServer import url class LineTracer(object): OpInterrupt = {} client = None def __init__(self, client): if type(client) is not LineClient: raise Exception( "You need to set LineClient instance to initialize LineTracer") self.client = client self.client.endPoint(url.LONG_POLLING) def addOpInterruptWithDict(self, OpInterruptDict): """To add Operation with Callback function {Optype.NOTIFIED_INTO_GROUP: func}""" self.OpInterrupt.update(OpInterruptDict) def addOpInterrupt(self, OperationType, DisposeFunc): self.OpInterrupt[OperationType] = DisposeFunc def execute(self): try: operations = self.client.fetchOperation(self.client.revision, 10) #print "=======================================================" # print operations #print "=======================================================" except EOFError: return except KeyboardInterrupt: exit() except: return for op in operations: if op.type in self.OpInterrupt.keys(): #print "=======================================================" #print str(op.type) + "[" + str(op) + "]" #print "=======================================================" self.OpInterrupt[op.type](op) self.client.revision = max(op.revision, self.client.revision) ================================================ FILE: LINETCR/Api/Poll.py ================================================ import os, sys, time path = os.path.join(os.path.dirname(__file__), '../lib/') sys.path.insert(0, path) from thrift.transport import THttpClient from thrift.protocol import TCompactProtocol from curve import LineService from curve.ttypes import * class Poll: client = None auth_query_path = "/api/v4/TalkService.do"; http_query_path = "/S4"; polling_path = "/P4"; host = "gd2.line.naver.jp"; port = 443; UA = "Line/6.0.0 iPad4,1 9.0.2" LA = "DESKTOPMAC 10.10.2-YOSEMITE-x64 MAC 4.5.0" rev = 0 def __init__(self, authToken): self.transport = THttpClient.THttpClient('https://gd2.line.naver.jp:443'+ self.http_query_path) self.transport.setCustomHeaders({ "User-Agent" : self.UA, "X-Line-Application" : self.LA, "X-Line-Access": authToken }); self.protocol = TCompactProtocol.TCompactProtocol(self.transport); self.client = LineService.Client(self.protocol) self.rev = self.client.getLastOpRevision() self.transport.path = self.polling_path self.transport.open() def stream(self, sleep=50000): #usleep = lambda x: time.sleep(x/1000000.0) while True: try: Ops = self.client.fetchOps(self.rev, 5) except EOFError: raise Exception("It might be wrong revision\n" + str(self.rev)) for Op in Ops: # print Op.type if (Op.type != OpType.END_OF_OPERATION): self.rev = max(self.rev, Op.revision) return Op #usleep(sleep) ================================================ FILE: LINETCR/Api/Talk.py ================================================ # -*- coding: utf-8 -*- import os, sys path = os.path.join(os.path.dirname(__file__), '../lib/') sys.path.insert(0, path) import requests, rsa from thrift.transport import THttpClient from thrift.protocol import TCompactProtocol from curve import LineService from curve.ttypes import * class Talk: client = None auth_query_path = "/api/v4/TalkService.do"; http_query_path = "/S4"; wait_for_mobile_path = "/Q"; host = "gd2.line.naver.jp"; port = 443; UA = "Line/6.0.0 iPad4,1 9.0.2" LA = "DESKTOPMAC 10.10.2-YOSEMITE-x64 MAC 4.5.0" authToken = None cert = None def __init__(self): self.transport = THttpClient.THttpClient('https://gd2.line.naver.jp:443'+self.auth_query_path) self.transport.setCustomHeaders({ "User-Agent" : self.UA, "X-Line-Application" : self.LA, }) self.transport.open() self.protocol = TCompactProtocol.TCompactProtocol(self.transport); self.client = LineService.Client(self.protocol) def login(self, mail, passwd, cert=None, callback=None): self.transport.path = self.auth_query_path rsakey = self.client.getRSAKeyInfo(IdentityProvider.LINE) crypt = self.__crypt(mail, passwd, rsakey) result = self.client.loginWithIdentityCredentialForCertificate( IdentityProvider.LINE, rsakey.keynm, crypt, True, '127.0.0.1', 'http://dg.b9dm.com/KoenoKatachi.mp4', cert ) if result.type == 3: callback(result.pinCode) header = {"X-Line-Access": result.verifier} r = requests.get(url="https://" + self.host + self.wait_for_mobile_path, headers=header) result = self.client.loginWithVerifierForCerificate(r.json()["result"]["verifier"]) self.transport.setCustomHeaders({ "X-Line-Application" : self.LA, "User-Agent" : self.UA, "X-Line-Access" : result.authToken }) self.authToken = result.authToken self.cert = result.certificate self.transport.path = self.http_query_path elif result.type == 1: self.authToken = result.authToken self.cert = result.certificate self.transport.setCustomHeaders({ "X-Line-Application" : self.LA, "User-Agent" : self.UA, "X-Line-Access" : result.authToken }) self.transport.path = self.http_query_path def TokenLogin(self, authToken): self.transport.setCustomHeaders({ "X-Line-Application" : self.LA, "User-Agent" : self.UA, "X-Line-Access" : authToken, }) self.authToken = authToken self.transport.path = self.http_query_path def qrLogin(self, callback): self.transport.path = self.auth_query_path qr = self.client.getAuthQrcode(True, "Bot") callback("Copy to Line and Click\nYour LINK QR is: line://au/q/" + qr.verifier) r = requests.get("https://" + self.host + self.wait_for_mobile_path, headers={ "X-Line-Application": self.LA, "X-Line-Access": qr.verifier, }) vr = r.json()["result"]["verifier"] lr = self.client.loginWithVerifierForCerificate(vr) self.transport.setCustomHeaders({ "X-Line-Application" : self.LA, "User-Agent" : self.UA, "X-Line-Access": lr.authToken }) self.authToken = lr.authToken self.cert = lr.certificate self.transport.path = self.http_query_path def __crypt(self, mail, passwd, RSA): message = (chr(len(RSA.sessionKey)) + RSA.sessionKey + chr(len(mail)) + mail + chr(len(passwd)) + passwd).encode('utf-8') pub_key = rsa.PublicKey(int(RSA.nvalue, 16), int(RSA.evalue, 16)) crypto = rsa.encrypt(message, pub_key).encode('hex') return crypto ================================================ FILE: LINETCR/Api/__init__.py ================================================ from Talk import Talk from Poll import Poll from channel import Channel ================================================ FILE: LINETCR/Api/channel.py ================================================ # -*- coding: utf-8 -*- import os, sys, json path = os.path.join(os.path.dirname(__file__), '../lib/') sys.path.insert(0, path) import requests from thrift.transport import THttpClient from thrift.protocol import TCompactProtocol from curve import LineService from curve.ttypes import * import tempfile class Channel: client = None host = "gd2.line.naver.jp" http_query_path = "/S4" channel_query_path = "/CH4" UA = "Line/6.0.0 iPad4,1 9.0.2" LA = "DESKTOPMAC 10.10.2-YOSEMITE-x64 MAC 4.5.0" authToken = None mid = None channel_access_token = None token = None obs_token = None refresh_token = None def __init__(self, authToken): self.authToken = authToken self.transport = THttpClient.THttpClient('https://gd2.line.naver.jp:443'+self.http_query_path) self.transport.setCustomHeaders({ "User-Agent" : self.UA, "X-Line-Application" : self.LA, "X-Line-Access": self.authToken }) self.transport.open() self.protocol = TCompactProtocol.TCompactProtocol(self.transport) self.client = LineService.Client(self.protocol) self.mid = self.client.getProfile().mid self.transport.path = self.channel_query_path def login(self): result = self.client.issueChannelToken("1341209950") self.channel_access_token = result.channelAccessToken self.token = result.token self.obs_token = result.obsToken self.refresh_token = result.refreshToken print "channelAccessToken:" + result.channelAccessToken print "token:" + result.token print "obs_token:" + result.obsToken print "refreshToken:" + result.refreshToken def new_post(self, text): header = { "Content-Type": "application/json", "User-Agent" : self.UA, "X-Line-Mid" : self.mid, "x-lct" : self.channel_access_token, } payload = { "postInfo" : { "readPermission" : { "type" : "ALL" } }, "sourceType" : "TIMELINE", "contents" : { "text" : text } } r = requests.post( "http://" + self.host + "/mh/api/v24/post/create.json", headers = header, data = json.dumps(payload) ) return r.json() def postPhoto(self,text,path): header = { "Content-Type": "application/json", "User-Agent" : self.UA, "X-Line-Mid" : self.mid, "x-lct" : self.channel_access_token, } payload = { "postInfo" : { "readPermission" : { "type" : "ALL" } }, "sourceType" : "TIMELINE", "contents" : { "text" : text ,"media" : [{u'objectId': u'F57144CF9ECC4AD2E162E68554D1A8BD1a1ab0t04ff07f6'}]} } r = requests.post( "http://" + self.host + "/mh/api/v24/post/create.json", headers = header, data = json.dumps(payload) ) return r.json() def like(self, mid, postid, likeType=1001): header = { "Content-Type" : "application/json", "X-Line-Mid" : self.mid, "x-lct" : self.channel_access_token, } payload = { "likeType" : likeType, "activityExternalId" : postid, "actorId" : mid } r = requests.post( "http://" + self.host + "/mh/api/v23/like/create.json?homeId=" + mid, headers = header, data = json.dumps(payload) ) return r.json() def comment(self, mid, postid, text): header = { "Content-Type" : "application/json", "X-Line-Mid" : self.mid, "x-lct" : self.channel_access_token, } payload = { "commentText" : text, "activityExternalId" : postid, "actorId" : mid } r = requests.post( "http://" + self.host + "/mh/api/v23/comment/create.json?homeId=" + mid, headers = header, data = json.dumps(payload) ) return r.json() def activity(self, limit=20): header = { "Content-Type" : "application/json", "X-Line-Mid" : self.mid, "x-lct" : self.channel_access_token, } r = requests.get( "http://" + self.host + "/tl/mapi/v21/activities?postLimit=" + str(limit), headers = header ) return r.json() def getAlbum(self, gid): header = { "Content-Type" : "application/json", "X-Line-Mid" : self.mid, "x-lct": self.channel_access_token, } r = requests.get( "http://" + self.host + "/mh/album/v3/albums?type=g&sourceType=TALKROOM&homeId=" + gid, headers = header ) return r.json() def changeAlbumName(self,gid,name,albumId): header = { "Content-Type" : "application/json", "X-Line-Mid" : self.mid, "x-lct": self.channel_access_token, } payload = { "title": name } r = requests.put( "http://" + self.host + "/mh/album/v3/album/" + albumId + "?homeId=" + gid, headers = header, data = json.dumps(payload), ) return r.json() def deleteAlbum(self,gid,albumId): header = { "Content-Type" : "application/json", "X-Line-Mid" : self.mid, "x-lct": self.channel_access_token, } r = requests.delete( "http://" + self.host + "/mh/album/v3/album/" + albumId + "?homeId=" + gid, headers = header, ) return r.json() def getNote(self,gid, commentLimit, likeLimit): header = { "Content-Type" : "application/json", "X-Line-Mid" : self.mid, "x-lct": self.channel_access_token, } r = requests.get( "http://" + self.host + "/mh/api/v27/post/list.json?homeId=" + gid + "&commentLimit=" + commentLimit + "&sourceType=TALKROOM&likeLimit=" + likeLimit, headers = header ) return r.json() def postNote(self, gid, text): header = { "Content-Type": "application/json", "User-Agent" : self.UA, "X-Line-Mid" : self.mid, "x-lct" : self.channel_access_token, } payload = {"postInfo":{"readPermission":{"homeId":gid}}, "sourceType":"GROUPHOME", "contents":{"text":text} } r = requests.post( "http://" + self.host + "/mh/api/v27/post/create.json", headers = header, data = json.dumps(payload) ) return r.json() def getDetail(self, mid): header = { "Content-Type": "application/json", "User-Agent" : self.UA, "X-Line-Mid" : self.mid, "x-lct" : self.channel_access_token, } r = requests.get( "http://" + self.host + "/ma/api/v1/userpopup/getDetail.json?userMid=" + mid, headers = header ) return r.json() def getHome(self,mid): header = { "Content-Type": "application/json", "User-Agent" : self.UA, "X-Line-Mid" : self.mid, "x-lct" : self.channel_access_token, } r = requests.get( "http://" + self.host + "/mh/api/v27/post/list.json?homeId=" + mid + "&commentLimit=2&sourceType=LINE_PROFILE_COVER&likeLimit=6", headers = header ) return r.json() def getCover(self,mid): h = self.getHome(mid) objId = h["result"]["homeInfo"]["objectId"] return "http://dl.profile.line-cdn.net/myhome/c/download.nhn?userid=" + mid + "&oid=" + objId def createAlbum(self,gid,name): header = { "Content-Type": "application/json", "User-Agent" : self.UA, "X-Line-Mid" : self.mid, "x-lct" : self.channel_access_token, } payload = { "type" : "image", "title" : name } r = requests.post( "http://" + self.host + "/mh/album/v3/album?count=1&auto=0&homeId=" + gid, headers = header, data = json.dumps(payload) ) return r.json() def createAlbum2(self,gid,name,path,oid): header = { "Content-Type": "application/json", "User-Agent" : self.UA, "X-Line-Mid" : self.mid, "x-lct" : self.channel_access_token, } payload = { "type" : "image", "title" : name } r = requests.post( "http://" + self.host + "/mh/album/v3/album?count=1&auto=0&homeId=" + gid, headers = header, data = json.dumps(payload) ) #albumId = r.json()["result"]["items"][0]["id"] #h = { # "Content-Type": "application/x-www-form-urlencoded", # "User-Agent" : self.UA, # "X-Line-Mid" : gid, # "X-Line-Album" : albumId, # "x-lct" : self.channel_access_token, #"x-obs-host" : "obs-jp.line-apps.com:443", #} #print r.json() #files = { # 'file': open(path, 'rb'), #} #p = { # "userid" : gid, # "type" : "image", # "oid" : oid, # "ver" : "1.0" #} #data = { # 'params': json.dumps(p) #} #r = requests.post( #"http://obs-jp.line-apps.com/oa/album/a/object_info.nhn:443", #headers = h, #data = data, #files = files #) return r.json() #cl.createAlbum("cea9d61ba824e937aaf91637991ac934b","ss3ai","kawamuki.png") ================================================ FILE: LINETCR/LineApi.py ================================================ # -*- coding: utf-8 -*- from Api import Poll, Talk, channel from lib.curve.ttypes import * def def_callback(str): print(str) class LINE: mid = None authToken = None cert = None channel_access_token = None token = None obs_token = None refresh_token = None def __init__(self): self.Talk = Talk() def login(self, mail=None, passwd=None, cert=None, token=None, qr=False, callback=None): if callback is None: callback = def_callback resp = self.__validate(mail,passwd,cert,token,qr) if resp == 1: self.Talk.login(mail, passwd, callback=callback) elif resp == 2: self.Talk.login(mail,passwd,cert, callback=callback) elif resp == 3: self.Talk.TokenLogin(token) elif resp == 4: self.Talk.qrLogin(callback) else: raise Exception("invalid arguments") self.authToken = self.Talk.authToken self.cert = self.Talk.cert self._headers = { 'X-Line-Application': 'DESKTOPMAC 10.10.2-YOSEMITE-x64 MAC 4.5.0', 'X-Line-Access': self.authToken, 'User-Agent': 'Line/6.0.0 iPad4,1 9.0.2' } self.Poll = Poll(self.authToken) self.channel = channel.Channel(self.authToken) self.channel.login() self.mid = self.channel.mid self.channel_access_token = self.channel.channel_access_token self.token = self.channel.token self.obs_token = self.channel.obs_token self.refresh_token = self.channel.refresh_token """User""" def getProfile(self): return self.Talk.client.getProfile() def getSettings(self): return self.Talk.client.getSettings() def getUserTicket(self): return self.Talk.client.getUserTicket() def updateProfile(self, profileObject): return self.Talk.client.updateProfile(0, profileObject) def updateSettings(self, settingObject): return self.Talk.client.updateSettings(0, settingObject) """Operation""" def fetchOperation(self, revision, count): return self.Poll.client.fetchOperations(revision, count) def fetchOps(self, rev, count): return self.Poll.client.fetchOps(rev, count, 0, 0) def getLastOpRevision(self): return self.Talk.client.getLastOpRevision() def stream(self): return self.Poll.stream() """Message""" def sendMessage(self, messageObject): return self.Talk.client.sendMessage(0,messageObject) def sendText(self, Tomid, text): msg = Message() msg.to = Tomid msg.text = text return self.Talk.client.sendMessage(0, msg) def post_content(self, url, data=None, files=None): return self._session.post(url, headers=self._headers, data=data, files=files) def sendImage(self, to_, path): M = Message(to=to_, text=None, contentType = 1) M.contentMetadata = None M.contentPreview = None M_id = self.Talk.client.sendMessage(0,M).id files = { 'file': open(path, 'rb'), } params = { 'name': 'media', 'oid': M_id, 'size': len(open(path, 'rb').read()), 'type': 'image', 'ver': '1.0', } data = { 'params': json.dumps(params) } r = self.post_content('https://os.line.naver.jp/talk/m/upload.nhn', data=data, files=files) print r if r.status_code != 201: raise Exception('Upload image failure.') return True def sendImageWithURL(self, to_, url): """Send a image with given image url :param url: image url to send """ path = 'tmp/pythonLine.data' r = requests.get(url, stream=True) if r.status_code == 200: with open(path, 'w') as f: shutil.copyfileobj(r.raw, f) else: raise Exception('Download image failure.') try: self.sendImage(to_, path) except Exception as e: raise e def sendEvent(self, messageObject): return self._client.sendEvent(0, messageObject) def sendChatChecked(self, mid, lastMessageId): return self.Talk.client.sendChatChecked(0, mid, lastMessageId) def getMessageBoxCompactWrapUp(self, mid): return self.Talk.client.getMessageBoxCompactWrapUp(mid) def getMessageBoxCompactWrapUpList(self, start, messageBox): return self.Talk.client.getMessageBoxCompactWrapUpList(start, messageBox) def getRecentMessages(self, messageBox, count): return self.Talk.client.getRecentMessages(messageBox.id, count) def getMessageBox(self, channelId, messageboxId, lastMessagesCount): return self.Talk.client.getMessageBox(channelId, messageboxId, lastMessagesCount) def getMessageBoxList(self, channelId, lastMessagesCount): return self.Talk.client.getMessageBoxList(channelId, lastMessagesCount) def getMessageBoxListByStatus(self, channelId, lastMessagesCount, status): return self.Talk.client.getMessageBoxListByStatus(channelId, lastMessagesCount, status) def getMessageBoxWrapUp(self, mid): return self.Talk.client.getMessageBoxWrapUp(mid) def getMessageBoxWrapUpList(self, start, messageBoxCount): return self.Talk.client.getMessageBoxWrapUpList(start, messageBoxCount) """Contact""" def blockContact(self, mid): return self.Talk.client.blockContact(0, mid) def unblockContact(self, mid): return self.Talk.client.unblockContact(0, mid) def findAndAddContactsByMid(self, mid): return self.Talk.client.findAndAddContactsByMid(0, mid) def findAndAddContactsByMids(self, midlist): for i in midlist: self.Talk.client.findAndAddContactsByMid(0, i) def findAndAddContactsByUserid(self, userid): return self.Talk.client.findAndAddContactsByUserid(0, userid) def findContactsByUserid(self, userid): return self.Talk.client.findContactByUserid(userid) def findContactByTicket(self, ticketId): return self.Talk.client.findContactByUserTicket(ticketId) def getAllContactIds(self): return self.Talk.client.getAllContactIds() def getBlockedContactIds(self): return self.Talk.client.getBlockedContactIds() def getContact(self, mid): return self.Talk.client.getContact(mid) def getContacts(self, midlist): return self.Talk.client.getContacts(midlist) def getFavoriteMids(self): return self.Talk.client.getFavoriteMids() def getHiddenContactMids(self): return self.Talk.client.getHiddenContactMids() """Group""" def findGroupByTicket(self, ticketId): return self.Talk.client.findGroupByTicket(ticketId) def acceptGroupInvitation(self, groupId): return self.Talk.client.acceptGroupInvitation(0, groupId) def acceptGroupInvitationByTicket(self, groupId, ticketId): return self.Talk.client.acceptGroupInvitationByTicket(0, groupId, ticketId) def cancelGroupInvitation(self, groupId, contactIds): return self.Talk.client.cancelGroupInvitation(0, groupId, contactIds) def createGroup(self, name, midlist): return self.Talk.client.createGroup(0, name, midlist) def getGroup(self, groupId): return self.Talk.client.getGroup(groupId) def getGroups(self, groupIds): return self.Talk.client.getGroups(groupIds) def getGroupIdsInvited(self): return self.Talk.client.getGroupIdsInvited() def getGroupIdsJoined(self): return self.Talk.client.getGroupIdsJoined() def inviteIntoGroup(self, groupId, midlist): return self.Talk.client.inviteIntoGroup(0, groupId, midlist) def kickoutFromGroup(self, groupId, midlist): return self.Talk.client.kickoutFromGroup(0, groupId, midlist) def leaveGroup(self, groupId): return self.Talk.client.leaveGroup(0, groupId) def rejectGroupInvitation(self, groupId): return self.Talk.client.rejectGroupInvitation(0, groupId) def reissueGroupTicket(self, groupId): return self.Talk.client.reissueGroupTicket(groupId) def updateGroup(self, groupObject): return self.Talk.client.updateGroup(0, groupObject) def findGroupByTicket(self,ticketId): return self.Talk.client.findGroupByTicket(0,ticketId) """Room""" def createRoom(self, midlist): return self.Talk.client.createRoom(0, midlist) def getRoom(self, roomId): return self.Talk.client.getRoom(roomId) def inviteIntoRoom(self, roomId, midlist): return self.Talk.client.inviteIntoRoom(0, roomId, midlist) def leaveRoom(self, roomId): return self.Talk.client.leaveRoom(0, roomId) """TIMELINE""" def new_post(self, text): return self.channel.new_post(text) def like(self, mid, postid, likeType=1001): return self.channel.like(mid, postid, likeType) def comment(self, mid, postid, text): return self.channel.comment(mid, postid, text) def activity(self, limit=20): return self.channel.activity(limit) def getAlbum(self, gid): return self.channel.getAlbum(gid) def changeAlbumName(self, gid, name, albumId): return self.channel.changeAlbumName(gid, name, albumId) def deleteAlbum(self, gid, albumId): return self.channel.deleteAlbum(gid,albumId) def getNote(self,gid, commentLimit, likeLimit): return self.channel.getNote(gid, commentLimit, likeLimit) def getDetail(self,mid): return self.channel.getDetail(mid) def getHome(self,mid): return self.channel.getHome(mid) def createAlbum(self, gid, name): return self.channel.createAlbum(gid,name) def createAlbum2(self, gid, name, path): return self.channel.createAlbum(gid, name, path, oid) def __validate(self, mail, passwd, cert, token, qr): if mail is not None and passwd is not None and cert is None: return 1 elif mail is not None and passwd is not None and cert is not None: return 2 elif token is not None: return 3 elif qr is True: return 4 else: return 5 def loginResult(self, callback=None): if callback is None: callback = def_callback prof = self.getProfile() print("MikanBOT") print("mid -> " + prof.mid) print("name -> " + prof.displayName) print("authToken -> " + self.authToken) print("cert -> " + self.cert if self.cert is not None else "") ================================================ FILE: LINETCR/__init__.py ================================================ # -*- coding: utf-8 -*- from LineApi import LINE from lib.curve.ttypes import * ================================================ FILE: LINETCR/lib/__init__.py ================================================ # -*- coding: utf-8 -*- ================================================ FILE: LINETCR/lib/curve/LineService.py ================================================ # # Autogenerated by Thrift Compiler (0.9.3) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException import logging from ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol, TProtocol try: from thrift.protocol import fastbinary except: fastbinary = None class Iface: def getRSAKey(self): pass def notifyEmailConfirmationResult(self, parameterMap): """ Parameters: - parameterMap """ pass def registerVirtualAccount(self, locale, encryptedVirtualUserId, encryptedPassword): """ Parameters: - locale - encryptedVirtualUserId - encryptedPassword """ pass def requestVirtualAccountPasswordChange(self, virtualMid, encryptedVirtualUserId, encryptedOldPassword, encryptedNewPassword): """ Parameters: - virtualMid - encryptedVirtualUserId - encryptedOldPassword - encryptedNewPassword """ pass def requestVirtualAccountPasswordSet(self, virtualMid, encryptedVirtualUserId, encryptedNewPassword): """ Parameters: - virtualMid - encryptedVirtualUserId - encryptedNewPassword """ pass def unregisterVirtualAccount(self, virtualMid): """ Parameters: - virtualMid """ pass def checkUserAge(self, carrier, sessionId, verifier, standardAge): """ Parameters: - carrier - sessionId - verifier - standardAge """ pass def checkUserAgeWithDocomo(self, openIdRedirectUrl, standardAge, verifier): """ Parameters: - openIdRedirectUrl - standardAge - verifier """ pass def retrieveOpenIdAuthUrlWithDocomo(self): pass def retrieveRequestToken(self, carrier): """ Parameters: - carrier """ pass def addBuddyMember(self, requestId, userMid): """ Parameters: - requestId - userMid """ pass def addBuddyMembers(self, requestId, userMids): """ Parameters: - requestId - userMids """ pass def blockBuddyMember(self, requestId, mid): """ Parameters: - requestId - mid """ pass def commitSendMessagesToAll(self, requestIdList): """ Parameters: - requestIdList """ pass def commitSendMessagesTomids(self, requestIdList, mids): """ Parameters: - requestIdList - mids """ pass def containsBuddyMember(self, requestId, userMid): """ Parameters: - requestId - userMid """ pass def downloadMessageContent(self, requestId, messageId): """ Parameters: - requestId - messageId """ pass def downloadMessageContentPreview(self, requestId, messageId): """ Parameters: - requestId - messageId """ pass def downloadProfileImage(self, requestId): """ Parameters: - requestId """ pass def downloadProfileImagePreview(self, requestId): """ Parameters: - requestId """ pass def getActiveMemberCountByBuddyMid(self, buddyMid): """ Parameters: - buddyMid """ pass def getActiveMemberMidsByBuddyMid(self, buddyMid): """ Parameters: - buddyMid """ pass def getAllBuddyMembers(self): pass def getBlockedBuddyMembers(self): pass def getBlockerCountByBuddyMid(self, buddyMid): """ Parameters: - buddyMid """ pass def getBuddyDetailByMid(self, buddyMid): """ Parameters: - buddyMid """ pass def getBuddyProfile(self): pass def getContactTicket(self): pass def getMemberCountByBuddyMid(self, buddyMid): """ Parameters: - buddyMid """ pass def getSendBuddyMessageResult(self, sendBuddyMessageRequestId): """ Parameters: - sendBuddyMessageRequestId """ pass def getSetBuddyOnAirResult(self, setBuddyOnAirRequestId): """ Parameters: - setBuddyOnAirRequestId """ pass def getUpdateBuddyProfileResult(self, updateBuddyProfileRequestId): """ Parameters: - updateBuddyProfileRequestId """ pass def isBuddyOnAirByMid(self, buddyMid): """ Parameters: - buddyMid """ pass def linkAndSendBuddyContentMessageToAllAsync(self, requestId, msg, sourceContentId): """ Parameters: - requestId - msg - sourceContentId """ pass def linkAndSendBuddyContentMessageTomids(self, requestId, msg, sourceContentId, mids): """ Parameters: - requestId - msg - sourceContentId - mids """ pass def notifyBuddyBlocked(self, buddyMid, blockerMid): """ Parameters: - buddyMid - blockerMid """ pass def notifyBuddyUnblocked(self, buddyMid, blockerMid): """ Parameters: - buddyMid - blockerMid """ pass def registerBuddy(self, buddyId, searchId, displayName, statusMeessage, picture, settings): """ Parameters: - buddyId - searchId - displayName - statusMeessage - picture - settings """ pass def registerBuddyAdmin(self, buddyId, searchId, displayName, statusMessage, picture): """ Parameters: - buddyId - searchId - displayName - statusMessage - picture """ pass def reissueContactTicket(self, expirationTime, maxUseCount): """ Parameters: - expirationTime - maxUseCount """ pass def removeBuddyMember(self, requestId, userMid): """ Parameters: - requestId - userMid """ pass def removeBuddyMembers(self, requestId, userMids): """ Parameters: - requestId - userMids """ pass def sendBuddyContentMessageToAll(self, requestId, msg, content): """ Parameters: - requestId - msg - content """ pass def sendBuddyContentMessageToAllAsync(self, requestId, msg, content): """ Parameters: - requestId - msg - content """ pass def sendBuddyContentMessageTomids(self, requestId, msg, content, mids): """ Parameters: - requestId - msg - content - mids """ pass def sendBuddyContentMessageTomidsAsync(self, requestId, msg, content, mids): """ Parameters: - requestId - msg - content - mids """ pass def sendBuddyMessageToAll(self, requestId, msg): """ Parameters: - requestId - msg """ pass def sendBuddyMessageToAllAsync(self, requestId, msg): """ Parameters: - requestId - msg """ pass def sendBuddyMessageTomids(self, requestId, msg, mids): """ Parameters: - requestId - msg - mids """ pass def sendBuddyMessageTomidsAsync(self, requestId, msg, mids): """ Parameters: - requestId - msg - mids """ pass def sendIndividualEventToAllAsync(self, requestId, buddyMid, notificationStatus): """ Parameters: - requestId - buddyMid - notificationStatus """ pass def setBuddyOnAir(self, requestId, onAir): """ Parameters: - requestId - onAir """ pass def setBuddyOnAirAsync(self, requestId, onAir): """ Parameters: - requestId - onAir """ pass def storeMessage(self, requestId, messageRequest): """ Parameters: - requestId - messageRequest """ pass def unblockBuddyMember(self, requestId, mid): """ Parameters: - requestId - mid """ pass def unregisterBuddy(self, requestId): """ Parameters: - requestId """ pass def unregisterBuddyAdmin(self, requestId): """ Parameters: - requestId """ pass def updateBuddyAdminProfileAttribute(self, requestId, attributes): """ Parameters: - requestId - attributes """ pass def updateBuddyAdminProfileImage(self, requestId, picture): """ Parameters: - requestId - picture """ pass def updateBuddyProfileAttributes(self, requestId, attributes): """ Parameters: - requestId - attributes """ pass def updateBuddyProfileAttributesAsync(self, requestId, attributes): """ Parameters: - requestId - attributes """ pass def updateBuddyProfileImage(self, requestId, image): """ Parameters: - requestId - image """ pass def updateBuddyProfileImageAsync(self, requestId, image): """ Parameters: - requestId - image """ pass def updateBuddySearchId(self, requestId, searchId): """ Parameters: - requestId - searchId """ pass def updateBuddySettings(self, settings): """ Parameters: - settings """ pass def uploadBuddyContent(self, contentType, content): """ Parameters: - contentType - content """ pass def findBuddyContactsByQuery(self, language, country, query, fromIndex, count, requestSource): """ Parameters: - language - country - query - fromIndex - count - requestSource """ pass def getBuddyContacts(self, language, country, classification, fromIndex, count): """ Parameters: - language - country - classification - fromIndex - count """ pass def getBuddyDetail(self, buddyMid): """ Parameters: - buddyMid """ pass def getBuddyOnAir(self, buddyMid): """ Parameters: - buddyMid """ pass def getCountriesHavingBuddy(self): pass def getNewlyReleasedBuddyIds(self, country): """ Parameters: - country """ pass def getPopularBuddyBanner(self, language, country, applicationType, resourceSpecification): """ Parameters: - language - country - applicationType - resourceSpecification """ pass def getPopularBuddyLists(self, language, country): """ Parameters: - language - country """ pass def getPromotedBuddyContacts(self, language, country): """ Parameters: - language - country """ pass def activeBuddySubscriberCount(self): pass def addOperationForChannel(self, opType, param1, param2, param3): """ Parameters: - opType - param1 - param2 - param3 """ pass def displayBuddySubscriberCount(self): pass def findContactByUseridWithoutAbuseBlockForChannel(self, userid): """ Parameters: - userid """ pass def getAllContactIdsForChannel(self): pass def getCompactContacts(self, lastModifiedTimestamp): """ Parameters: - lastModifiedTimestamp """ pass def getContactsForChannel(self, ids): """ Parameters: - ids """ pass def getDisplayName(self, mid): """ Parameters: - mid """ pass def getFavoriteMidsForChannel(self): pass def getFriendMids(self): pass def getGroupMemberMids(self, groupId): """ Parameters: - groupId """ pass def getGroupsForChannel(self, groupIds): """ Parameters: - groupIds """ pass def getIdentityCredential(self): pass def getJoinedGroupIdsForChannel(self): pass def getMetaProfile(self): pass def getMid(self): pass def getPrimaryClientForChannel(self): pass def getProfileForChannel(self): pass def getSimpleChannelContacts(self, ids): """ Parameters: - ids """ pass def getUserCountryForBilling(self, country, remoteIp): """ Parameters: - country - remoteIp """ pass def getUserCreateTime(self): pass def getUserIdentities(self): pass def getUserLanguage(self): pass def getUserMidsWhoAddedMe(self): pass def isGroupMember(self, groupId): """ Parameters: - groupId """ pass def isInContact(self, mid): """ Parameters: - mid """ pass def registerChannelCP(self, cpId, registerPassword): """ Parameters: - cpId - registerPassword """ pass def removeNotificationStatus(self, notificationStatus): """ Parameters: - notificationStatus """ pass def sendMessageForChannel(self, message): """ Parameters: - message """ pass def sendPinCodeOperation(self, verifier): """ Parameters: - verifier """ pass def updateProfileAttributeForChannel(self, profileAttribute, value): """ Parameters: - profileAttribute - value """ pass def approveChannelAndIssueChannelToken(self, channelId): """ Parameters: - channelId """ pass def approveChannelAndIssueRequestToken(self, channelId, otpId): """ Parameters: - channelId - otpId """ pass def fetchNotificationItems(self, localRev): """ Parameters: - localRev """ pass def getApprovedChannels(self, lastSynced, locale): """ Parameters: - lastSynced - locale """ pass def getChannelInfo(self, channelId, locale): """ Parameters: - channelId - locale """ pass def getChannelNotificationSetting(self, channelId, locale): """ Parameters: - channelId - locale """ pass def getChannelNotificationSettings(self, locale): """ Parameters: - locale """ pass def getChannels(self, lastSynced, locale): """ Parameters: - lastSynced - locale """ pass def getDomains(self, lastSynced): """ Parameters: - lastSynced """ pass def getFriendChannelMatrices(self, channelIds): """ Parameters: - channelIds """ pass def getNotificationBadgeCount(self, localRev): """ Parameters: - localRev """ pass def issueChannelToken(self, channelId): """ Parameters: - channelId """ pass def issueRequestToken(self, channelId, otpId): """ Parameters: - channelId - otpId """ pass def issueRequestTokenWithAuthScheme(self, channelId, otpId, authScheme, returnUrl): """ Parameters: - channelId - otpId - authScheme - returnUrl """ pass def reserveCoinUse(self, request, locale): """ Parameters: - request - locale """ pass def revokeChannel(self, channelId): """ Parameters: - channelId """ pass def syncChannelData(self, lastSynced, locale): """ Parameters: - lastSynced - locale """ pass def updateChannelNotificationSetting(self, setting): """ Parameters: - setting """ pass def fetchMessageOperations(self, localRevision, lastOpTimestamp, count): """ Parameters: - localRevision - lastOpTimestamp - count """ pass def getLastReadMessageIds(self, chatId): """ Parameters: - chatId """ pass def multiGetLastReadMessageIds(self, chatIds): """ Parameters: - chatIds """ pass def buyCoinProduct(self, paymentReservation): """ Parameters: - paymentReservation """ pass def buyFreeProduct(self, receiverMid, productId, messageTemplate, language, country, packageId): """ Parameters: - receiverMid - productId - messageTemplate - language - country - packageId """ pass def buyMustbuyProduct(self, receiverMid, productId, messageTemplate, language, country, packageId, serialNumber): """ Parameters: - receiverMid - productId - messageTemplate - language - country - packageId - serialNumber """ pass def checkCanReceivePresent(self, recipientMid, packageId, language, country): """ Parameters: - recipientMid - packageId - language - country """ pass def getActivePurchases(self, start, size, language, country): """ Parameters: - start - size - language - country """ pass def getActivePurchaseVersions(self, start, size, language, country): """ Parameters: - start - size - language - country """ pass def getCoinProducts(self, appStoreCode, country, language): """ Parameters: - appStoreCode - country - language """ pass def getCoinProductsByPgCode(self, appStoreCode, pgCode, country, language): """ Parameters: - appStoreCode - pgCode - country - language """ pass def getCoinPurchaseHistory(self, request): """ Parameters: - request """ pass def getCoinUseAndRefundHistory(self, request): """ Parameters: - request """ pass def getDownloads(self, start, size, language, country): """ Parameters: - start - size - language - country """ pass def getEventPackages(self, start, size, language, country): """ Parameters: - start - size - language - country """ pass def getNewlyReleasedPackages(self, start, size, language, country): """ Parameters: - start - size - language - country """ pass def getPopularPackages(self, start, size, language, country): """ Parameters: - start - size - language - country """ pass def getPresentsReceived(self, start, size, language, country): """ Parameters: - start - size - language - country """ pass def getPresentsSent(self, start, size, language, country): """ Parameters: - start - size - language - country """ pass def getProduct(self, packageID, language, country): """ Parameters: - packageID - language - country """ pass def getProductList(self, productIdList, language, country): """ Parameters: - productIdList - language - country """ pass def getProductListWithCarrier(self, productIdList, language, country, carrierCode): """ Parameters: - productIdList - language - country - carrierCode """ pass def getProductWithCarrier(self, packageID, language, country, carrierCode): """ Parameters: - packageID - language - country - carrierCode """ pass def getPurchaseHistory(self, start, size, language, country): """ Parameters: - start - size - language - country """ pass def getTotalBalance(self, appStoreCode): """ Parameters: - appStoreCode """ pass def notifyDownloaded(self, packageId, language): """ Parameters: - packageId - language """ pass def reserveCoinPurchase(self, request): """ Parameters: - request """ pass def reservePayment(self, paymentReservation): """ Parameters: - paymentReservation """ pass def getSnsFriends(self, snsIdType, snsAccessToken, startIdx, limit): """ Parameters: - snsIdType - snsAccessToken - startIdx - limit """ pass def getSnsMyProfile(self, snsIdType, snsAccessToken): """ Parameters: - snsIdType - snsAccessToken """ pass def postSnsInvitationMessage(self, snsIdType, snsAccessToken, toSnsUserId): """ Parameters: - snsIdType - snsAccessToken - toSnsUserId """ pass def acceptGroupInvitation(self, reqSeq, groupId): """ Parameters: - reqSeq - groupId """ pass def acceptGroupInvitationByTicket(self, reqSeq, groupId, ticketId): """ Parameters: - reqSeq - groupId - ticketId """ pass def acceptProximityMatches(self, sessionId, ids): """ Parameters: - sessionId - ids """ pass def acquireCallRoute(self, to): """ Parameters: - to """ pass def acquireCallTicket(self, to): """ Parameters: - to """ pass def acquireEncryptedAccessToken(self, featureType): """ Parameters: - featureType """ pass def addSnsId(self, snsIdType, snsAccessToken): """ Parameters: - snsIdType - snsAccessToken """ pass def blockContact(self, reqSeq, id): """ Parameters: - reqSeq - id """ pass def blockRecommendation(self, reqSeq, id): """ Parameters: - reqSeq - id """ pass def cancelGroupInvitation(self, reqSeq, groupId, contactIds): """ Parameters: - reqSeq - groupId - contactIds """ pass def changeVerificationMethod(self, sessionId, method): """ Parameters: - sessionId - method """ pass def clearIdentityCredential(self): pass def clearMessageBox(self, channelId, messageBoxId): """ Parameters: - channelId - messageBoxId """ pass def closeProximityMatch(self, sessionId): """ Parameters: - sessionId """ pass def commitSendMessage(self, seq, messageId, receiverMids): """ Parameters: - seq - messageId - receiverMids """ pass def commitSendMessages(self, seq, messageIds, receiverMids): """ Parameters: - seq - messageIds - receiverMids """ pass def commitUpdateProfile(self, seq, attrs, receiverMids): """ Parameters: - seq - attrs - receiverMids """ pass def confirmEmail(self, verifier, pinCode): """ Parameters: - verifier - pinCode """ pass def createGroup(self, seq, name, contactIds): """ Parameters: - seq - name - contactIds """ pass def createQrcodeBase64Image(self, url, characterSet, imageSize, x, y, width, height): """ Parameters: - url - characterSet - imageSize - x - y - width - height """ pass def createRoom(self, reqSeq, contactIds): """ Parameters: - reqSeq - contactIds """ pass def createSession(self): pass def fetchAnnouncements(self, lastFetchedIndex): """ Parameters: - lastFetchedIndex """ pass def fetchMessages(self, localTs, count): """ Parameters: - localTs - count """ pass def fetchOperations(self, localRev, count): """ Parameters: - localRev - count """ pass def fetchOps(self, localRev, count, globalRev, individualRev): """ Parameters: - localRev - count - globalRev - individualRev """ pass def findAndAddContactsByEmail(self, reqSeq, emails): """ Parameters: - reqSeq - emails """ pass def findAndAddContactsByMid(self, reqSeq, mid): """ Parameters: - reqSeq - mid """ pass def findAndAddContactsByPhone(self, reqSeq, phones): """ Parameters: - reqSeq - phones """ pass def findAndAddContactsByUserid(self, reqSeq, userid): """ Parameters: - reqSeq - userid """ pass def findContactByUserid(self, userid): """ Parameters: - userid """ pass def findContactByUserTicket(self, ticketId): """ Parameters: - ticketId """ pass def findGroupByTicket(self, ticketId): """ Parameters: - ticketId """ pass def findContactsByEmail(self, emails): """ Parameters: - emails """ pass def findContactsByPhone(self, phones): """ Parameters: - phones """ pass def findSnsIdUserStatus(self, snsIdType, snsAccessToken, udidHash): """ Parameters: - snsIdType - snsAccessToken - udidHash """ pass def finishUpdateVerification(self, sessionId): """ Parameters: - sessionId """ pass def generateUserTicket(self, expirationTime, maxUseCount): """ Parameters: - expirationTime - maxUseCount """ pass def getAcceptedProximityMatches(self, sessionId): """ Parameters: - sessionId """ pass def getActiveBuddySubscriberIds(self): pass def getAllContactIds(self): pass def getAuthQrcode(self, keepLoggedIn, systemName): """ Parameters: - keepLoggedIn - systemName """ pass def getBlockedContactIds(self): pass def getBlockedContactIdsByRange(self, start, count): """ Parameters: - start - count """ pass def getBlockedRecommendationIds(self): pass def getBuddyBlockerIds(self): pass def getBuddyLocation(self, mid, index): """ Parameters: - mid - index """ pass def getCompactContactsModifiedSince(self, timestamp): """ Parameters: - timestamp """ pass def getCompactGroup(self, groupId): """ Parameters: - groupId """ pass def getCompactRoom(self, roomId): """ Parameters: - roomId """ pass def getContact(self, id): """ Parameters: - id """ pass def getContacts(self, ids): """ Parameters: - ids """ pass def getCountryWithRequestIp(self): pass def getFavoriteMids(self): pass def getGroup(self, groupId): """ Parameters: - groupId """ pass def getGroupIdsInvited(self): pass def getGroupIdsJoined(self): pass def getGroups(self, groupIds): """ Parameters: - groupIds """ pass def getHiddenContactMids(self): pass def getIdentityIdentifier(self): pass def getLastAnnouncementIndex(self): pass def getLastOpRevision(self): pass def getMessageBox(self, channelId, messageBoxId, lastMessagesCount): """ Parameters: - channelId - messageBoxId - lastMessagesCount """ pass def getMessageBoxCompactWrapUp(self, mid): """ Parameters: - mid """ pass def getMessageBoxCompactWrapUpList(self, start, messageBoxCount): """ Parameters: - start - messageBoxCount """ pass def getMessageBoxList(self, channelId, lastMessagesCount): """ Parameters: - channelId - lastMessagesCount """ pass def getMessageBoxListByStatus(self, channelId, lastMessagesCount, status): """ Parameters: - channelId - lastMessagesCount - status """ pass def getMessageBoxWrapUp(self, mid): """ Parameters: - mid """ pass def getMessageBoxWrapUpList(self, start, messageBoxCount): """ Parameters: - start - messageBoxCount """ pass def getMessagesBySequenceNumber(self, channelId, messageBoxId, startSeq, endSeq): """ Parameters: - channelId - messageBoxId - startSeq - endSeq """ pass def getNextMessages(self, messageBoxId, startSeq, messagesCount): """ Parameters: - messageBoxId - startSeq - messagesCount """ pass def getNotificationPolicy(self, carrier): """ Parameters: - carrier """ pass def getPreviousMessages(self, messageBoxId, endSeq, messagesCount): """ Parameters: - messageBoxId - endSeq - messagesCount """ pass def getProfile(self): pass def getProximityMatchCandidateList(self, sessionId): """ Parameters: - sessionId """ pass def getProximityMatchCandidates(self, sessionId): """ Parameters: - sessionId """ pass def getRecentMessages(self, messageBoxId, messagesCount): """ Parameters: - messageBoxId - messagesCount """ pass def getRecommendationIds(self): pass def getRoom(self, roomId): """ Parameters: - roomId """ pass def getRSAKeyInfo(self, provider): """ Parameters: - provider """ pass def getServerTime(self): pass def getSessions(self): pass def getSettings(self): pass def getSettingsAttributes(self, attrBitset): """ Parameters: - attrBitset """ pass def getSystemConfiguration(self): pass def getUserTicket(self): pass def getWapInvitation(self, invitationHash): """ Parameters: - invitationHash """ pass def invalidateUserTicket(self): pass def inviteFriendsBySms(self, phoneNumberList): """ Parameters: - phoneNumberList """ pass def inviteIntoGroup(self, reqSeq, groupId, contactIds): """ Parameters: - reqSeq - groupId - contactIds """ pass def inviteIntoRoom(self, reqSeq, roomId, contactIds): """ Parameters: - reqSeq - roomId - contactIds """ pass def inviteViaEmail(self, reqSeq, email, name): """ Parameters: - reqSeq - email - name """ pass def isIdentityIdentifierAvailable(self, provider, identifier): """ Parameters: - provider - identifier """ pass def isUseridAvailable(self, userid): """ Parameters: - userid """ pass def kickoutFromGroup(self, reqSeq, groupId, contactIds): """ Parameters: - reqSeq - groupId - contactIds """ pass def leaveGroup(self, reqSeq, groupId): """ Parameters: - reqSeq - groupId """ pass def leaveRoom(self, reqSeq, roomId): """ Parameters: - reqSeq - roomId """ pass def loginWithIdentityCredential(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): """ Parameters: - identityProvider - identifier - password - keepLoggedIn - accessLocation - systemName - certificate """ pass def loginWithIdentityCredentialForCertificate(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): """ Parameters: - identityProvider - identifier - password - keepLoggedIn - accessLocation - systemName - certificate """ pass def loginWithVerifier(self, verifier): """ Parameters: - verifier """ pass def loginWithVerifierForCerificate(self, verifier): """ Parameters: - verifier """ pass def loginWithVerifierForCertificate(self, verifier): """ Parameters: - verifier """ pass def logout(self): pass def logoutSession(self, tokenKey): """ Parameters: - tokenKey """ pass def noop(self): pass def notifiedRedirect(self, paramMap): """ Parameters: - paramMap """ pass def notifyBuddyOnAir(self, seq, receiverMids): """ Parameters: - seq - receiverMids """ pass def notifyIndividualEvent(self, notificationStatus, receiverMids): """ Parameters: - notificationStatus - receiverMids """ pass def notifyInstalled(self, udidHash, applicationTypeWithExtensions): """ Parameters: - udidHash - applicationTypeWithExtensions """ pass def notifyRegistrationComplete(self, udidHash, applicationTypeWithExtensions): """ Parameters: - udidHash - applicationTypeWithExtensions """ pass def notifySleep(self, lastRev, badge): """ Parameters: - lastRev - badge """ pass def notifyUpdated(self, lastRev, deviceInfo): """ Parameters: - lastRev - deviceInfo """ pass def openProximityMatch(self, location): """ Parameters: - location """ pass def registerBuddyUser(self, buddyId, registrarPassword): """ Parameters: - buddyId - registrarPassword """ pass def registerBuddyUserid(self, seq, userid): """ Parameters: - seq - userid """ pass def registerDevice(self, sessionId): """ Parameters: - sessionId """ pass def registerDeviceWithIdentityCredential(self, sessionId, provider, identifier, verifier): """ Parameters: - sessionId - provider - identifier - verifier """ pass def registerDeviceWithoutPhoneNumber(self, region, udidHash, deviceInfo): """ Parameters: - region - udidHash - deviceInfo """ pass def registerDeviceWithoutPhoneNumberWithIdentityCredential(self, region, udidHash, deviceInfo, provider, identifier, verifier, mid): """ Parameters: - region - udidHash - deviceInfo - provider - identifier - verifier - mid """ pass def registerUserid(self, reqSeq, userid): """ Parameters: - reqSeq - userid """ pass def registerWapDevice(self, invitationHash, guidHash, email, deviceInfo): """ Parameters: - invitationHash - guidHash - email - deviceInfo """ pass def registerWithExistingSnsIdAndIdentityCredential(self, identityCredential, region, udidHash, deviceInfo): """ Parameters: - identityCredential - region - udidHash - deviceInfo """ pass def registerWithSnsId(self, snsIdType, snsAccessToken, region, udidHash, deviceInfo, mid): """ Parameters: - snsIdType - snsAccessToken - region - udidHash - deviceInfo - mid """ pass def registerWithSnsIdAndIdentityCredential(self, snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo): """ Parameters: - snsIdType - snsAccessToken - identityCredential - region - udidHash - deviceInfo """ pass def reissueDeviceCredential(self): pass def reissueUserTicket(self, expirationTime, maxUseCount): """ Parameters: - expirationTime - maxUseCount """ pass def reissueGroupTicket(self, groupId): """ Parameters: - groupId """ pass def rejectGroupInvitation(self, reqSeq, groupId): """ Parameters: - reqSeq - groupId """ pass def releaseSession(self): pass def removeAllMessages(self, seq, lastMessageId): """ Parameters: - seq - lastMessageId """ pass def removeBuddyLocation(self, mid, index): """ Parameters: - mid - index """ pass def removeMessage(self, messageId): """ Parameters: - messageId """ pass def removeMessageFromMyHome(self, messageId): """ Parameters: - messageId """ pass def removeSnsId(self, snsIdType): """ Parameters: - snsIdType """ pass def report(self, syncOpRevision, category, report): """ Parameters: - syncOpRevision - category - report """ pass def reportContacts(self, syncOpRevision, category, contactReports, actionType): """ Parameters: - syncOpRevision - category - contactReports - actionType """ pass def reportGroups(self, syncOpRevision, groups): """ Parameters: - syncOpRevision - groups """ pass def reportProfile(self, syncOpRevision, profile): """ Parameters: - syncOpRevision - profile """ pass def reportRooms(self, syncOpRevision, rooms): """ Parameters: - syncOpRevision - rooms """ pass def reportSettings(self, syncOpRevision, settings): """ Parameters: - syncOpRevision - settings """ pass def reportSpammer(self, spammerMid, spammerReasons, spamMessageIds): """ Parameters: - spammerMid - spammerReasons - spamMessageIds """ pass def requestAccountPasswordReset(self, provider, identifier, locale): """ Parameters: - provider - identifier - locale """ pass def requestEmailConfirmation(self, emailConfirmation): """ Parameters: - emailConfirmation """ pass def requestIdentityUnbind(self, provider, identifier): """ Parameters: - provider - identifier """ pass def resendEmailConfirmation(self, verifier): """ Parameters: - verifier """ pass def resendPinCode(self, sessionId): """ Parameters: - sessionId """ pass def resendPinCodeBySMS(self, sessionId): """ Parameters: - sessionId """ pass def sendChatChecked(self, seq, consumer, lastMessageId): """ Parameters: - seq - consumer - lastMessageId """ pass def sendChatRemoved(self, seq, consumer, lastMessageId): """ Parameters: - seq - consumer - lastMessageId """ pass def sendContentPreviewUpdated(self, esq, messageId, receiverMids): """ Parameters: - esq - messageId - receiverMids """ pass def sendContentReceipt(self, seq, consumer, messageId): """ Parameters: - seq - consumer - messageId """ pass def sendDummyPush(self): pass def sendEvent(self, seq, message): """ Parameters: - seq - message """ pass def sendMessage(self, seq, message): """ Parameters: - seq - message """ pass def sendMessageIgnored(self, seq, consumer, messageIds): """ Parameters: - seq - consumer - messageIds """ pass def sendMessageReceipt(self, seq, consumer, messageIds): """ Parameters: - seq - consumer - messageIds """ pass def sendMessageToMyHome(self, seq, message): """ Parameters: - seq - message """ pass def setBuddyLocation(self, mid, index, location): """ Parameters: - mid - index - location """ pass def setIdentityCredential(self, provider, identifier, verifier): """ Parameters: - provider - identifier - verifier """ pass def setNotificationsEnabled(self, reqSeq, type, target, enablement): """ Parameters: - reqSeq - type - target - enablement """ pass def startUpdateVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, locale): """ Parameters: - region - carrier - phone - udidHash - deviceInfo - networkCode - locale """ pass def startVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, mid, locale): """ Parameters: - region - carrier - phone - udidHash - deviceInfo - networkCode - mid - locale """ pass def storeUpdateProfileAttribute(self, seq, profileAttribute, value): """ Parameters: - seq - profileAttribute - value """ pass def syncContactBySnsIds(self, reqSeq, modifications): """ Parameters: - reqSeq - modifications """ pass def syncContacts(self, reqSeq, localContacts): """ Parameters: - reqSeq - localContacts """ pass def trySendMessage(self, seq, message): """ Parameters: - seq - message """ pass def unblockContact(self, reqSeq, id): """ Parameters: - reqSeq - id """ pass def unblockRecommendation(self, reqSeq, id): """ Parameters: - reqSeq - id """ pass def unregisterUserAndDevice(self): pass def updateApnsDeviceToken(self, apnsDeviceToken): """ Parameters: - apnsDeviceToken """ pass def updateBuddySetting(self, key, value): """ Parameters: - key - value """ pass def updateC2DMRegistrationId(self, registrationId): """ Parameters: - registrationId """ pass def updateContactSetting(self, reqSeq, mid, flag, value): """ Parameters: - reqSeq - mid - flag - value """ pass def updateCustomModeSettings(self, customMode, paramMap): """ Parameters: - customMode - paramMap """ pass def updateDeviceInfo(self, deviceUid, deviceInfo): """ Parameters: - deviceUid - deviceInfo """ pass def updateGroup(self, reqSeq, group): """ Parameters: - reqSeq - group """ pass def updateNotificationToken(self, type, token): """ Parameters: - type - token """ pass def updateNotificationTokenWithBytes(self, type, token): """ Parameters: - type - token """ pass def updateProfile(self, reqSeq, profile): """ Parameters: - reqSeq - profile """ pass def updateProfileAttribute(self, reqSeq, attr, value): """ Parameters: - reqSeq - attr - value """ pass def updateRegion(self, region): """ Parameters: - region """ pass def updateSettings(self, reqSeq, settings): """ Parameters: - reqSeq - settings """ pass def updateSettings2(self, reqSeq, settings): """ Parameters: - reqSeq - settings """ pass def updateSettingsAttribute(self, reqSeq, attr, value): """ Parameters: - reqSeq - attr - value """ pass def updateSettingsAttributes(self, reqSeq, attrBitset, settings): """ Parameters: - reqSeq - attrBitset - settings """ pass def verifyIdentityCredential(self, identityProvider, identifier, password): """ Parameters: - identityProvider - identifier - password """ pass def verifyIdentityCredentialWithResult(self, identityCredential): """ Parameters: - identityCredential """ pass def verifyPhone(self, sessionId, pinCode, udidHash): """ Parameters: - sessionId - pinCode - udidHash """ pass def verifyQrcode(self, verifier, pinCode): """ Parameters: - verifier - pinCode """ pass def notify(self, event): """ Parameters: - event """ pass class Client(Iface): def __init__(self, iprot, oprot=None): self._iprot = self._oprot = iprot if oprot is not None: self._oprot = oprot self._seqid = 0 def getRSAKey(self): self.send_getRSAKey() return self.recv_getRSAKey() def send_getRSAKey(self): self._oprot.writeMessageBegin('getRSAKey', TMessageType.CALL, self._seqid) args = getRSAKey_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getRSAKey(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getRSAKey_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getRSAKey failed: unknown result") def notifyEmailConfirmationResult(self, parameterMap): """ Parameters: - parameterMap """ self.send_notifyEmailConfirmationResult(parameterMap) self.recv_notifyEmailConfirmationResult() def send_notifyEmailConfirmationResult(self, parameterMap): self._oprot.writeMessageBegin('notifyEmailConfirmationResult', TMessageType.CALL, self._seqid) args = notifyEmailConfirmationResult_args() args.parameterMap = parameterMap args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifyEmailConfirmationResult(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifyEmailConfirmationResult_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def registerVirtualAccount(self, locale, encryptedVirtualUserId, encryptedPassword): """ Parameters: - locale - encryptedVirtualUserId - encryptedPassword """ self.send_registerVirtualAccount(locale, encryptedVirtualUserId, encryptedPassword) return self.recv_registerVirtualAccount() def send_registerVirtualAccount(self, locale, encryptedVirtualUserId, encryptedPassword): self._oprot.writeMessageBegin('registerVirtualAccount', TMessageType.CALL, self._seqid) args = registerVirtualAccount_args() args.locale = locale args.encryptedVirtualUserId = encryptedVirtualUserId args.encryptedPassword = encryptedPassword args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerVirtualAccount(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerVirtualAccount_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerVirtualAccount failed: unknown result") def requestVirtualAccountPasswordChange(self, virtualMid, encryptedVirtualUserId, encryptedOldPassword, encryptedNewPassword): """ Parameters: - virtualMid - encryptedVirtualUserId - encryptedOldPassword - encryptedNewPassword """ self.send_requestVirtualAccountPasswordChange(virtualMid, encryptedVirtualUserId, encryptedOldPassword, encryptedNewPassword) self.recv_requestVirtualAccountPasswordChange() def send_requestVirtualAccountPasswordChange(self, virtualMid, encryptedVirtualUserId, encryptedOldPassword, encryptedNewPassword): self._oprot.writeMessageBegin('requestVirtualAccountPasswordChange', TMessageType.CALL, self._seqid) args = requestVirtualAccountPasswordChange_args() args.virtualMid = virtualMid args.encryptedVirtualUserId = encryptedVirtualUserId args.encryptedOldPassword = encryptedOldPassword args.encryptedNewPassword = encryptedNewPassword args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_requestVirtualAccountPasswordChange(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = requestVirtualAccountPasswordChange_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def requestVirtualAccountPasswordSet(self, virtualMid, encryptedVirtualUserId, encryptedNewPassword): """ Parameters: - virtualMid - encryptedVirtualUserId - encryptedNewPassword """ self.send_requestVirtualAccountPasswordSet(virtualMid, encryptedVirtualUserId, encryptedNewPassword) self.recv_requestVirtualAccountPasswordSet() def send_requestVirtualAccountPasswordSet(self, virtualMid, encryptedVirtualUserId, encryptedNewPassword): self._oprot.writeMessageBegin('requestVirtualAccountPasswordSet', TMessageType.CALL, self._seqid) args = requestVirtualAccountPasswordSet_args() args.virtualMid = virtualMid args.encryptedVirtualUserId = encryptedVirtualUserId args.encryptedNewPassword = encryptedNewPassword args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_requestVirtualAccountPasswordSet(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = requestVirtualAccountPasswordSet_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def unregisterVirtualAccount(self, virtualMid): """ Parameters: - virtualMid """ self.send_unregisterVirtualAccount(virtualMid) self.recv_unregisterVirtualAccount() def send_unregisterVirtualAccount(self, virtualMid): self._oprot.writeMessageBegin('unregisterVirtualAccount', TMessageType.CALL, self._seqid) args = unregisterVirtualAccount_args() args.virtualMid = virtualMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_unregisterVirtualAccount(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = unregisterVirtualAccount_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def checkUserAge(self, carrier, sessionId, verifier, standardAge): """ Parameters: - carrier - sessionId - verifier - standardAge """ self.send_checkUserAge(carrier, sessionId, verifier, standardAge) return self.recv_checkUserAge() def send_checkUserAge(self, carrier, sessionId, verifier, standardAge): self._oprot.writeMessageBegin('checkUserAge', TMessageType.CALL, self._seqid) args = checkUserAge_args() args.carrier = carrier args.sessionId = sessionId args.verifier = verifier args.standardAge = standardAge args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_checkUserAge(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = checkUserAge_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "checkUserAge failed: unknown result") def checkUserAgeWithDocomo(self, openIdRedirectUrl, standardAge, verifier): """ Parameters: - openIdRedirectUrl - standardAge - verifier """ self.send_checkUserAgeWithDocomo(openIdRedirectUrl, standardAge, verifier) return self.recv_checkUserAgeWithDocomo() def send_checkUserAgeWithDocomo(self, openIdRedirectUrl, standardAge, verifier): self._oprot.writeMessageBegin('checkUserAgeWithDocomo', TMessageType.CALL, self._seqid) args = checkUserAgeWithDocomo_args() args.openIdRedirectUrl = openIdRedirectUrl args.standardAge = standardAge args.verifier = verifier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_checkUserAgeWithDocomo(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = checkUserAgeWithDocomo_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "checkUserAgeWithDocomo failed: unknown result") def retrieveOpenIdAuthUrlWithDocomo(self): self.send_retrieveOpenIdAuthUrlWithDocomo() return self.recv_retrieveOpenIdAuthUrlWithDocomo() def send_retrieveOpenIdAuthUrlWithDocomo(self): self._oprot.writeMessageBegin('retrieveOpenIdAuthUrlWithDocomo', TMessageType.CALL, self._seqid) args = retrieveOpenIdAuthUrlWithDocomo_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_retrieveOpenIdAuthUrlWithDocomo(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = retrieveOpenIdAuthUrlWithDocomo_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "retrieveOpenIdAuthUrlWithDocomo failed: unknown result") def retrieveRequestToken(self, carrier): """ Parameters: - carrier """ self.send_retrieveRequestToken(carrier) return self.recv_retrieveRequestToken() def send_retrieveRequestToken(self, carrier): self._oprot.writeMessageBegin('retrieveRequestToken', TMessageType.CALL, self._seqid) args = retrieveRequestToken_args() args.carrier = carrier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_retrieveRequestToken(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = retrieveRequestToken_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "retrieveRequestToken failed: unknown result") def addBuddyMember(self, requestId, userMid): """ Parameters: - requestId - userMid """ self.send_addBuddyMember(requestId, userMid) self.recv_addBuddyMember() def send_addBuddyMember(self, requestId, userMid): self._oprot.writeMessageBegin('addBuddyMember', TMessageType.CALL, self._seqid) args = addBuddyMember_args() args.requestId = requestId args.userMid = userMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_addBuddyMember(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = addBuddyMember_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def addBuddyMembers(self, requestId, userMids): """ Parameters: - requestId - userMids """ self.send_addBuddyMembers(requestId, userMids) self.recv_addBuddyMembers() def send_addBuddyMembers(self, requestId, userMids): self._oprot.writeMessageBegin('addBuddyMembers', TMessageType.CALL, self._seqid) args = addBuddyMembers_args() args.requestId = requestId args.userMids = userMids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_addBuddyMembers(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = addBuddyMembers_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def blockBuddyMember(self, requestId, mid): """ Parameters: - requestId - mid """ self.send_blockBuddyMember(requestId, mid) self.recv_blockBuddyMember() def send_blockBuddyMember(self, requestId, mid): self._oprot.writeMessageBegin('blockBuddyMember', TMessageType.CALL, self._seqid) args = blockBuddyMember_args() args.requestId = requestId args.mid = mid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_blockBuddyMember(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = blockBuddyMember_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def commitSendMessagesToAll(self, requestIdList): """ Parameters: - requestIdList """ self.send_commitSendMessagesToAll(requestIdList) return self.recv_commitSendMessagesToAll() def send_commitSendMessagesToAll(self, requestIdList): self._oprot.writeMessageBegin('commitSendMessagesToAll', TMessageType.CALL, self._seqid) args = commitSendMessagesToAll_args() args.requestIdList = requestIdList args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_commitSendMessagesToAll(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = commitSendMessagesToAll_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "commitSendMessagesToAll failed: unknown result") def commitSendMessagesTomids(self, requestIdList, mids): """ Parameters: - requestIdList - mids """ self.send_commitSendMessagesTomids(requestIdList, mids) return self.recv_commitSendMessagesTomids() def send_commitSendMessagesTomids(self, requestIdList, mids): self._oprot.writeMessageBegin('commitSendMessagesTomids', TMessageType.CALL, self._seqid) args = commitSendMessagesTomids_args() args.requestIdList = requestIdList args.mids = mids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_commitSendMessagesTomids(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = commitSendMessagesTomids_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "commitSendMessagesTomids failed: unknown result") def containsBuddyMember(self, requestId, userMid): """ Parameters: - requestId - userMid """ self.send_containsBuddyMember(requestId, userMid) return self.recv_containsBuddyMember() def send_containsBuddyMember(self, requestId, userMid): self._oprot.writeMessageBegin('containsBuddyMember', TMessageType.CALL, self._seqid) args = containsBuddyMember_args() args.requestId = requestId args.userMid = userMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_containsBuddyMember(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = containsBuddyMember_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "containsBuddyMember failed: unknown result") def downloadMessageContent(self, requestId, messageId): """ Parameters: - requestId - messageId """ self.send_downloadMessageContent(requestId, messageId) return self.recv_downloadMessageContent() def send_downloadMessageContent(self, requestId, messageId): self._oprot.writeMessageBegin('downloadMessageContent', TMessageType.CALL, self._seqid) args = downloadMessageContent_args() args.requestId = requestId args.messageId = messageId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_downloadMessageContent(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = downloadMessageContent_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "downloadMessageContent failed: unknown result") def downloadMessageContentPreview(self, requestId, messageId): """ Parameters: - requestId - messageId """ self.send_downloadMessageContentPreview(requestId, messageId) return self.recv_downloadMessageContentPreview() def send_downloadMessageContentPreview(self, requestId, messageId): self._oprot.writeMessageBegin('downloadMessageContentPreview', TMessageType.CALL, self._seqid) args = downloadMessageContentPreview_args() args.requestId = requestId args.messageId = messageId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_downloadMessageContentPreview(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = downloadMessageContentPreview_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "downloadMessageContentPreview failed: unknown result") def downloadProfileImage(self, requestId): """ Parameters: - requestId """ self.send_downloadProfileImage(requestId) return self.recv_downloadProfileImage() def send_downloadProfileImage(self, requestId): self._oprot.writeMessageBegin('downloadProfileImage', TMessageType.CALL, self._seqid) args = downloadProfileImage_args() args.requestId = requestId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_downloadProfileImage(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = downloadProfileImage_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "downloadProfileImage failed: unknown result") def downloadProfileImagePreview(self, requestId): """ Parameters: - requestId """ self.send_downloadProfileImagePreview(requestId) return self.recv_downloadProfileImagePreview() def send_downloadProfileImagePreview(self, requestId): self._oprot.writeMessageBegin('downloadProfileImagePreview', TMessageType.CALL, self._seqid) args = downloadProfileImagePreview_args() args.requestId = requestId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_downloadProfileImagePreview(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = downloadProfileImagePreview_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "downloadProfileImagePreview failed: unknown result") def getActiveMemberCountByBuddyMid(self, buddyMid): """ Parameters: - buddyMid """ self.send_getActiveMemberCountByBuddyMid(buddyMid) return self.recv_getActiveMemberCountByBuddyMid() def send_getActiveMemberCountByBuddyMid(self, buddyMid): self._oprot.writeMessageBegin('getActiveMemberCountByBuddyMid', TMessageType.CALL, self._seqid) args = getActiveMemberCountByBuddyMid_args() args.buddyMid = buddyMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getActiveMemberCountByBuddyMid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getActiveMemberCountByBuddyMid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveMemberCountByBuddyMid failed: unknown result") def getActiveMemberMidsByBuddyMid(self, buddyMid): """ Parameters: - buddyMid """ self.send_getActiveMemberMidsByBuddyMid(buddyMid) return self.recv_getActiveMemberMidsByBuddyMid() def send_getActiveMemberMidsByBuddyMid(self, buddyMid): self._oprot.writeMessageBegin('getActiveMemberMidsByBuddyMid', TMessageType.CALL, self._seqid) args = getActiveMemberMidsByBuddyMid_args() args.buddyMid = buddyMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getActiveMemberMidsByBuddyMid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getActiveMemberMidsByBuddyMid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveMemberMidsByBuddyMid failed: unknown result") def getAllBuddyMembers(self): self.send_getAllBuddyMembers() return self.recv_getAllBuddyMembers() def send_getAllBuddyMembers(self): self._oprot.writeMessageBegin('getAllBuddyMembers', TMessageType.CALL, self._seqid) args = getAllBuddyMembers_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getAllBuddyMembers(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getAllBuddyMembers_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBuddyMembers failed: unknown result") def getBlockedBuddyMembers(self): self.send_getBlockedBuddyMembers() return self.recv_getBlockedBuddyMembers() def send_getBlockedBuddyMembers(self): self._oprot.writeMessageBegin('getBlockedBuddyMembers', TMessageType.CALL, self._seqid) args = getBlockedBuddyMembers_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBlockedBuddyMembers(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBlockedBuddyMembers_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBlockedBuddyMembers failed: unknown result") def getBlockerCountByBuddyMid(self, buddyMid): """ Parameters: - buddyMid """ self.send_getBlockerCountByBuddyMid(buddyMid) return self.recv_getBlockerCountByBuddyMid() def send_getBlockerCountByBuddyMid(self, buddyMid): self._oprot.writeMessageBegin('getBlockerCountByBuddyMid', TMessageType.CALL, self._seqid) args = getBlockerCountByBuddyMid_args() args.buddyMid = buddyMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBlockerCountByBuddyMid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBlockerCountByBuddyMid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBlockerCountByBuddyMid failed: unknown result") def getBuddyDetailByMid(self, buddyMid): """ Parameters: - buddyMid """ self.send_getBuddyDetailByMid(buddyMid) return self.recv_getBuddyDetailByMid() def send_getBuddyDetailByMid(self, buddyMid): self._oprot.writeMessageBegin('getBuddyDetailByMid', TMessageType.CALL, self._seqid) args = getBuddyDetailByMid_args() args.buddyMid = buddyMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBuddyDetailByMid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBuddyDetailByMid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyDetailByMid failed: unknown result") def getBuddyProfile(self): self.send_getBuddyProfile() return self.recv_getBuddyProfile() def send_getBuddyProfile(self): self._oprot.writeMessageBegin('getBuddyProfile', TMessageType.CALL, self._seqid) args = getBuddyProfile_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBuddyProfile(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBuddyProfile_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyProfile failed: unknown result") def getContactTicket(self): self.send_getContactTicket() return self.recv_getContactTicket() def send_getContactTicket(self): self._oprot.writeMessageBegin('getContactTicket', TMessageType.CALL, self._seqid) args = getContactTicket_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getContactTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getContactTicket_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getContactTicket failed: unknown result") def getMemberCountByBuddyMid(self, buddyMid): """ Parameters: - buddyMid """ self.send_getMemberCountByBuddyMid(buddyMid) return self.recv_getMemberCountByBuddyMid() def send_getMemberCountByBuddyMid(self, buddyMid): self._oprot.writeMessageBegin('getMemberCountByBuddyMid', TMessageType.CALL, self._seqid) args = getMemberCountByBuddyMid_args() args.buddyMid = buddyMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMemberCountByBuddyMid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMemberCountByBuddyMid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMemberCountByBuddyMid failed: unknown result") def getSendBuddyMessageResult(self, sendBuddyMessageRequestId): """ Parameters: - sendBuddyMessageRequestId """ self.send_getSendBuddyMessageResult(sendBuddyMessageRequestId) return self.recv_getSendBuddyMessageResult() def send_getSendBuddyMessageResult(self, sendBuddyMessageRequestId): self._oprot.writeMessageBegin('getSendBuddyMessageResult', TMessageType.CALL, self._seqid) args = getSendBuddyMessageResult_args() args.sendBuddyMessageRequestId = sendBuddyMessageRequestId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getSendBuddyMessageResult(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getSendBuddyMessageResult_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getSendBuddyMessageResult failed: unknown result") def getSetBuddyOnAirResult(self, setBuddyOnAirRequestId): """ Parameters: - setBuddyOnAirRequestId """ self.send_getSetBuddyOnAirResult(setBuddyOnAirRequestId) return self.recv_getSetBuddyOnAirResult() def send_getSetBuddyOnAirResult(self, setBuddyOnAirRequestId): self._oprot.writeMessageBegin('getSetBuddyOnAirResult', TMessageType.CALL, self._seqid) args = getSetBuddyOnAirResult_args() args.setBuddyOnAirRequestId = setBuddyOnAirRequestId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getSetBuddyOnAirResult(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getSetBuddyOnAirResult_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getSetBuddyOnAirResult failed: unknown result") def getUpdateBuddyProfileResult(self, updateBuddyProfileRequestId): """ Parameters: - updateBuddyProfileRequestId """ self.send_getUpdateBuddyProfileResult(updateBuddyProfileRequestId) return self.recv_getUpdateBuddyProfileResult() def send_getUpdateBuddyProfileResult(self, updateBuddyProfileRequestId): self._oprot.writeMessageBegin('getUpdateBuddyProfileResult', TMessageType.CALL, self._seqid) args = getUpdateBuddyProfileResult_args() args.updateBuddyProfileRequestId = updateBuddyProfileRequestId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getUpdateBuddyProfileResult(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getUpdateBuddyProfileResult_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getUpdateBuddyProfileResult failed: unknown result") def isBuddyOnAirByMid(self, buddyMid): """ Parameters: - buddyMid """ self.send_isBuddyOnAirByMid(buddyMid) return self.recv_isBuddyOnAirByMid() def send_isBuddyOnAirByMid(self, buddyMid): self._oprot.writeMessageBegin('isBuddyOnAirByMid', TMessageType.CALL, self._seqid) args = isBuddyOnAirByMid_args() args.buddyMid = buddyMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_isBuddyOnAirByMid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = isBuddyOnAirByMid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "isBuddyOnAirByMid failed: unknown result") def linkAndSendBuddyContentMessageToAllAsync(self, requestId, msg, sourceContentId): """ Parameters: - requestId - msg - sourceContentId """ self.send_linkAndSendBuddyContentMessageToAllAsync(requestId, msg, sourceContentId) return self.recv_linkAndSendBuddyContentMessageToAllAsync() def send_linkAndSendBuddyContentMessageToAllAsync(self, requestId, msg, sourceContentId): self._oprot.writeMessageBegin('linkAndSendBuddyContentMessageToAllAsync', TMessageType.CALL, self._seqid) args = linkAndSendBuddyContentMessageToAllAsync_args() args.requestId = requestId args.msg = msg args.sourceContentId = sourceContentId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_linkAndSendBuddyContentMessageToAllAsync(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = linkAndSendBuddyContentMessageToAllAsync_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "linkAndSendBuddyContentMessageToAllAsync failed: unknown result") def linkAndSendBuddyContentMessageTomids(self, requestId, msg, sourceContentId, mids): """ Parameters: - requestId - msg - sourceContentId - mids """ self.send_linkAndSendBuddyContentMessageTomids(requestId, msg, sourceContentId, mids) return self.recv_linkAndSendBuddyContentMessageTomids() def send_linkAndSendBuddyContentMessageTomids(self, requestId, msg, sourceContentId, mids): self._oprot.writeMessageBegin('linkAndSendBuddyContentMessageTomids', TMessageType.CALL, self._seqid) args = linkAndSendBuddyContentMessageTomids_args() args.requestId = requestId args.msg = msg args.sourceContentId = sourceContentId args.mids = mids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_linkAndSendBuddyContentMessageTomids(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = linkAndSendBuddyContentMessageTomids_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "linkAndSendBuddyContentMessageTomids failed: unknown result") def notifyBuddyBlocked(self, buddyMid, blockerMid): """ Parameters: - buddyMid - blockerMid """ self.send_notifyBuddyBlocked(buddyMid, blockerMid) self.recv_notifyBuddyBlocked() def send_notifyBuddyBlocked(self, buddyMid, blockerMid): self._oprot.writeMessageBegin('notifyBuddyBlocked', TMessageType.CALL, self._seqid) args = notifyBuddyBlocked_args() args.buddyMid = buddyMid args.blockerMid = blockerMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifyBuddyBlocked(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifyBuddyBlocked_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def notifyBuddyUnblocked(self, buddyMid, blockerMid): """ Parameters: - buddyMid - blockerMid """ self.send_notifyBuddyUnblocked(buddyMid, blockerMid) self.recv_notifyBuddyUnblocked() def send_notifyBuddyUnblocked(self, buddyMid, blockerMid): self._oprot.writeMessageBegin('notifyBuddyUnblocked', TMessageType.CALL, self._seqid) args = notifyBuddyUnblocked_args() args.buddyMid = buddyMid args.blockerMid = blockerMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifyBuddyUnblocked(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifyBuddyUnblocked_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def registerBuddy(self, buddyId, searchId, displayName, statusMeessage, picture, settings): """ Parameters: - buddyId - searchId - displayName - statusMeessage - picture - settings """ self.send_registerBuddy(buddyId, searchId, displayName, statusMeessage, picture, settings) return self.recv_registerBuddy() def send_registerBuddy(self, buddyId, searchId, displayName, statusMeessage, picture, settings): self._oprot.writeMessageBegin('registerBuddy', TMessageType.CALL, self._seqid) args = registerBuddy_args() args.buddyId = buddyId args.searchId = searchId args.displayName = displayName args.statusMeessage = statusMeessage args.picture = picture args.settings = settings args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerBuddy(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerBuddy_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerBuddy failed: unknown result") def registerBuddyAdmin(self, buddyId, searchId, displayName, statusMessage, picture): """ Parameters: - buddyId - searchId - displayName - statusMessage - picture """ self.send_registerBuddyAdmin(buddyId, searchId, displayName, statusMessage, picture) return self.recv_registerBuddyAdmin() def send_registerBuddyAdmin(self, buddyId, searchId, displayName, statusMessage, picture): self._oprot.writeMessageBegin('registerBuddyAdmin', TMessageType.CALL, self._seqid) args = registerBuddyAdmin_args() args.buddyId = buddyId args.searchId = searchId args.displayName = displayName args.statusMessage = statusMessage args.picture = picture args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerBuddyAdmin(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerBuddyAdmin_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerBuddyAdmin failed: unknown result") def reissueContactTicket(self, expirationTime, maxUseCount): """ Parameters: - expirationTime - maxUseCount """ self.send_reissueContactTicket(expirationTime, maxUseCount) return self.recv_reissueContactTicket() def send_reissueContactTicket(self, expirationTime, maxUseCount): self._oprot.writeMessageBegin('reissueContactTicket', TMessageType.CALL, self._seqid) args = reissueContactTicket_args() args.expirationTime = expirationTime args.maxUseCount = maxUseCount args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reissueContactTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reissueContactTicket_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "reissueContactTicket failed: unknown result") def removeBuddyMember(self, requestId, userMid): """ Parameters: - requestId - userMid """ self.send_removeBuddyMember(requestId, userMid) self.recv_removeBuddyMember() def send_removeBuddyMember(self, requestId, userMid): self._oprot.writeMessageBegin('removeBuddyMember', TMessageType.CALL, self._seqid) args = removeBuddyMember_args() args.requestId = requestId args.userMid = userMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_removeBuddyMember(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = removeBuddyMember_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def removeBuddyMembers(self, requestId, userMids): """ Parameters: - requestId - userMids """ self.send_removeBuddyMembers(requestId, userMids) self.recv_removeBuddyMembers() def send_removeBuddyMembers(self, requestId, userMids): self._oprot.writeMessageBegin('removeBuddyMembers', TMessageType.CALL, self._seqid) args = removeBuddyMembers_args() args.requestId = requestId args.userMids = userMids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_removeBuddyMembers(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = removeBuddyMembers_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def sendBuddyContentMessageToAll(self, requestId, msg, content): """ Parameters: - requestId - msg - content """ self.send_sendBuddyContentMessageToAll(requestId, msg, content) return self.recv_sendBuddyContentMessageToAll() def send_sendBuddyContentMessageToAll(self, requestId, msg, content): self._oprot.writeMessageBegin('sendBuddyContentMessageToAll', TMessageType.CALL, self._seqid) args = sendBuddyContentMessageToAll_args() args.requestId = requestId args.msg = msg args.content = content args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendBuddyContentMessageToAll(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendBuddyContentMessageToAll_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyContentMessageToAll failed: unknown result") def sendBuddyContentMessageToAllAsync(self, requestId, msg, content): """ Parameters: - requestId - msg - content """ self.send_sendBuddyContentMessageToAllAsync(requestId, msg, content) return self.recv_sendBuddyContentMessageToAllAsync() def send_sendBuddyContentMessageToAllAsync(self, requestId, msg, content): self._oprot.writeMessageBegin('sendBuddyContentMessageToAllAsync', TMessageType.CALL, self._seqid) args = sendBuddyContentMessageToAllAsync_args() args.requestId = requestId args.msg = msg args.content = content args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendBuddyContentMessageToAllAsync(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendBuddyContentMessageToAllAsync_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyContentMessageToAllAsync failed: unknown result") def sendBuddyContentMessageTomids(self, requestId, msg, content, mids): """ Parameters: - requestId - msg - content - mids """ self.send_sendBuddyContentMessageTomids(requestId, msg, content, mids) return self.recv_sendBuddyContentMessageTomids() def send_sendBuddyContentMessageTomids(self, requestId, msg, content, mids): self._oprot.writeMessageBegin('sendBuddyContentMessageTomids', TMessageType.CALL, self._seqid) args = sendBuddyContentMessageTomids_args() args.requestId = requestId args.msg = msg args.content = content args.mids = mids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendBuddyContentMessageTomids(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendBuddyContentMessageTomids_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyContentMessageTomids failed: unknown result") def sendBuddyContentMessageTomidsAsync(self, requestId, msg, content, mids): """ Parameters: - requestId - msg - content - mids """ self.send_sendBuddyContentMessageTomidsAsync(requestId, msg, content, mids) return self.recv_sendBuddyContentMessageTomidsAsync() def send_sendBuddyContentMessageTomidsAsync(self, requestId, msg, content, mids): self._oprot.writeMessageBegin('sendBuddyContentMessageTomidsAsync', TMessageType.CALL, self._seqid) args = sendBuddyContentMessageTomidsAsync_args() args.requestId = requestId args.msg = msg args.content = content args.mids = mids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendBuddyContentMessageTomidsAsync(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendBuddyContentMessageTomidsAsync_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyContentMessageTomidsAsync failed: unknown result") def sendBuddyMessageToAll(self, requestId, msg): """ Parameters: - requestId - msg """ self.send_sendBuddyMessageToAll(requestId, msg) return self.recv_sendBuddyMessageToAll() def send_sendBuddyMessageToAll(self, requestId, msg): self._oprot.writeMessageBegin('sendBuddyMessageToAll', TMessageType.CALL, self._seqid) args = sendBuddyMessageToAll_args() args.requestId = requestId args.msg = msg args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendBuddyMessageToAll(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendBuddyMessageToAll_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyMessageToAll failed: unknown result") def sendBuddyMessageToAllAsync(self, requestId, msg): """ Parameters: - requestId - msg """ self.send_sendBuddyMessageToAllAsync(requestId, msg) return self.recv_sendBuddyMessageToAllAsync() def send_sendBuddyMessageToAllAsync(self, requestId, msg): self._oprot.writeMessageBegin('sendBuddyMessageToAllAsync', TMessageType.CALL, self._seqid) args = sendBuddyMessageToAllAsync_args() args.requestId = requestId args.msg = msg args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendBuddyMessageToAllAsync(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendBuddyMessageToAllAsync_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyMessageToAllAsync failed: unknown result") def sendBuddyMessageTomids(self, requestId, msg, mids): """ Parameters: - requestId - msg - mids """ self.send_sendBuddyMessageTomids(requestId, msg, mids) return self.recv_sendBuddyMessageTomids() def send_sendBuddyMessageTomids(self, requestId, msg, mids): self._oprot.writeMessageBegin('sendBuddyMessageTomids', TMessageType.CALL, self._seqid) args = sendBuddyMessageTomids_args() args.requestId = requestId args.msg = msg args.mids = mids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendBuddyMessageTomids(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendBuddyMessageTomids_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyMessageTomids failed: unknown result") def sendBuddyMessageTomidsAsync(self, requestId, msg, mids): """ Parameters: - requestId - msg - mids """ self.send_sendBuddyMessageTomidsAsync(requestId, msg, mids) return self.recv_sendBuddyMessageTomidsAsync() def send_sendBuddyMessageTomidsAsync(self, requestId, msg, mids): self._oprot.writeMessageBegin('sendBuddyMessageTomidsAsync', TMessageType.CALL, self._seqid) args = sendBuddyMessageTomidsAsync_args() args.requestId = requestId args.msg = msg args.mids = mids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendBuddyMessageTomidsAsync(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendBuddyMessageTomidsAsync_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyMessageTomidsAsync failed: unknown result") def sendIndividualEventToAllAsync(self, requestId, buddyMid, notificationStatus): """ Parameters: - requestId - buddyMid - notificationStatus """ self.send_sendIndividualEventToAllAsync(requestId, buddyMid, notificationStatus) self.recv_sendIndividualEventToAllAsync() def send_sendIndividualEventToAllAsync(self, requestId, buddyMid, notificationStatus): self._oprot.writeMessageBegin('sendIndividualEventToAllAsync', TMessageType.CALL, self._seqid) args = sendIndividualEventToAllAsync_args() args.requestId = requestId args.buddyMid = buddyMid args.notificationStatus = notificationStatus args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendIndividualEventToAllAsync(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendIndividualEventToAllAsync_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def setBuddyOnAir(self, requestId, onAir): """ Parameters: - requestId - onAir """ self.send_setBuddyOnAir(requestId, onAir) return self.recv_setBuddyOnAir() def send_setBuddyOnAir(self, requestId, onAir): self._oprot.writeMessageBegin('setBuddyOnAir', TMessageType.CALL, self._seqid) args = setBuddyOnAir_args() args.requestId = requestId args.onAir = onAir args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_setBuddyOnAir(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = setBuddyOnAir_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "setBuddyOnAir failed: unknown result") def setBuddyOnAirAsync(self, requestId, onAir): """ Parameters: - requestId - onAir """ self.send_setBuddyOnAirAsync(requestId, onAir) return self.recv_setBuddyOnAirAsync() def send_setBuddyOnAirAsync(self, requestId, onAir): self._oprot.writeMessageBegin('setBuddyOnAirAsync', TMessageType.CALL, self._seqid) args = setBuddyOnAirAsync_args() args.requestId = requestId args.onAir = onAir args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_setBuddyOnAirAsync(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = setBuddyOnAirAsync_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "setBuddyOnAirAsync failed: unknown result") def storeMessage(self, requestId, messageRequest): """ Parameters: - requestId - messageRequest """ self.send_storeMessage(requestId, messageRequest) return self.recv_storeMessage() def send_storeMessage(self, requestId, messageRequest): self._oprot.writeMessageBegin('storeMessage', TMessageType.CALL, self._seqid) args = storeMessage_args() args.requestId = requestId args.messageRequest = messageRequest args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_storeMessage(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = storeMessage_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "storeMessage failed: unknown result") def unblockBuddyMember(self, requestId, mid): """ Parameters: - requestId - mid """ self.send_unblockBuddyMember(requestId, mid) self.recv_unblockBuddyMember() def send_unblockBuddyMember(self, requestId, mid): self._oprot.writeMessageBegin('unblockBuddyMember', TMessageType.CALL, self._seqid) args = unblockBuddyMember_args() args.requestId = requestId args.mid = mid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_unblockBuddyMember(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = unblockBuddyMember_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def unregisterBuddy(self, requestId): """ Parameters: - requestId """ self.send_unregisterBuddy(requestId) self.recv_unregisterBuddy() def send_unregisterBuddy(self, requestId): self._oprot.writeMessageBegin('unregisterBuddy', TMessageType.CALL, self._seqid) args = unregisterBuddy_args() args.requestId = requestId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_unregisterBuddy(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = unregisterBuddy_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def unregisterBuddyAdmin(self, requestId): """ Parameters: - requestId """ self.send_unregisterBuddyAdmin(requestId) self.recv_unregisterBuddyAdmin() def send_unregisterBuddyAdmin(self, requestId): self._oprot.writeMessageBegin('unregisterBuddyAdmin', TMessageType.CALL, self._seqid) args = unregisterBuddyAdmin_args() args.requestId = requestId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_unregisterBuddyAdmin(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = unregisterBuddyAdmin_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateBuddyAdminProfileAttribute(self, requestId, attributes): """ Parameters: - requestId - attributes """ self.send_updateBuddyAdminProfileAttribute(requestId, attributes) self.recv_updateBuddyAdminProfileAttribute() def send_updateBuddyAdminProfileAttribute(self, requestId, attributes): self._oprot.writeMessageBegin('updateBuddyAdminProfileAttribute', TMessageType.CALL, self._seqid) args = updateBuddyAdminProfileAttribute_args() args.requestId = requestId args.attributes = attributes args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateBuddyAdminProfileAttribute(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateBuddyAdminProfileAttribute_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateBuddyAdminProfileImage(self, requestId, picture): """ Parameters: - requestId - picture """ self.send_updateBuddyAdminProfileImage(requestId, picture) self.recv_updateBuddyAdminProfileImage() def send_updateBuddyAdminProfileImage(self, requestId, picture): self._oprot.writeMessageBegin('updateBuddyAdminProfileImage', TMessageType.CALL, self._seqid) args = updateBuddyAdminProfileImage_args() args.requestId = requestId args.picture = picture args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateBuddyAdminProfileImage(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateBuddyAdminProfileImage_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateBuddyProfileAttributes(self, requestId, attributes): """ Parameters: - requestId - attributes """ self.send_updateBuddyProfileAttributes(requestId, attributes) return self.recv_updateBuddyProfileAttributes() def send_updateBuddyProfileAttributes(self, requestId, attributes): self._oprot.writeMessageBegin('updateBuddyProfileAttributes', TMessageType.CALL, self._seqid) args = updateBuddyProfileAttributes_args() args.requestId = requestId args.attributes = attributes args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateBuddyProfileAttributes(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateBuddyProfileAttributes_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBuddyProfileAttributes failed: unknown result") def updateBuddyProfileAttributesAsync(self, requestId, attributes): """ Parameters: - requestId - attributes """ self.send_updateBuddyProfileAttributesAsync(requestId, attributes) return self.recv_updateBuddyProfileAttributesAsync() def send_updateBuddyProfileAttributesAsync(self, requestId, attributes): self._oprot.writeMessageBegin('updateBuddyProfileAttributesAsync', TMessageType.CALL, self._seqid) args = updateBuddyProfileAttributesAsync_args() args.requestId = requestId args.attributes = attributes args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateBuddyProfileAttributesAsync(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateBuddyProfileAttributesAsync_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBuddyProfileAttributesAsync failed: unknown result") def updateBuddyProfileImage(self, requestId, image): """ Parameters: - requestId - image """ self.send_updateBuddyProfileImage(requestId, image) return self.recv_updateBuddyProfileImage() def send_updateBuddyProfileImage(self, requestId, image): self._oprot.writeMessageBegin('updateBuddyProfileImage', TMessageType.CALL, self._seqid) args = updateBuddyProfileImage_args() args.requestId = requestId args.image = image args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateBuddyProfileImage(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateBuddyProfileImage_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBuddyProfileImage failed: unknown result") def updateBuddyProfileImageAsync(self, requestId, image): """ Parameters: - requestId - image """ self.send_updateBuddyProfileImageAsync(requestId, image) return self.recv_updateBuddyProfileImageAsync() def send_updateBuddyProfileImageAsync(self, requestId, image): self._oprot.writeMessageBegin('updateBuddyProfileImageAsync', TMessageType.CALL, self._seqid) args = updateBuddyProfileImageAsync_args() args.requestId = requestId args.image = image args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateBuddyProfileImageAsync(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateBuddyProfileImageAsync_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBuddyProfileImageAsync failed: unknown result") def updateBuddySearchId(self, requestId, searchId): """ Parameters: - requestId - searchId """ self.send_updateBuddySearchId(requestId, searchId) self.recv_updateBuddySearchId() def send_updateBuddySearchId(self, requestId, searchId): self._oprot.writeMessageBegin('updateBuddySearchId', TMessageType.CALL, self._seqid) args = updateBuddySearchId_args() args.requestId = requestId args.searchId = searchId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateBuddySearchId(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateBuddySearchId_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateBuddySettings(self, settings): """ Parameters: - settings """ self.send_updateBuddySettings(settings) self.recv_updateBuddySettings() def send_updateBuddySettings(self, settings): self._oprot.writeMessageBegin('updateBuddySettings', TMessageType.CALL, self._seqid) args = updateBuddySettings_args() args.settings = settings args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateBuddySettings(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateBuddySettings_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def uploadBuddyContent(self, contentType, content): """ Parameters: - contentType - content """ self.send_uploadBuddyContent(contentType, content) return self.recv_uploadBuddyContent() def send_uploadBuddyContent(self, contentType, content): self._oprot.writeMessageBegin('uploadBuddyContent', TMessageType.CALL, self._seqid) args = uploadBuddyContent_args() args.contentType = contentType args.content = content args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_uploadBuddyContent(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = uploadBuddyContent_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "uploadBuddyContent failed: unknown result") def findBuddyContactsByQuery(self, language, country, query, fromIndex, count, requestSource): """ Parameters: - language - country - query - fromIndex - count - requestSource """ self.send_findBuddyContactsByQuery(language, country, query, fromIndex, count, requestSource) return self.recv_findBuddyContactsByQuery() def send_findBuddyContactsByQuery(self, language, country, query, fromIndex, count, requestSource): self._oprot.writeMessageBegin('findBuddyContactsByQuery', TMessageType.CALL, self._seqid) args = findBuddyContactsByQuery_args() args.language = language args.country = country args.query = query args.fromIndex = fromIndex args.count = count args.requestSource = requestSource args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findBuddyContactsByQuery(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findBuddyContactsByQuery_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findBuddyContactsByQuery failed: unknown result") def getBuddyContacts(self, language, country, classification, fromIndex, count): """ Parameters: - language - country - classification - fromIndex - count """ self.send_getBuddyContacts(language, country, classification, fromIndex, count) return self.recv_getBuddyContacts() def send_getBuddyContacts(self, language, country, classification, fromIndex, count): self._oprot.writeMessageBegin('getBuddyContacts', TMessageType.CALL, self._seqid) args = getBuddyContacts_args() args.language = language args.country = country args.classification = classification args.fromIndex = fromIndex args.count = count args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBuddyContacts(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBuddyContacts_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyContacts failed: unknown result") def getBuddyDetail(self, buddyMid): """ Parameters: - buddyMid """ self.send_getBuddyDetail(buddyMid) return self.recv_getBuddyDetail() def send_getBuddyDetail(self, buddyMid): self._oprot.writeMessageBegin('getBuddyDetail', TMessageType.CALL, self._seqid) args = getBuddyDetail_args() args.buddyMid = buddyMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBuddyDetail(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBuddyDetail_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyDetail failed: unknown result") def getBuddyOnAir(self, buddyMid): """ Parameters: - buddyMid """ self.send_getBuddyOnAir(buddyMid) return self.recv_getBuddyOnAir() def send_getBuddyOnAir(self, buddyMid): self._oprot.writeMessageBegin('getBuddyOnAir', TMessageType.CALL, self._seqid) args = getBuddyOnAir_args() args.buddyMid = buddyMid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBuddyOnAir(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBuddyOnAir_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyOnAir failed: unknown result") def getCountriesHavingBuddy(self): self.send_getCountriesHavingBuddy() return self.recv_getCountriesHavingBuddy() def send_getCountriesHavingBuddy(self): self._oprot.writeMessageBegin('getCountriesHavingBuddy', TMessageType.CALL, self._seqid) args = getCountriesHavingBuddy_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getCountriesHavingBuddy(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getCountriesHavingBuddy_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountriesHavingBuddy failed: unknown result") def getNewlyReleasedBuddyIds(self, country): """ Parameters: - country """ self.send_getNewlyReleasedBuddyIds(country) return self.recv_getNewlyReleasedBuddyIds() def send_getNewlyReleasedBuddyIds(self, country): self._oprot.writeMessageBegin('getNewlyReleasedBuddyIds', TMessageType.CALL, self._seqid) args = getNewlyReleasedBuddyIds_args() args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getNewlyReleasedBuddyIds(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getNewlyReleasedBuddyIds_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getNewlyReleasedBuddyIds failed: unknown result") def getPopularBuddyBanner(self, language, country, applicationType, resourceSpecification): """ Parameters: - language - country - applicationType - resourceSpecification """ self.send_getPopularBuddyBanner(language, country, applicationType, resourceSpecification) return self.recv_getPopularBuddyBanner() def send_getPopularBuddyBanner(self, language, country, applicationType, resourceSpecification): self._oprot.writeMessageBegin('getPopularBuddyBanner', TMessageType.CALL, self._seqid) args = getPopularBuddyBanner_args() args.language = language args.country = country args.applicationType = applicationType args.resourceSpecification = resourceSpecification args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getPopularBuddyBanner(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getPopularBuddyBanner_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getPopularBuddyBanner failed: unknown result") def getPopularBuddyLists(self, language, country): """ Parameters: - language - country """ self.send_getPopularBuddyLists(language, country) return self.recv_getPopularBuddyLists() def send_getPopularBuddyLists(self, language, country): self._oprot.writeMessageBegin('getPopularBuddyLists', TMessageType.CALL, self._seqid) args = getPopularBuddyLists_args() args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getPopularBuddyLists(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getPopularBuddyLists_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getPopularBuddyLists failed: unknown result") def getPromotedBuddyContacts(self, language, country): """ Parameters: - language - country """ self.send_getPromotedBuddyContacts(language, country) return self.recv_getPromotedBuddyContacts() def send_getPromotedBuddyContacts(self, language, country): self._oprot.writeMessageBegin('getPromotedBuddyContacts', TMessageType.CALL, self._seqid) args = getPromotedBuddyContacts_args() args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getPromotedBuddyContacts(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getPromotedBuddyContacts_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getPromotedBuddyContacts failed: unknown result") def activeBuddySubscriberCount(self): self.send_activeBuddySubscriberCount() return self.recv_activeBuddySubscriberCount() def send_activeBuddySubscriberCount(self): self._oprot.writeMessageBegin('activeBuddySubscriberCount', TMessageType.CALL, self._seqid) args = activeBuddySubscriberCount_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_activeBuddySubscriberCount(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = activeBuddySubscriberCount_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "activeBuddySubscriberCount failed: unknown result") def addOperationForChannel(self, opType, param1, param2, param3): """ Parameters: - opType - param1 - param2 - param3 """ self.send_addOperationForChannel(opType, param1, param2, param3) self.recv_addOperationForChannel() def send_addOperationForChannel(self, opType, param1, param2, param3): self._oprot.writeMessageBegin('addOperationForChannel', TMessageType.CALL, self._seqid) args = addOperationForChannel_args() args.opType = opType args.param1 = param1 args.param2 = param2 args.param3 = param3 args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_addOperationForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = addOperationForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def displayBuddySubscriberCount(self): self.send_displayBuddySubscriberCount() return self.recv_displayBuddySubscriberCount() def send_displayBuddySubscriberCount(self): self._oprot.writeMessageBegin('displayBuddySubscriberCount', TMessageType.CALL, self._seqid) args = displayBuddySubscriberCount_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_displayBuddySubscriberCount(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = displayBuddySubscriberCount_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "displayBuddySubscriberCount failed: unknown result") def findContactByUseridWithoutAbuseBlockForChannel(self, userid): """ Parameters: - userid """ self.send_findContactByUseridWithoutAbuseBlockForChannel(userid) return self.recv_findContactByUseridWithoutAbuseBlockForChannel() def send_findContactByUseridWithoutAbuseBlockForChannel(self, userid): self._oprot.writeMessageBegin('findContactByUseridWithoutAbuseBlockForChannel', TMessageType.CALL, self._seqid) args = findContactByUseridWithoutAbuseBlockForChannel_args() args.userid = userid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findContactByUseridWithoutAbuseBlockForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findContactByUseridWithoutAbuseBlockForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findContactByUseridWithoutAbuseBlockForChannel failed: unknown result") def getAllContactIdsForChannel(self): self.send_getAllContactIdsForChannel() return self.recv_getAllContactIdsForChannel() def send_getAllContactIdsForChannel(self): self._oprot.writeMessageBegin('getAllContactIdsForChannel', TMessageType.CALL, self._seqid) args = getAllContactIdsForChannel_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getAllContactIdsForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getAllContactIdsForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllContactIdsForChannel failed: unknown result") def getCompactContacts(self, lastModifiedTimestamp): """ Parameters: - lastModifiedTimestamp """ self.send_getCompactContacts(lastModifiedTimestamp) return self.recv_getCompactContacts() def send_getCompactContacts(self, lastModifiedTimestamp): self._oprot.writeMessageBegin('getCompactContacts', TMessageType.CALL, self._seqid) args = getCompactContacts_args() args.lastModifiedTimestamp = lastModifiedTimestamp args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getCompactContacts(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getCompactContacts_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompactContacts failed: unknown result") def getContactsForChannel(self, ids): """ Parameters: - ids """ self.send_getContactsForChannel(ids) return self.recv_getContactsForChannel() def send_getContactsForChannel(self, ids): self._oprot.writeMessageBegin('getContactsForChannel', TMessageType.CALL, self._seqid) args = getContactsForChannel_args() args.ids = ids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getContactsForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getContactsForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getContactsForChannel failed: unknown result") def getDisplayName(self, mid): """ Parameters: - mid """ self.send_getDisplayName(mid) return self.recv_getDisplayName() def send_getDisplayName(self, mid): self._oprot.writeMessageBegin('getDisplayName', TMessageType.CALL, self._seqid) args = getDisplayName_args() args.mid = mid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getDisplayName(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getDisplayName_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getDisplayName failed: unknown result") def getFavoriteMidsForChannel(self): self.send_getFavoriteMidsForChannel() return self.recv_getFavoriteMidsForChannel() def send_getFavoriteMidsForChannel(self): self._oprot.writeMessageBegin('getFavoriteMidsForChannel', TMessageType.CALL, self._seqid) args = getFavoriteMidsForChannel_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getFavoriteMidsForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getFavoriteMidsForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getFavoriteMidsForChannel failed: unknown result") def getFriendMids(self): self.send_getFriendMids() return self.recv_getFriendMids() def send_getFriendMids(self): self._oprot.writeMessageBegin('getFriendMids', TMessageType.CALL, self._seqid) args = getFriendMids_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getFriendMids(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getFriendMids_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getFriendMids failed: unknown result") def getGroupMemberMids(self, groupId): """ Parameters: - groupId """ self.send_getGroupMemberMids(groupId) return self.recv_getGroupMemberMids() def send_getGroupMemberMids(self, groupId): self._oprot.writeMessageBegin('getGroupMemberMids', TMessageType.CALL, self._seqid) args = getGroupMemberMids_args() args.groupId = groupId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getGroupMemberMids(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getGroupMemberMids_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getGroupMemberMids failed: unknown result") def getGroupsForChannel(self, groupIds): """ Parameters: - groupIds """ self.send_getGroupsForChannel(groupIds) return self.recv_getGroupsForChannel() def send_getGroupsForChannel(self, groupIds): self._oprot.writeMessageBegin('getGroupsForChannel', TMessageType.CALL, self._seqid) args = getGroupsForChannel_args() args.groupIds = groupIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getGroupsForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getGroupsForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getGroupsForChannel failed: unknown result") def getIdentityCredential(self): self.send_getIdentityCredential() return self.recv_getIdentityCredential() def send_getIdentityCredential(self): self._oprot.writeMessageBegin('getIdentityCredential', TMessageType.CALL, self._seqid) args = getIdentityCredential_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getIdentityCredential(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getIdentityCredential_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getIdentityCredential failed: unknown result") def getJoinedGroupIdsForChannel(self): self.send_getJoinedGroupIdsForChannel() return self.recv_getJoinedGroupIdsForChannel() def send_getJoinedGroupIdsForChannel(self): self._oprot.writeMessageBegin('getJoinedGroupIdsForChannel', TMessageType.CALL, self._seqid) args = getJoinedGroupIdsForChannel_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getJoinedGroupIdsForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getJoinedGroupIdsForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getJoinedGroupIdsForChannel failed: unknown result") def getMetaProfile(self): self.send_getMetaProfile() return self.recv_getMetaProfile() def send_getMetaProfile(self): self._oprot.writeMessageBegin('getMetaProfile', TMessageType.CALL, self._seqid) args = getMetaProfile_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMetaProfile(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMetaProfile_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMetaProfile failed: unknown result") def getMid(self): self.send_getMid() return self.recv_getMid() def send_getMid(self): self._oprot.writeMessageBegin('getMid', TMessageType.CALL, self._seqid) args = getMid_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMid failed: unknown result") def getPrimaryClientForChannel(self): self.send_getPrimaryClientForChannel() return self.recv_getPrimaryClientForChannel() def send_getPrimaryClientForChannel(self): self._oprot.writeMessageBegin('getPrimaryClientForChannel', TMessageType.CALL, self._seqid) args = getPrimaryClientForChannel_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getPrimaryClientForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getPrimaryClientForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrimaryClientForChannel failed: unknown result") def getProfileForChannel(self): self.send_getProfileForChannel() return self.recv_getProfileForChannel() def send_getProfileForChannel(self): self._oprot.writeMessageBegin('getProfileForChannel', TMessageType.CALL, self._seqid) args = getProfileForChannel_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getProfileForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getProfileForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getProfileForChannel failed: unknown result") def getSimpleChannelContacts(self, ids): """ Parameters: - ids """ self.send_getSimpleChannelContacts(ids) return self.recv_getSimpleChannelContacts() def send_getSimpleChannelContacts(self, ids): self._oprot.writeMessageBegin('getSimpleChannelContacts', TMessageType.CALL, self._seqid) args = getSimpleChannelContacts_args() args.ids = ids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getSimpleChannelContacts(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getSimpleChannelContacts_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimpleChannelContacts failed: unknown result") def getUserCountryForBilling(self, country, remoteIp): """ Parameters: - country - remoteIp """ self.send_getUserCountryForBilling(country, remoteIp) return self.recv_getUserCountryForBilling() def send_getUserCountryForBilling(self, country, remoteIp): self._oprot.writeMessageBegin('getUserCountryForBilling', TMessageType.CALL, self._seqid) args = getUserCountryForBilling_args() args.country = country args.remoteIp = remoteIp args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getUserCountryForBilling(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getUserCountryForBilling_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCountryForBilling failed: unknown result") def getUserCreateTime(self): self.send_getUserCreateTime() return self.recv_getUserCreateTime() def send_getUserCreateTime(self): self._oprot.writeMessageBegin('getUserCreateTime', TMessageType.CALL, self._seqid) args = getUserCreateTime_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getUserCreateTime(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getUserCreateTime_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCreateTime failed: unknown result") def getUserIdentities(self): self.send_getUserIdentities() return self.recv_getUserIdentities() def send_getUserIdentities(self): self._oprot.writeMessageBegin('getUserIdentities', TMessageType.CALL, self._seqid) args = getUserIdentities_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getUserIdentities(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getUserIdentities_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserIdentities failed: unknown result") def getUserLanguage(self): self.send_getUserLanguage() return self.recv_getUserLanguage() def send_getUserLanguage(self): self._oprot.writeMessageBegin('getUserLanguage', TMessageType.CALL, self._seqid) args = getUserLanguage_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getUserLanguage(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getUserLanguage_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserLanguage failed: unknown result") def getUserMidsWhoAddedMe(self): self.send_getUserMidsWhoAddedMe() return self.recv_getUserMidsWhoAddedMe() def send_getUserMidsWhoAddedMe(self): self._oprot.writeMessageBegin('getUserMidsWhoAddedMe', TMessageType.CALL, self._seqid) args = getUserMidsWhoAddedMe_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getUserMidsWhoAddedMe(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getUserMidsWhoAddedMe_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserMidsWhoAddedMe failed: unknown result") def isGroupMember(self, groupId): """ Parameters: - groupId """ self.send_isGroupMember(groupId) return self.recv_isGroupMember() def send_isGroupMember(self, groupId): self._oprot.writeMessageBegin('isGroupMember', TMessageType.CALL, self._seqid) args = isGroupMember_args() args.groupId = groupId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_isGroupMember(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = isGroupMember_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "isGroupMember failed: unknown result") def isInContact(self, mid): """ Parameters: - mid """ self.send_isInContact(mid) return self.recv_isInContact() def send_isInContact(self, mid): self._oprot.writeMessageBegin('isInContact', TMessageType.CALL, self._seqid) args = isInContact_args() args.mid = mid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_isInContact(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = isInContact_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "isInContact failed: unknown result") def registerChannelCP(self, cpId, registerPassword): """ Parameters: - cpId - registerPassword """ self.send_registerChannelCP(cpId, registerPassword) return self.recv_registerChannelCP() def send_registerChannelCP(self, cpId, registerPassword): self._oprot.writeMessageBegin('registerChannelCP', TMessageType.CALL, self._seqid) args = registerChannelCP_args() args.cpId = cpId args.registerPassword = registerPassword args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerChannelCP(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerChannelCP_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerChannelCP failed: unknown result") def removeNotificationStatus(self, notificationStatus): """ Parameters: - notificationStatus """ self.send_removeNotificationStatus(notificationStatus) self.recv_removeNotificationStatus() def send_removeNotificationStatus(self, notificationStatus): self._oprot.writeMessageBegin('removeNotificationStatus', TMessageType.CALL, self._seqid) args = removeNotificationStatus_args() args.notificationStatus = notificationStatus args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_removeNotificationStatus(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = removeNotificationStatus_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def sendMessageForChannel(self, message): """ Parameters: - message """ self.send_sendMessageForChannel(message) return self.recv_sendMessageForChannel() def send_sendMessageForChannel(self, message): self._oprot.writeMessageBegin('sendMessageForChannel', TMessageType.CALL, self._seqid) args = sendMessageForChannel_args() args.message = message args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendMessageForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendMessageForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendMessageForChannel failed: unknown result") def sendPinCodeOperation(self, verifier): """ Parameters: - verifier """ self.send_sendPinCodeOperation(verifier) self.recv_sendPinCodeOperation() def send_sendPinCodeOperation(self, verifier): self._oprot.writeMessageBegin('sendPinCodeOperation', TMessageType.CALL, self._seqid) args = sendPinCodeOperation_args() args.verifier = verifier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendPinCodeOperation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendPinCodeOperation_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateProfileAttributeForChannel(self, profileAttribute, value): """ Parameters: - profileAttribute - value """ self.send_updateProfileAttributeForChannel(profileAttribute, value) self.recv_updateProfileAttributeForChannel() def send_updateProfileAttributeForChannel(self, profileAttribute, value): self._oprot.writeMessageBegin('updateProfileAttributeForChannel', TMessageType.CALL, self._seqid) args = updateProfileAttributeForChannel_args() args.profileAttribute = profileAttribute args.value = value args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateProfileAttributeForChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateProfileAttributeForChannel_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def approveChannelAndIssueChannelToken(self, channelId): """ Parameters: - channelId """ self.send_approveChannelAndIssueChannelToken(channelId) return self.recv_approveChannelAndIssueChannelToken() def send_approveChannelAndIssueChannelToken(self, channelId): self._oprot.writeMessageBegin('approveChannelAndIssueChannelToken', TMessageType.CALL, self._seqid) args = approveChannelAndIssueChannelToken_args() args.channelId = channelId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_approveChannelAndIssueChannelToken(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = approveChannelAndIssueChannelToken_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "approveChannelAndIssueChannelToken failed: unknown result") def approveChannelAndIssueRequestToken(self, channelId, otpId): """ Parameters: - channelId - otpId """ self.send_approveChannelAndIssueRequestToken(channelId, otpId) return self.recv_approveChannelAndIssueRequestToken() def send_approveChannelAndIssueRequestToken(self, channelId, otpId): self._oprot.writeMessageBegin('approveChannelAndIssueRequestToken', TMessageType.CALL, self._seqid) args = approveChannelAndIssueRequestToken_args() args.channelId = channelId args.otpId = otpId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_approveChannelAndIssueRequestToken(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = approveChannelAndIssueRequestToken_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "approveChannelAndIssueRequestToken failed: unknown result") def fetchNotificationItems(self, localRev): """ Parameters: - localRev """ self.send_fetchNotificationItems(localRev) return self.recv_fetchNotificationItems() def send_fetchNotificationItems(self, localRev): self._oprot.writeMessageBegin('fetchNotificationItems', TMessageType.CALL, self._seqid) args = fetchNotificationItems_args() args.localRev = localRev args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_fetchNotificationItems(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = fetchNotificationItems_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchNotificationItems failed: unknown result") def getApprovedChannels(self, lastSynced, locale): """ Parameters: - lastSynced - locale """ self.send_getApprovedChannels(lastSynced, locale) return self.recv_getApprovedChannels() def send_getApprovedChannels(self, lastSynced, locale): self._oprot.writeMessageBegin('getApprovedChannels', TMessageType.CALL, self._seqid) args = getApprovedChannels_args() args.lastSynced = lastSynced args.locale = locale args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getApprovedChannels(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getApprovedChannels_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getApprovedChannels failed: unknown result") def getChannelInfo(self, channelId, locale): """ Parameters: - channelId - locale """ self.send_getChannelInfo(channelId, locale) return self.recv_getChannelInfo() def send_getChannelInfo(self, channelId, locale): self._oprot.writeMessageBegin('getChannelInfo', TMessageType.CALL, self._seqid) args = getChannelInfo_args() args.channelId = channelId args.locale = locale args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getChannelInfo(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getChannelInfo_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getChannelInfo failed: unknown result") def getChannelNotificationSetting(self, channelId, locale): """ Parameters: - channelId - locale """ self.send_getChannelNotificationSetting(channelId, locale) return self.recv_getChannelNotificationSetting() def send_getChannelNotificationSetting(self, channelId, locale): self._oprot.writeMessageBegin('getChannelNotificationSetting', TMessageType.CALL, self._seqid) args = getChannelNotificationSetting_args() args.channelId = channelId args.locale = locale args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getChannelNotificationSetting(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getChannelNotificationSetting_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getChannelNotificationSetting failed: unknown result") def getChannelNotificationSettings(self, locale): """ Parameters: - locale """ self.send_getChannelNotificationSettings(locale) return self.recv_getChannelNotificationSettings() def send_getChannelNotificationSettings(self, locale): self._oprot.writeMessageBegin('getChannelNotificationSettings', TMessageType.CALL, self._seqid) args = getChannelNotificationSettings_args() args.locale = locale args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getChannelNotificationSettings(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getChannelNotificationSettings_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getChannelNotificationSettings failed: unknown result") def getChannels(self, lastSynced, locale): """ Parameters: - lastSynced - locale """ self.send_getChannels(lastSynced, locale) return self.recv_getChannels() def send_getChannels(self, lastSynced, locale): self._oprot.writeMessageBegin('getChannels', TMessageType.CALL, self._seqid) args = getChannels_args() args.lastSynced = lastSynced args.locale = locale args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getChannels(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getChannels_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getChannels failed: unknown result") def getDomains(self, lastSynced): """ Parameters: - lastSynced """ self.send_getDomains(lastSynced) return self.recv_getDomains() def send_getDomains(self, lastSynced): self._oprot.writeMessageBegin('getDomains', TMessageType.CALL, self._seqid) args = getDomains_args() args.lastSynced = lastSynced args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getDomains(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getDomains_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getDomains failed: unknown result") def getFriendChannelMatrices(self, channelIds): """ Parameters: - channelIds """ self.send_getFriendChannelMatrices(channelIds) return self.recv_getFriendChannelMatrices() def send_getFriendChannelMatrices(self, channelIds): self._oprot.writeMessageBegin('getFriendChannelMatrices', TMessageType.CALL, self._seqid) args = getFriendChannelMatrices_args() args.channelIds = channelIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getFriendChannelMatrices(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getFriendChannelMatrices_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getFriendChannelMatrices failed: unknown result") def getNotificationBadgeCount(self, localRev): """ Parameters: - localRev """ self.send_getNotificationBadgeCount(localRev) return self.recv_getNotificationBadgeCount() def send_getNotificationBadgeCount(self, localRev): self._oprot.writeMessageBegin('getNotificationBadgeCount', TMessageType.CALL, self._seqid) args = getNotificationBadgeCount_args() args.localRev = localRev args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getNotificationBadgeCount(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getNotificationBadgeCount_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getNotificationBadgeCount failed: unknown result") def issueChannelToken(self, channelId): """ Parameters: - channelId """ self.send_issueChannelToken(channelId) return self.recv_issueChannelToken() def send_issueChannelToken(self, channelId): self._oprot.writeMessageBegin('issueChannelToken', TMessageType.CALL, self._seqid) args = issueChannelToken_args() args.channelId = channelId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_issueChannelToken(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = issueChannelToken_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "issueChannelToken failed: unknown result") def issueRequestToken(self, channelId, otpId): """ Parameters: - channelId - otpId """ self.send_issueRequestToken(channelId, otpId) return self.recv_issueRequestToken() def send_issueRequestToken(self, channelId, otpId): self._oprot.writeMessageBegin('issueRequestToken', TMessageType.CALL, self._seqid) args = issueRequestToken_args() args.channelId = channelId args.otpId = otpId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_issueRequestToken(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = issueRequestToken_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "issueRequestToken failed: unknown result") def issueRequestTokenWithAuthScheme(self, channelId, otpId, authScheme, returnUrl): """ Parameters: - channelId - otpId - authScheme - returnUrl """ self.send_issueRequestTokenWithAuthScheme(channelId, otpId, authScheme, returnUrl) return self.recv_issueRequestTokenWithAuthScheme() def send_issueRequestTokenWithAuthScheme(self, channelId, otpId, authScheme, returnUrl): self._oprot.writeMessageBegin('issueRequestTokenWithAuthScheme', TMessageType.CALL, self._seqid) args = issueRequestTokenWithAuthScheme_args() args.channelId = channelId args.otpId = otpId args.authScheme = authScheme args.returnUrl = returnUrl args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_issueRequestTokenWithAuthScheme(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = issueRequestTokenWithAuthScheme_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "issueRequestTokenWithAuthScheme failed: unknown result") def reserveCoinUse(self, request, locale): """ Parameters: - request - locale """ self.send_reserveCoinUse(request, locale) return self.recv_reserveCoinUse() def send_reserveCoinUse(self, request, locale): self._oprot.writeMessageBegin('reserveCoinUse', TMessageType.CALL, self._seqid) args = reserveCoinUse_args() args.request = request args.locale = locale args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reserveCoinUse(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reserveCoinUse_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveCoinUse failed: unknown result") def revokeChannel(self, channelId): """ Parameters: - channelId """ self.send_revokeChannel(channelId) self.recv_revokeChannel() def send_revokeChannel(self, channelId): self._oprot.writeMessageBegin('revokeChannel', TMessageType.CALL, self._seqid) args = revokeChannel_args() args.channelId = channelId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_revokeChannel(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = revokeChannel_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def syncChannelData(self, lastSynced, locale): """ Parameters: - lastSynced - locale """ self.send_syncChannelData(lastSynced, locale) return self.recv_syncChannelData() def send_syncChannelData(self, lastSynced, locale): self._oprot.writeMessageBegin('syncChannelData', TMessageType.CALL, self._seqid) args = syncChannelData_args() args.lastSynced = lastSynced args.locale = locale args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_syncChannelData(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = syncChannelData_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "syncChannelData failed: unknown result") def updateChannelNotificationSetting(self, setting): """ Parameters: - setting """ self.send_updateChannelNotificationSetting(setting) self.recv_updateChannelNotificationSetting() def send_updateChannelNotificationSetting(self, setting): self._oprot.writeMessageBegin('updateChannelNotificationSetting', TMessageType.CALL, self._seqid) args = updateChannelNotificationSetting_args() args.setting = setting args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateChannelNotificationSetting(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateChannelNotificationSetting_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def fetchMessageOperations(self, localRevision, lastOpTimestamp, count): """ Parameters: - localRevision - lastOpTimestamp - count """ self.send_fetchMessageOperations(localRevision, lastOpTimestamp, count) return self.recv_fetchMessageOperations() def send_fetchMessageOperations(self, localRevision, lastOpTimestamp, count): self._oprot.writeMessageBegin('fetchMessageOperations', TMessageType.CALL, self._seqid) args = fetchMessageOperations_args() args.localRevision = localRevision args.lastOpTimestamp = lastOpTimestamp args.count = count args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_fetchMessageOperations(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = fetchMessageOperations_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchMessageOperations failed: unknown result") def getLastReadMessageIds(self, chatId): """ Parameters: - chatId """ self.send_getLastReadMessageIds(chatId) return self.recv_getLastReadMessageIds() def send_getLastReadMessageIds(self, chatId): self._oprot.writeMessageBegin('getLastReadMessageIds', TMessageType.CALL, self._seqid) args = getLastReadMessageIds_args() args.chatId = chatId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getLastReadMessageIds(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getLastReadMessageIds_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastReadMessageIds failed: unknown result") def multiGetLastReadMessageIds(self, chatIds): """ Parameters: - chatIds """ self.send_multiGetLastReadMessageIds(chatIds) return self.recv_multiGetLastReadMessageIds() def send_multiGetLastReadMessageIds(self, chatIds): self._oprot.writeMessageBegin('multiGetLastReadMessageIds', TMessageType.CALL, self._seqid) args = multiGetLastReadMessageIds_args() args.chatIds = chatIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_multiGetLastReadMessageIds(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = multiGetLastReadMessageIds_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "multiGetLastReadMessageIds failed: unknown result") def buyCoinProduct(self, paymentReservation): """ Parameters: - paymentReservation """ self.send_buyCoinProduct(paymentReservation) self.recv_buyCoinProduct() def send_buyCoinProduct(self, paymentReservation): self._oprot.writeMessageBegin('buyCoinProduct', TMessageType.CALL, self._seqid) args = buyCoinProduct_args() args.paymentReservation = paymentReservation args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_buyCoinProduct(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = buyCoinProduct_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def buyFreeProduct(self, receiverMid, productId, messageTemplate, language, country, packageId): """ Parameters: - receiverMid - productId - messageTemplate - language - country - packageId """ self.send_buyFreeProduct(receiverMid, productId, messageTemplate, language, country, packageId) self.recv_buyFreeProduct() def send_buyFreeProduct(self, receiverMid, productId, messageTemplate, language, country, packageId): self._oprot.writeMessageBegin('buyFreeProduct', TMessageType.CALL, self._seqid) args = buyFreeProduct_args() args.receiverMid = receiverMid args.productId = productId args.messageTemplate = messageTemplate args.language = language args.country = country args.packageId = packageId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_buyFreeProduct(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = buyFreeProduct_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def buyMustbuyProduct(self, receiverMid, productId, messageTemplate, language, country, packageId, serialNumber): """ Parameters: - receiverMid - productId - messageTemplate - language - country - packageId - serialNumber """ self.send_buyMustbuyProduct(receiverMid, productId, messageTemplate, language, country, packageId, serialNumber) self.recv_buyMustbuyProduct() def send_buyMustbuyProduct(self, receiverMid, productId, messageTemplate, language, country, packageId, serialNumber): self._oprot.writeMessageBegin('buyMustbuyProduct', TMessageType.CALL, self._seqid) args = buyMustbuyProduct_args() args.receiverMid = receiverMid args.productId = productId args.messageTemplate = messageTemplate args.language = language args.country = country args.packageId = packageId args.serialNumber = serialNumber args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_buyMustbuyProduct(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = buyMustbuyProduct_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def checkCanReceivePresent(self, recipientMid, packageId, language, country): """ Parameters: - recipientMid - packageId - language - country """ self.send_checkCanReceivePresent(recipientMid, packageId, language, country) self.recv_checkCanReceivePresent() def send_checkCanReceivePresent(self, recipientMid, packageId, language, country): self._oprot.writeMessageBegin('checkCanReceivePresent', TMessageType.CALL, self._seqid) args = checkCanReceivePresent_args() args.recipientMid = recipientMid args.packageId = packageId args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_checkCanReceivePresent(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = checkCanReceivePresent_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def getActivePurchases(self, start, size, language, country): """ Parameters: - start - size - language - country """ self.send_getActivePurchases(start, size, language, country) return self.recv_getActivePurchases() def send_getActivePurchases(self, start, size, language, country): self._oprot.writeMessageBegin('getActivePurchases', TMessageType.CALL, self._seqid) args = getActivePurchases_args() args.start = start args.size = size args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getActivePurchases(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getActivePurchases_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivePurchases failed: unknown result") def getActivePurchaseVersions(self, start, size, language, country): """ Parameters: - start - size - language - country """ self.send_getActivePurchaseVersions(start, size, language, country) return self.recv_getActivePurchaseVersions() def send_getActivePurchaseVersions(self, start, size, language, country): self._oprot.writeMessageBegin('getActivePurchaseVersions', TMessageType.CALL, self._seqid) args = getActivePurchaseVersions_args() args.start = start args.size = size args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getActivePurchaseVersions(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getActivePurchaseVersions_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivePurchaseVersions failed: unknown result") def getCoinProducts(self, appStoreCode, country, language): """ Parameters: - appStoreCode - country - language """ self.send_getCoinProducts(appStoreCode, country, language) return self.recv_getCoinProducts() def send_getCoinProducts(self, appStoreCode, country, language): self._oprot.writeMessageBegin('getCoinProducts', TMessageType.CALL, self._seqid) args = getCoinProducts_args() args.appStoreCode = appStoreCode args.country = country args.language = language args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getCoinProducts(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getCoinProducts_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getCoinProducts failed: unknown result") def getCoinProductsByPgCode(self, appStoreCode, pgCode, country, language): """ Parameters: - appStoreCode - pgCode - country - language """ self.send_getCoinProductsByPgCode(appStoreCode, pgCode, country, language) return self.recv_getCoinProductsByPgCode() def send_getCoinProductsByPgCode(self, appStoreCode, pgCode, country, language): self._oprot.writeMessageBegin('getCoinProductsByPgCode', TMessageType.CALL, self._seqid) args = getCoinProductsByPgCode_args() args.appStoreCode = appStoreCode args.pgCode = pgCode args.country = country args.language = language args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getCoinProductsByPgCode(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getCoinProductsByPgCode_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getCoinProductsByPgCode failed: unknown result") def getCoinPurchaseHistory(self, request): """ Parameters: - request """ self.send_getCoinPurchaseHistory(request) return self.recv_getCoinPurchaseHistory() def send_getCoinPurchaseHistory(self, request): self._oprot.writeMessageBegin('getCoinPurchaseHistory', TMessageType.CALL, self._seqid) args = getCoinPurchaseHistory_args() args.request = request args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getCoinPurchaseHistory(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getCoinPurchaseHistory_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getCoinPurchaseHistory failed: unknown result") def getCoinUseAndRefundHistory(self, request): """ Parameters: - request """ self.send_getCoinUseAndRefundHistory(request) return self.recv_getCoinUseAndRefundHistory() def send_getCoinUseAndRefundHistory(self, request): self._oprot.writeMessageBegin('getCoinUseAndRefundHistory', TMessageType.CALL, self._seqid) args = getCoinUseAndRefundHistory_args() args.request = request args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getCoinUseAndRefundHistory(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getCoinUseAndRefundHistory_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getCoinUseAndRefundHistory failed: unknown result") def getDownloads(self, start, size, language, country): """ Parameters: - start - size - language - country """ self.send_getDownloads(start, size, language, country) return self.recv_getDownloads() def send_getDownloads(self, start, size, language, country): self._oprot.writeMessageBegin('getDownloads', TMessageType.CALL, self._seqid) args = getDownloads_args() args.start = start args.size = size args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getDownloads(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getDownloads_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getDownloads failed: unknown result") def getEventPackages(self, start, size, language, country): """ Parameters: - start - size - language - country """ self.send_getEventPackages(start, size, language, country) return self.recv_getEventPackages() def send_getEventPackages(self, start, size, language, country): self._oprot.writeMessageBegin('getEventPackages', TMessageType.CALL, self._seqid) args = getEventPackages_args() args.start = start args.size = size args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getEventPackages(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getEventPackages_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getEventPackages failed: unknown result") def getNewlyReleasedPackages(self, start, size, language, country): """ Parameters: - start - size - language - country """ self.send_getNewlyReleasedPackages(start, size, language, country) return self.recv_getNewlyReleasedPackages() def send_getNewlyReleasedPackages(self, start, size, language, country): self._oprot.writeMessageBegin('getNewlyReleasedPackages', TMessageType.CALL, self._seqid) args = getNewlyReleasedPackages_args() args.start = start args.size = size args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getNewlyReleasedPackages(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getNewlyReleasedPackages_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getNewlyReleasedPackages failed: unknown result") def getPopularPackages(self, start, size, language, country): """ Parameters: - start - size - language - country """ self.send_getPopularPackages(start, size, language, country) return self.recv_getPopularPackages() def send_getPopularPackages(self, start, size, language, country): self._oprot.writeMessageBegin('getPopularPackages', TMessageType.CALL, self._seqid) args = getPopularPackages_args() args.start = start args.size = size args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getPopularPackages(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getPopularPackages_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getPopularPackages failed: unknown result") def getPresentsReceived(self, start, size, language, country): """ Parameters: - start - size - language - country """ self.send_getPresentsReceived(start, size, language, country) return self.recv_getPresentsReceived() def send_getPresentsReceived(self, start, size, language, country): self._oprot.writeMessageBegin('getPresentsReceived', TMessageType.CALL, self._seqid) args = getPresentsReceived_args() args.start = start args.size = size args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getPresentsReceived(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getPresentsReceived_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getPresentsReceived failed: unknown result") def getPresentsSent(self, start, size, language, country): """ Parameters: - start - size - language - country """ self.send_getPresentsSent(start, size, language, country) return self.recv_getPresentsSent() def send_getPresentsSent(self, start, size, language, country): self._oprot.writeMessageBegin('getPresentsSent', TMessageType.CALL, self._seqid) args = getPresentsSent_args() args.start = start args.size = size args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getPresentsSent(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getPresentsSent_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getPresentsSent failed: unknown result") def getProduct(self, packageID, language, country): """ Parameters: - packageID - language - country """ self.send_getProduct(packageID, language, country) return self.recv_getProduct() def send_getProduct(self, packageID, language, country): self._oprot.writeMessageBegin('getProduct', TMessageType.CALL, self._seqid) args = getProduct_args() args.packageID = packageID args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getProduct(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getProduct_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getProduct failed: unknown result") def getProductList(self, productIdList, language, country): """ Parameters: - productIdList - language - country """ self.send_getProductList(productIdList, language, country) return self.recv_getProductList() def send_getProductList(self, productIdList, language, country): self._oprot.writeMessageBegin('getProductList', TMessageType.CALL, self._seqid) args = getProductList_args() args.productIdList = productIdList args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getProductList(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getProductList_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductList failed: unknown result") def getProductListWithCarrier(self, productIdList, language, country, carrierCode): """ Parameters: - productIdList - language - country - carrierCode """ self.send_getProductListWithCarrier(productIdList, language, country, carrierCode) return self.recv_getProductListWithCarrier() def send_getProductListWithCarrier(self, productIdList, language, country, carrierCode): self._oprot.writeMessageBegin('getProductListWithCarrier', TMessageType.CALL, self._seqid) args = getProductListWithCarrier_args() args.productIdList = productIdList args.language = language args.country = country args.carrierCode = carrierCode args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getProductListWithCarrier(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getProductListWithCarrier_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductListWithCarrier failed: unknown result") def getProductWithCarrier(self, packageID, language, country, carrierCode): """ Parameters: - packageID - language - country - carrierCode """ self.send_getProductWithCarrier(packageID, language, country, carrierCode) return self.recv_getProductWithCarrier() def send_getProductWithCarrier(self, packageID, language, country, carrierCode): self._oprot.writeMessageBegin('getProductWithCarrier', TMessageType.CALL, self._seqid) args = getProductWithCarrier_args() args.packageID = packageID args.language = language args.country = country args.carrierCode = carrierCode args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getProductWithCarrier(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getProductWithCarrier_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductWithCarrier failed: unknown result") def getPurchaseHistory(self, start, size, language, country): """ Parameters: - start - size - language - country """ self.send_getPurchaseHistory(start, size, language, country) return self.recv_getPurchaseHistory() def send_getPurchaseHistory(self, start, size, language, country): self._oprot.writeMessageBegin('getPurchaseHistory', TMessageType.CALL, self._seqid) args = getPurchaseHistory_args() args.start = start args.size = size args.language = language args.country = country args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getPurchaseHistory(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getPurchaseHistory_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseHistory failed: unknown result") def getTotalBalance(self, appStoreCode): """ Parameters: - appStoreCode """ self.send_getTotalBalance(appStoreCode) return self.recv_getTotalBalance() def send_getTotalBalance(self, appStoreCode): self._oprot.writeMessageBegin('getTotalBalance', TMessageType.CALL, self._seqid) args = getTotalBalance_args() args.appStoreCode = appStoreCode args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getTotalBalance(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getTotalBalance_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getTotalBalance failed: unknown result") def notifyDownloaded(self, packageId, language): """ Parameters: - packageId - language """ self.send_notifyDownloaded(packageId, language) return self.recv_notifyDownloaded() def send_notifyDownloaded(self, packageId, language): self._oprot.writeMessageBegin('notifyDownloaded', TMessageType.CALL, self._seqid) args = notifyDownloaded_args() args.packageId = packageId args.language = language args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifyDownloaded(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifyDownloaded_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "notifyDownloaded failed: unknown result") def reserveCoinPurchase(self, request): """ Parameters: - request """ self.send_reserveCoinPurchase(request) return self.recv_reserveCoinPurchase() def send_reserveCoinPurchase(self, request): self._oprot.writeMessageBegin('reserveCoinPurchase', TMessageType.CALL, self._seqid) args = reserveCoinPurchase_args() args.request = request args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reserveCoinPurchase(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reserveCoinPurchase_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveCoinPurchase failed: unknown result") def reservePayment(self, paymentReservation): """ Parameters: - paymentReservation """ self.send_reservePayment(paymentReservation) return self.recv_reservePayment() def send_reservePayment(self, paymentReservation): self._oprot.writeMessageBegin('reservePayment', TMessageType.CALL, self._seqid) args = reservePayment_args() args.paymentReservation = paymentReservation args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reservePayment(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reservePayment_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "reservePayment failed: unknown result") def getSnsFriends(self, snsIdType, snsAccessToken, startIdx, limit): """ Parameters: - snsIdType - snsAccessToken - startIdx - limit """ self.send_getSnsFriends(snsIdType, snsAccessToken, startIdx, limit) return self.recv_getSnsFriends() def send_getSnsFriends(self, snsIdType, snsAccessToken, startIdx, limit): self._oprot.writeMessageBegin('getSnsFriends', TMessageType.CALL, self._seqid) args = getSnsFriends_args() args.snsIdType = snsIdType args.snsAccessToken = snsAccessToken args.startIdx = startIdx args.limit = limit args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getSnsFriends(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getSnsFriends_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnsFriends failed: unknown result") def getSnsMyProfile(self, snsIdType, snsAccessToken): """ Parameters: - snsIdType - snsAccessToken """ self.send_getSnsMyProfile(snsIdType, snsAccessToken) return self.recv_getSnsMyProfile() def send_getSnsMyProfile(self, snsIdType, snsAccessToken): self._oprot.writeMessageBegin('getSnsMyProfile', TMessageType.CALL, self._seqid) args = getSnsMyProfile_args() args.snsIdType = snsIdType args.snsAccessToken = snsAccessToken args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getSnsMyProfile(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getSnsMyProfile_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnsMyProfile failed: unknown result") def postSnsInvitationMessage(self, snsIdType, snsAccessToken, toSnsUserId): """ Parameters: - snsIdType - snsAccessToken - toSnsUserId """ self.send_postSnsInvitationMessage(snsIdType, snsAccessToken, toSnsUserId) self.recv_postSnsInvitationMessage() def send_postSnsInvitationMessage(self, snsIdType, snsAccessToken, toSnsUserId): self._oprot.writeMessageBegin('postSnsInvitationMessage', TMessageType.CALL, self._seqid) args = postSnsInvitationMessage_args() args.snsIdType = snsIdType args.snsAccessToken = snsAccessToken args.toSnsUserId = toSnsUserId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_postSnsInvitationMessage(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = postSnsInvitationMessage_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def acceptGroupInvitation(self, reqSeq, groupId): """ Parameters: - reqSeq - groupId """ self.send_acceptGroupInvitation(reqSeq, groupId) self.recv_acceptGroupInvitation() def send_acceptGroupInvitation(self, reqSeq, groupId): self._oprot.writeMessageBegin('acceptGroupInvitation', TMessageType.CALL, self._seqid) args = acceptGroupInvitation_args() args.reqSeq = reqSeq args.groupId = groupId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_acceptGroupInvitation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = acceptGroupInvitation_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def acceptGroupInvitationByTicket(self, reqSeq, groupId, ticketId): """ Parameters: - reqSeq - groupId - ticketId """ self.send_acceptGroupInvitationByTicket(reqSeq, groupId, ticketId) self.recv_acceptGroupInvitationByTicket() def send_acceptGroupInvitationByTicket(self, reqSeq, groupId, ticketId): self._oprot.writeMessageBegin('acceptGroupInvitationByTicket', TMessageType.CALL, self._seqid) args = acceptGroupInvitationByTicket_args() args.reqSeq = reqSeq args.groupId = groupId args.ticketId = ticketId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_acceptGroupInvitationByTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = acceptGroupInvitationByTicket_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def acceptProximityMatches(self, sessionId, ids): """ Parameters: - sessionId - ids """ self.send_acceptProximityMatches(sessionId, ids) self.recv_acceptProximityMatches() def send_acceptProximityMatches(self, sessionId, ids): self._oprot.writeMessageBegin('acceptProximityMatches', TMessageType.CALL, self._seqid) args = acceptProximityMatches_args() args.sessionId = sessionId args.ids = ids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_acceptProximityMatches(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = acceptProximityMatches_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def acquireCallRoute(self, to): """ Parameters: - to """ self.send_acquireCallRoute(to) return self.recv_acquireCallRoute() def send_acquireCallRoute(self, to): self._oprot.writeMessageBegin('acquireCallRoute', TMessageType.CALL, self._seqid) args = acquireCallRoute_args() args.to = to args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_acquireCallRoute(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = acquireCallRoute_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "acquireCallRoute failed: unknown result") def acquireCallTicket(self, to): """ Parameters: - to """ self.send_acquireCallTicket(to) return self.recv_acquireCallTicket() def send_acquireCallTicket(self, to): self._oprot.writeMessageBegin('acquireCallTicket', TMessageType.CALL, self._seqid) args = acquireCallTicket_args() args.to = to args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_acquireCallTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = acquireCallTicket_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "acquireCallTicket failed: unknown result") def acquireEncryptedAccessToken(self, featureType): """ Parameters: - featureType """ self.send_acquireEncryptedAccessToken(featureType) return self.recv_acquireEncryptedAccessToken() def send_acquireEncryptedAccessToken(self, featureType): self._oprot.writeMessageBegin('acquireEncryptedAccessToken', TMessageType.CALL, self._seqid) args = acquireEncryptedAccessToken_args() args.featureType = featureType args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_acquireEncryptedAccessToken(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = acquireEncryptedAccessToken_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "acquireEncryptedAccessToken failed: unknown result") def addSnsId(self, snsIdType, snsAccessToken): """ Parameters: - snsIdType - snsAccessToken """ self.send_addSnsId(snsIdType, snsAccessToken) return self.recv_addSnsId() def send_addSnsId(self, snsIdType, snsAccessToken): self._oprot.writeMessageBegin('addSnsId', TMessageType.CALL, self._seqid) args = addSnsId_args() args.snsIdType = snsIdType args.snsAccessToken = snsAccessToken args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_addSnsId(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = addSnsId_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "addSnsId failed: unknown result") def blockContact(self, reqSeq, id): """ Parameters: - reqSeq - id """ self.send_blockContact(reqSeq, id) self.recv_blockContact() def send_blockContact(self, reqSeq, id): self._oprot.writeMessageBegin('blockContact', TMessageType.CALL, self._seqid) args = blockContact_args() args.reqSeq = reqSeq args.id = id args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_blockContact(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = blockContact_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def blockRecommendation(self, reqSeq, id): """ Parameters: - reqSeq - id """ self.send_blockRecommendation(reqSeq, id) self.recv_blockRecommendation() def send_blockRecommendation(self, reqSeq, id): self._oprot.writeMessageBegin('blockRecommendation', TMessageType.CALL, self._seqid) args = blockRecommendation_args() args.reqSeq = reqSeq args.id = id args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_blockRecommendation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = blockRecommendation_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def cancelGroupInvitation(self, reqSeq, groupId, contactIds): """ Parameters: - reqSeq - groupId - contactIds """ self.send_cancelGroupInvitation(reqSeq, groupId, contactIds) self.recv_cancelGroupInvitation() def send_cancelGroupInvitation(self, reqSeq, groupId, contactIds): self._oprot.writeMessageBegin('cancelGroupInvitation', TMessageType.CALL, self._seqid) args = cancelGroupInvitation_args() args.reqSeq = reqSeq args.groupId = groupId args.contactIds = contactIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_cancelGroupInvitation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = cancelGroupInvitation_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def changeVerificationMethod(self, sessionId, method): """ Parameters: - sessionId - method """ self.send_changeVerificationMethod(sessionId, method) return self.recv_changeVerificationMethod() def send_changeVerificationMethod(self, sessionId, method): self._oprot.writeMessageBegin('changeVerificationMethod', TMessageType.CALL, self._seqid) args = changeVerificationMethod_args() args.sessionId = sessionId args.method = method args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_changeVerificationMethod(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = changeVerificationMethod_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "changeVerificationMethod failed: unknown result") def clearIdentityCredential(self): self.send_clearIdentityCredential() self.recv_clearIdentityCredential() def send_clearIdentityCredential(self): self._oprot.writeMessageBegin('clearIdentityCredential', TMessageType.CALL, self._seqid) args = clearIdentityCredential_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_clearIdentityCredential(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = clearIdentityCredential_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def clearMessageBox(self, channelId, messageBoxId): """ Parameters: - channelId - messageBoxId """ self.send_clearMessageBox(channelId, messageBoxId) self.recv_clearMessageBox() def send_clearMessageBox(self, channelId, messageBoxId): self._oprot.writeMessageBegin('clearMessageBox', TMessageType.CALL, self._seqid) args = clearMessageBox_args() args.channelId = channelId args.messageBoxId = messageBoxId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_clearMessageBox(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = clearMessageBox_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def closeProximityMatch(self, sessionId): """ Parameters: - sessionId """ self.send_closeProximityMatch(sessionId) self.recv_closeProximityMatch() def send_closeProximityMatch(self, sessionId): self._oprot.writeMessageBegin('closeProximityMatch', TMessageType.CALL, self._seqid) args = closeProximityMatch_args() args.sessionId = sessionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_closeProximityMatch(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = closeProximityMatch_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def commitSendMessage(self, seq, messageId, receiverMids): """ Parameters: - seq - messageId - receiverMids """ self.send_commitSendMessage(seq, messageId, receiverMids) return self.recv_commitSendMessage() def send_commitSendMessage(self, seq, messageId, receiverMids): self._oprot.writeMessageBegin('commitSendMessage', TMessageType.CALL, self._seqid) args = commitSendMessage_args() args.seq = seq args.messageId = messageId args.receiverMids = receiverMids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_commitSendMessage(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = commitSendMessage_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "commitSendMessage failed: unknown result") def commitSendMessages(self, seq, messageIds, receiverMids): """ Parameters: - seq - messageIds - receiverMids """ self.send_commitSendMessages(seq, messageIds, receiverMids) return self.recv_commitSendMessages() def send_commitSendMessages(self, seq, messageIds, receiverMids): self._oprot.writeMessageBegin('commitSendMessages', TMessageType.CALL, self._seqid) args = commitSendMessages_args() args.seq = seq args.messageIds = messageIds args.receiverMids = receiverMids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_commitSendMessages(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = commitSendMessages_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "commitSendMessages failed: unknown result") def commitUpdateProfile(self, seq, attrs, receiverMids): """ Parameters: - seq - attrs - receiverMids """ self.send_commitUpdateProfile(seq, attrs, receiverMids) return self.recv_commitUpdateProfile() def send_commitUpdateProfile(self, seq, attrs, receiverMids): self._oprot.writeMessageBegin('commitUpdateProfile', TMessageType.CALL, self._seqid) args = commitUpdateProfile_args() args.seq = seq args.attrs = attrs args.receiverMids = receiverMids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_commitUpdateProfile(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = commitUpdateProfile_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "commitUpdateProfile failed: unknown result") def confirmEmail(self, verifier, pinCode): """ Parameters: - verifier - pinCode """ self.send_confirmEmail(verifier, pinCode) self.recv_confirmEmail() def send_confirmEmail(self, verifier, pinCode): self._oprot.writeMessageBegin('confirmEmail', TMessageType.CALL, self._seqid) args = confirmEmail_args() args.verifier = verifier args.pinCode = pinCode args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_confirmEmail(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = confirmEmail_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def createGroup(self, seq, name, contactIds): """ Parameters: - seq - name - contactIds """ self.send_createGroup(seq, name, contactIds) return self.recv_createGroup() def send_createGroup(self, seq, name, contactIds): self._oprot.writeMessageBegin('createGroup', TMessageType.CALL, self._seqid) args = createGroup_args() args.seq = seq args.name = name args.contactIds = contactIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_createGroup(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = createGroup_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "createGroup failed: unknown result") def createQrcodeBase64Image(self, url, characterSet, imageSize, x, y, width, height): """ Parameters: - url - characterSet - imageSize - x - y - width - height """ self.send_createQrcodeBase64Image(url, characterSet, imageSize, x, y, width, height) return self.recv_createQrcodeBase64Image() def send_createQrcodeBase64Image(self, url, characterSet, imageSize, x, y, width, height): self._oprot.writeMessageBegin('createQrcodeBase64Image', TMessageType.CALL, self._seqid) args = createQrcodeBase64Image_args() args.url = url args.characterSet = characterSet args.imageSize = imageSize args.x = x args.y = y args.width = width args.height = height args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_createQrcodeBase64Image(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = createQrcodeBase64Image_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "createQrcodeBase64Image failed: unknown result") def createRoom(self, reqSeq, contactIds): """ Parameters: - reqSeq - contactIds """ self.send_createRoom(reqSeq, contactIds) return self.recv_createRoom() def send_createRoom(self, reqSeq, contactIds): self._oprot.writeMessageBegin('createRoom', TMessageType.CALL, self._seqid) args = createRoom_args() args.reqSeq = reqSeq args.contactIds = contactIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_createRoom(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = createRoom_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "createRoom failed: unknown result") def createSession(self): self.send_createSession() return self.recv_createSession() def send_createSession(self): self._oprot.writeMessageBegin('createSession', TMessageType.CALL, self._seqid) args = createSession_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_createSession(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = createSession_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "createSession failed: unknown result") def fetchAnnouncements(self, lastFetchedIndex): """ Parameters: - lastFetchedIndex """ self.send_fetchAnnouncements(lastFetchedIndex) return self.recv_fetchAnnouncements() def send_fetchAnnouncements(self, lastFetchedIndex): self._oprot.writeMessageBegin('fetchAnnouncements', TMessageType.CALL, self._seqid) args = fetchAnnouncements_args() args.lastFetchedIndex = lastFetchedIndex args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_fetchAnnouncements(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = fetchAnnouncements_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchAnnouncements failed: unknown result") def fetchMessages(self, localTs, count): """ Parameters: - localTs - count """ self.send_fetchMessages(localTs, count) return self.recv_fetchMessages() def send_fetchMessages(self, localTs, count): self._oprot.writeMessageBegin('fetchMessages', TMessageType.CALL, self._seqid) args = fetchMessages_args() args.localTs = localTs args.count = count args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_fetchMessages(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = fetchMessages_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchMessages failed: unknown result") def fetchOperations(self, localRev, count): """ Parameters: - localRev - count """ self.send_fetchOperations(localRev, count) return self.recv_fetchOperations() def send_fetchOperations(self, localRev, count): self._oprot.writeMessageBegin('fetchOperations', TMessageType.CALL, self._seqid) args = fetchOperations_args() args.localRev = localRev args.count = count args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_fetchOperations(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = fetchOperations_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchOperations failed: unknown result") def fetchOps(self, localRev, count, globalRev, individualRev): """ Parameters: - localRev - count - globalRev - individualRev """ self.send_fetchOps(localRev, count, globalRev, individualRev) return self.recv_fetchOps() def send_fetchOps(self, localRev, count, globalRev, individualRev): self._oprot.writeMessageBegin('fetchOps', TMessageType.CALL, self._seqid) args = fetchOps_args() args.localRev = localRev args.count = count args.globalRev = globalRev args.individualRev = individualRev args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_fetchOps(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = fetchOps_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchOps failed: unknown result") def findAndAddContactsByEmail(self, reqSeq, emails): """ Parameters: - reqSeq - emails """ self.send_findAndAddContactsByEmail(reqSeq, emails) return self.recv_findAndAddContactsByEmail() def send_findAndAddContactsByEmail(self, reqSeq, emails): self._oprot.writeMessageBegin('findAndAddContactsByEmail', TMessageType.CALL, self._seqid) args = findAndAddContactsByEmail_args() args.reqSeq = reqSeq args.emails = emails args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findAndAddContactsByEmail(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findAndAddContactsByEmail_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findAndAddContactsByEmail failed: unknown result") def findAndAddContactsByMid(self, reqSeq, mid): """ Parameters: - reqSeq - mid """ self.send_findAndAddContactsByMid(reqSeq, mid) return self.recv_findAndAddContactsByMid() def send_findAndAddContactsByMid(self, reqSeq, mid): self._oprot.writeMessageBegin('findAndAddContactsByMid', TMessageType.CALL, self._seqid) args = findAndAddContactsByMid_args() args.reqSeq = reqSeq args.mid = mid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findAndAddContactsByMid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findAndAddContactsByMid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findAndAddContactsByMid failed: unknown result") def findAndAddContactsByPhone(self, reqSeq, phones): """ Parameters: - reqSeq - phones """ self.send_findAndAddContactsByPhone(reqSeq, phones) return self.recv_findAndAddContactsByPhone() def send_findAndAddContactsByPhone(self, reqSeq, phones): self._oprot.writeMessageBegin('findAndAddContactsByPhone', TMessageType.CALL, self._seqid) args = findAndAddContactsByPhone_args() args.reqSeq = reqSeq args.phones = phones args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findAndAddContactsByPhone(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findAndAddContactsByPhone_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findAndAddContactsByPhone failed: unknown result") def findAndAddContactsByUserid(self, reqSeq, userid): """ Parameters: - reqSeq - userid """ self.send_findAndAddContactsByUserid(reqSeq, userid) return self.recv_findAndAddContactsByUserid() def send_findAndAddContactsByUserid(self, reqSeq, userid): self._oprot.writeMessageBegin('findAndAddContactsByUserid', TMessageType.CALL, self._seqid) args = findAndAddContactsByUserid_args() args.reqSeq = reqSeq args.userid = userid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findAndAddContactsByUserid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findAndAddContactsByUserid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findAndAddContactsByUserid failed: unknown result") def findContactByUserid(self, userid): """ Parameters: - userid """ self.send_findContactByUserid(userid) return self.recv_findContactByUserid() def send_findContactByUserid(self, userid): self._oprot.writeMessageBegin('findContactByUserid', TMessageType.CALL, self._seqid) args = findContactByUserid_args() args.userid = userid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findContactByUserid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findContactByUserid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findContactByUserid failed: unknown result") def findContactByUserTicket(self, ticketId): """ Parameters: - ticketId """ self.send_findContactByUserTicket(ticketId) return self.recv_findContactByUserTicket() def send_findContactByUserTicket(self, ticketId): self._oprot.writeMessageBegin('findContactByUserTicket', TMessageType.CALL, self._seqid) args = findContactByUserTicket_args() args.ticketId = ticketId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findContactByUserTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findContactByUserTicket_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findContactByUserTicket failed: unknown result") def findGroupByTicket(self, ticketId): """ Parameters: - ticketId """ self.send_findGroupByTicket(ticketId) return self.recv_findGroupByTicket() def send_findGroupByTicket(self, ticketId): self._oprot.writeMessageBegin('findGroupByTicket', TMessageType.CALL, self._seqid) args = findGroupByTicket_args() args.ticketId = ticketId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findGroupByTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findGroupByTicket_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findGroupByTicket failed: unknown result") def findContactsByEmail(self, emails): """ Parameters: - emails """ self.send_findContactsByEmail(emails) return self.recv_findContactsByEmail() def send_findContactsByEmail(self, emails): self._oprot.writeMessageBegin('findContactsByEmail', TMessageType.CALL, self._seqid) args = findContactsByEmail_args() args.emails = emails args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findContactsByEmail(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findContactsByEmail_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findContactsByEmail failed: unknown result") def findContactsByPhone(self, phones): """ Parameters: - phones """ self.send_findContactsByPhone(phones) return self.recv_findContactsByPhone() def send_findContactsByPhone(self, phones): self._oprot.writeMessageBegin('findContactsByPhone', TMessageType.CALL, self._seqid) args = findContactsByPhone_args() args.phones = phones args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findContactsByPhone(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findContactsByPhone_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findContactsByPhone failed: unknown result") def findSnsIdUserStatus(self, snsIdType, snsAccessToken, udidHash): """ Parameters: - snsIdType - snsAccessToken - udidHash """ self.send_findSnsIdUserStatus(snsIdType, snsAccessToken, udidHash) return self.recv_findSnsIdUserStatus() def send_findSnsIdUserStatus(self, snsIdType, snsAccessToken, udidHash): self._oprot.writeMessageBegin('findSnsIdUserStatus', TMessageType.CALL, self._seqid) args = findSnsIdUserStatus_args() args.snsIdType = snsIdType args.snsAccessToken = snsAccessToken args.udidHash = udidHash args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_findSnsIdUserStatus(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = findSnsIdUserStatus_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "findSnsIdUserStatus failed: unknown result") def finishUpdateVerification(self, sessionId): """ Parameters: - sessionId """ self.send_finishUpdateVerification(sessionId) self.recv_finishUpdateVerification() def send_finishUpdateVerification(self, sessionId): self._oprot.writeMessageBegin('finishUpdateVerification', TMessageType.CALL, self._seqid) args = finishUpdateVerification_args() args.sessionId = sessionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_finishUpdateVerification(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = finishUpdateVerification_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def generateUserTicket(self, expirationTime, maxUseCount): """ Parameters: - expirationTime - maxUseCount """ self.send_generateUserTicket(expirationTime, maxUseCount) return self.recv_generateUserTicket() def send_generateUserTicket(self, expirationTime, maxUseCount): self._oprot.writeMessageBegin('generateUserTicket', TMessageType.CALL, self._seqid) args = generateUserTicket_args() args.expirationTime = expirationTime args.maxUseCount = maxUseCount args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_generateUserTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = generateUserTicket_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "generateUserTicket failed: unknown result") def getAcceptedProximityMatches(self, sessionId): """ Parameters: - sessionId """ self.send_getAcceptedProximityMatches(sessionId) return self.recv_getAcceptedProximityMatches() def send_getAcceptedProximityMatches(self, sessionId): self._oprot.writeMessageBegin('getAcceptedProximityMatches', TMessageType.CALL, self._seqid) args = getAcceptedProximityMatches_args() args.sessionId = sessionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getAcceptedProximityMatches(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getAcceptedProximityMatches_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getAcceptedProximityMatches failed: unknown result") def getActiveBuddySubscriberIds(self): self.send_getActiveBuddySubscriberIds() return self.recv_getActiveBuddySubscriberIds() def send_getActiveBuddySubscriberIds(self): self._oprot.writeMessageBegin('getActiveBuddySubscriberIds', TMessageType.CALL, self._seqid) args = getActiveBuddySubscriberIds_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getActiveBuddySubscriberIds(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getActiveBuddySubscriberIds_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBuddySubscriberIds failed: unknown result") def getAllContactIds(self): self.send_getAllContactIds() return self.recv_getAllContactIds() def send_getAllContactIds(self): self._oprot.writeMessageBegin('getAllContactIds', TMessageType.CALL, self._seqid) args = getAllContactIds_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getAllContactIds(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getAllContactIds_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllContactIds failed: unknown result") def getAuthQrcode(self, keepLoggedIn, systemName): """ Parameters: - keepLoggedIn - systemName """ self.send_getAuthQrcode(keepLoggedIn, systemName) return self.recv_getAuthQrcode() def send_getAuthQrcode(self, keepLoggedIn, systemName): self._oprot.writeMessageBegin('getAuthQrcode', TMessageType.CALL, self._seqid) args = getAuthQrcode_args() args.keepLoggedIn = keepLoggedIn args.systemName = systemName args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getAuthQrcode(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getAuthQrcode_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getAuthQrcode failed: unknown result") def getBlockedContactIds(self): self.send_getBlockedContactIds() return self.recv_getBlockedContactIds() def send_getBlockedContactIds(self): self._oprot.writeMessageBegin('getBlockedContactIds', TMessageType.CALL, self._seqid) args = getBlockedContactIds_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBlockedContactIds(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBlockedContactIds_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBlockedContactIds failed: unknown result") def getBlockedContactIdsByRange(self, start, count): """ Parameters: - start - count """ self.send_getBlockedContactIdsByRange(start, count) return self.recv_getBlockedContactIdsByRange() def send_getBlockedContactIdsByRange(self, start, count): self._oprot.writeMessageBegin('getBlockedContactIdsByRange', TMessageType.CALL, self._seqid) args = getBlockedContactIdsByRange_args() args.start = start args.count = count args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBlockedContactIdsByRange(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBlockedContactIdsByRange_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBlockedContactIdsByRange failed: unknown result") def getBlockedRecommendationIds(self): self.send_getBlockedRecommendationIds() return self.recv_getBlockedRecommendationIds() def send_getBlockedRecommendationIds(self): self._oprot.writeMessageBegin('getBlockedRecommendationIds', TMessageType.CALL, self._seqid) args = getBlockedRecommendationIds_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBlockedRecommendationIds(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBlockedRecommendationIds_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBlockedRecommendationIds failed: unknown result") def getBuddyBlockerIds(self): self.send_getBuddyBlockerIds() return self.recv_getBuddyBlockerIds() def send_getBuddyBlockerIds(self): self._oprot.writeMessageBegin('getBuddyBlockerIds', TMessageType.CALL, self._seqid) args = getBuddyBlockerIds_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBuddyBlockerIds(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBuddyBlockerIds_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyBlockerIds failed: unknown result") def getBuddyLocation(self, mid, index): """ Parameters: - mid - index """ self.send_getBuddyLocation(mid, index) return self.recv_getBuddyLocation() def send_getBuddyLocation(self, mid, index): self._oprot.writeMessageBegin('getBuddyLocation', TMessageType.CALL, self._seqid) args = getBuddyLocation_args() args.mid = mid args.index = index args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getBuddyLocation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getBuddyLocation_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyLocation failed: unknown result") def getCompactContactsModifiedSince(self, timestamp): """ Parameters: - timestamp """ self.send_getCompactContactsModifiedSince(timestamp) return self.recv_getCompactContactsModifiedSince() def send_getCompactContactsModifiedSince(self, timestamp): self._oprot.writeMessageBegin('getCompactContactsModifiedSince', TMessageType.CALL, self._seqid) args = getCompactContactsModifiedSince_args() args.timestamp = timestamp args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getCompactContactsModifiedSince(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getCompactContactsModifiedSince_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompactContactsModifiedSince failed: unknown result") def getCompactGroup(self, groupId): """ Parameters: - groupId """ self.send_getCompactGroup(groupId) return self.recv_getCompactGroup() def send_getCompactGroup(self, groupId): self._oprot.writeMessageBegin('getCompactGroup', TMessageType.CALL, self._seqid) args = getCompactGroup_args() args.groupId = groupId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getCompactGroup(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getCompactGroup_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompactGroup failed: unknown result") def getCompactRoom(self, roomId): """ Parameters: - roomId """ self.send_getCompactRoom(roomId) return self.recv_getCompactRoom() def send_getCompactRoom(self, roomId): self._oprot.writeMessageBegin('getCompactRoom', TMessageType.CALL, self._seqid) args = getCompactRoom_args() args.roomId = roomId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getCompactRoom(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getCompactRoom_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompactRoom failed: unknown result") def getContact(self, id): """ Parameters: - id """ self.send_getContact(id) return self.recv_getContact() def send_getContact(self, id): self._oprot.writeMessageBegin('getContact', TMessageType.CALL, self._seqid) args = getContact_args() args.id = id args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getContact(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getContact_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getContact failed: unknown result") def getContacts(self, ids): """ Parameters: - ids """ self.send_getContacts(ids) return self.recv_getContacts() def send_getContacts(self, ids): self._oprot.writeMessageBegin('getContacts', TMessageType.CALL, self._seqid) args = getContacts_args() args.ids = ids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getContacts(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getContacts_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getContacts failed: unknown result") def getCountryWithRequestIp(self): self.send_getCountryWithRequestIp() return self.recv_getCountryWithRequestIp() def send_getCountryWithRequestIp(self): self._oprot.writeMessageBegin('getCountryWithRequestIp', TMessageType.CALL, self._seqid) args = getCountryWithRequestIp_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getCountryWithRequestIp(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getCountryWithRequestIp_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountryWithRequestIp failed: unknown result") def getFavoriteMids(self): self.send_getFavoriteMids() return self.recv_getFavoriteMids() def send_getFavoriteMids(self): self._oprot.writeMessageBegin('getFavoriteMids', TMessageType.CALL, self._seqid) args = getFavoriteMids_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getFavoriteMids(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getFavoriteMids_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getFavoriteMids failed: unknown result") def getGroup(self, groupId): """ Parameters: - groupId """ self.send_getGroup(groupId) return self.recv_getGroup() def send_getGroup(self, groupId): self._oprot.writeMessageBegin('getGroup', TMessageType.CALL, self._seqid) args = getGroup_args() args.groupId = groupId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getGroup(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getGroup_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getGroup failed: unknown result") def getGroupIdsInvited(self): self.send_getGroupIdsInvited() return self.recv_getGroupIdsInvited() def send_getGroupIdsInvited(self): self._oprot.writeMessageBegin('getGroupIdsInvited', TMessageType.CALL, self._seqid) args = getGroupIdsInvited_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getGroupIdsInvited(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getGroupIdsInvited_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getGroupIdsInvited failed: unknown result") def getGroupIdsJoined(self): self.send_getGroupIdsJoined() return self.recv_getGroupIdsJoined() def send_getGroupIdsJoined(self): self._oprot.writeMessageBegin('getGroupIdsJoined', TMessageType.CALL, self._seqid) args = getGroupIdsJoined_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getGroupIdsJoined(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getGroupIdsJoined_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getGroupIdsJoined failed: unknown result") def getGroups(self, groupIds): """ Parameters: - groupIds """ self.send_getGroups(groupIds) return self.recv_getGroups() def send_getGroups(self, groupIds): self._oprot.writeMessageBegin('getGroups', TMessageType.CALL, self._seqid) args = getGroups_args() args.groupIds = groupIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getGroups(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getGroups_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getGroups failed: unknown result") def getHiddenContactMids(self): self.send_getHiddenContactMids() return self.recv_getHiddenContactMids() def send_getHiddenContactMids(self): self._oprot.writeMessageBegin('getHiddenContactMids', TMessageType.CALL, self._seqid) args = getHiddenContactMids_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getHiddenContactMids(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getHiddenContactMids_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getHiddenContactMids failed: unknown result") def getIdentityIdentifier(self): self.send_getIdentityIdentifier() return self.recv_getIdentityIdentifier() def send_getIdentityIdentifier(self): self._oprot.writeMessageBegin('getIdentityIdentifier', TMessageType.CALL, self._seqid) args = getIdentityIdentifier_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getIdentityIdentifier(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getIdentityIdentifier_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getIdentityIdentifier failed: unknown result") def getLastAnnouncementIndex(self): self.send_getLastAnnouncementIndex() return self.recv_getLastAnnouncementIndex() def send_getLastAnnouncementIndex(self): self._oprot.writeMessageBegin('getLastAnnouncementIndex', TMessageType.CALL, self._seqid) args = getLastAnnouncementIndex_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getLastAnnouncementIndex(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getLastAnnouncementIndex_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastAnnouncementIndex failed: unknown result") def getLastOpRevision(self): self.send_getLastOpRevision() return self.recv_getLastOpRevision() def send_getLastOpRevision(self): self._oprot.writeMessageBegin('getLastOpRevision', TMessageType.CALL, self._seqid) args = getLastOpRevision_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getLastOpRevision(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getLastOpRevision_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastOpRevision failed: unknown result") def getMessageBox(self, channelId, messageBoxId, lastMessagesCount): """ Parameters: - channelId - messageBoxId - lastMessagesCount """ self.send_getMessageBox(channelId, messageBoxId, lastMessagesCount) return self.recv_getMessageBox() def send_getMessageBox(self, channelId, messageBoxId, lastMessagesCount): self._oprot.writeMessageBegin('getMessageBox', TMessageType.CALL, self._seqid) args = getMessageBox_args() args.channelId = channelId args.messageBoxId = messageBoxId args.lastMessagesCount = lastMessagesCount args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMessageBox(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMessageBox_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessageBox failed: unknown result") def getMessageBoxCompactWrapUp(self, mid): """ Parameters: - mid """ self.send_getMessageBoxCompactWrapUp(mid) return self.recv_getMessageBoxCompactWrapUp() def send_getMessageBoxCompactWrapUp(self, mid): self._oprot.writeMessageBegin('getMessageBoxCompactWrapUp', TMessageType.CALL, self._seqid) args = getMessageBoxCompactWrapUp_args() args.mid = mid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMessageBoxCompactWrapUp(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMessageBoxCompactWrapUp_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessageBoxCompactWrapUp failed: unknown result") def getMessageBoxCompactWrapUpList(self, start, messageBoxCount): """ Parameters: - start - messageBoxCount """ self.send_getMessageBoxCompactWrapUpList(start, messageBoxCount) return self.recv_getMessageBoxCompactWrapUpList() def send_getMessageBoxCompactWrapUpList(self, start, messageBoxCount): self._oprot.writeMessageBegin('getMessageBoxCompactWrapUpList', TMessageType.CALL, self._seqid) args = getMessageBoxCompactWrapUpList_args() args.start = start args.messageBoxCount = messageBoxCount args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMessageBoxCompactWrapUpList(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMessageBoxCompactWrapUpList_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessageBoxCompactWrapUpList failed: unknown result") def getMessageBoxList(self, channelId, lastMessagesCount): """ Parameters: - channelId - lastMessagesCount """ self.send_getMessageBoxList(channelId, lastMessagesCount) return self.recv_getMessageBoxList() def send_getMessageBoxList(self, channelId, lastMessagesCount): self._oprot.writeMessageBegin('getMessageBoxList', TMessageType.CALL, self._seqid) args = getMessageBoxList_args() args.channelId = channelId args.lastMessagesCount = lastMessagesCount args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMessageBoxList(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMessageBoxList_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessageBoxList failed: unknown result") def getMessageBoxListByStatus(self, channelId, lastMessagesCount, status): """ Parameters: - channelId - lastMessagesCount - status """ self.send_getMessageBoxListByStatus(channelId, lastMessagesCount, status) return self.recv_getMessageBoxListByStatus() def send_getMessageBoxListByStatus(self, channelId, lastMessagesCount, status): self._oprot.writeMessageBegin('getMessageBoxListByStatus', TMessageType.CALL, self._seqid) args = getMessageBoxListByStatus_args() args.channelId = channelId args.lastMessagesCount = lastMessagesCount args.status = status args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMessageBoxListByStatus(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMessageBoxListByStatus_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessageBoxListByStatus failed: unknown result") def getMessageBoxWrapUp(self, mid): """ Parameters: - mid """ self.send_getMessageBoxWrapUp(mid) return self.recv_getMessageBoxWrapUp() def send_getMessageBoxWrapUp(self, mid): self._oprot.writeMessageBegin('getMessageBoxWrapUp', TMessageType.CALL, self._seqid) args = getMessageBoxWrapUp_args() args.mid = mid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMessageBoxWrapUp(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMessageBoxWrapUp_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessageBoxWrapUp failed: unknown result") def getMessageBoxWrapUpList(self, start, messageBoxCount): """ Parameters: - start - messageBoxCount """ self.send_getMessageBoxWrapUpList(start, messageBoxCount) return self.recv_getMessageBoxWrapUpList() def send_getMessageBoxWrapUpList(self, start, messageBoxCount): self._oprot.writeMessageBegin('getMessageBoxWrapUpList', TMessageType.CALL, self._seqid) args = getMessageBoxWrapUpList_args() args.start = start args.messageBoxCount = messageBoxCount args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMessageBoxWrapUpList(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMessageBoxWrapUpList_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessageBoxWrapUpList failed: unknown result") def getMessagesBySequenceNumber(self, channelId, messageBoxId, startSeq, endSeq): """ Parameters: - channelId - messageBoxId - startSeq - endSeq """ self.send_getMessagesBySequenceNumber(channelId, messageBoxId, startSeq, endSeq) return self.recv_getMessagesBySequenceNumber() def send_getMessagesBySequenceNumber(self, channelId, messageBoxId, startSeq, endSeq): self._oprot.writeMessageBegin('getMessagesBySequenceNumber', TMessageType.CALL, self._seqid) args = getMessagesBySequenceNumber_args() args.channelId = channelId args.messageBoxId = messageBoxId args.startSeq = startSeq args.endSeq = endSeq args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getMessagesBySequenceNumber(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getMessagesBySequenceNumber_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessagesBySequenceNumber failed: unknown result") def getNextMessages(self, messageBoxId, startSeq, messagesCount): """ Parameters: - messageBoxId - startSeq - messagesCount """ self.send_getNextMessages(messageBoxId, startSeq, messagesCount) return self.recv_getNextMessages() def send_getNextMessages(self, messageBoxId, startSeq, messagesCount): self._oprot.writeMessageBegin('getNextMessages', TMessageType.CALL, self._seqid) args = getNextMessages_args() args.messageBoxId = messageBoxId args.startSeq = startSeq args.messagesCount = messagesCount args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getNextMessages(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getNextMessages_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getNextMessages failed: unknown result") def getNotificationPolicy(self, carrier): """ Parameters: - carrier """ self.send_getNotificationPolicy(carrier) return self.recv_getNotificationPolicy() def send_getNotificationPolicy(self, carrier): self._oprot.writeMessageBegin('getNotificationPolicy', TMessageType.CALL, self._seqid) args = getNotificationPolicy_args() args.carrier = carrier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getNotificationPolicy(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getNotificationPolicy_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getNotificationPolicy failed: unknown result") def getPreviousMessages(self, messageBoxId, endSeq, messagesCount): """ Parameters: - messageBoxId - endSeq - messagesCount """ self.send_getPreviousMessages(messageBoxId, endSeq, messagesCount) return self.recv_getPreviousMessages() def send_getPreviousMessages(self, messageBoxId, endSeq, messagesCount): self._oprot.writeMessageBegin('getPreviousMessages', TMessageType.CALL, self._seqid) args = getPreviousMessages_args() args.messageBoxId = messageBoxId args.endSeq = endSeq args.messagesCount = messagesCount args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getPreviousMessages(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getPreviousMessages_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getPreviousMessages failed: unknown result") def getProfile(self): self.send_getProfile() return self.recv_getProfile() def send_getProfile(self): self._oprot.writeMessageBegin('getProfile', TMessageType.CALL, self._seqid) args = getProfile_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getProfile(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getProfile_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getProfile failed: unknown result") def getProximityMatchCandidateList(self, sessionId): """ Parameters: - sessionId """ self.send_getProximityMatchCandidateList(sessionId) return self.recv_getProximityMatchCandidateList() def send_getProximityMatchCandidateList(self, sessionId): self._oprot.writeMessageBegin('getProximityMatchCandidateList', TMessageType.CALL, self._seqid) args = getProximityMatchCandidateList_args() args.sessionId = sessionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getProximityMatchCandidateList(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getProximityMatchCandidateList_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getProximityMatchCandidateList failed: unknown result") def getProximityMatchCandidates(self, sessionId): """ Parameters: - sessionId """ self.send_getProximityMatchCandidates(sessionId) return self.recv_getProximityMatchCandidates() def send_getProximityMatchCandidates(self, sessionId): self._oprot.writeMessageBegin('getProximityMatchCandidates', TMessageType.CALL, self._seqid) args = getProximityMatchCandidates_args() args.sessionId = sessionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getProximityMatchCandidates(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getProximityMatchCandidates_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getProximityMatchCandidates failed: unknown result") def getRecentMessages(self, messageBoxId, messagesCount): """ Parameters: - messageBoxId - messagesCount """ self.send_getRecentMessages(messageBoxId, messagesCount) return self.recv_getRecentMessages() def send_getRecentMessages(self, messageBoxId, messagesCount): self._oprot.writeMessageBegin('getRecentMessages', TMessageType.CALL, self._seqid) args = getRecentMessages_args() args.messageBoxId = messageBoxId args.messagesCount = messagesCount args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getRecentMessages(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getRecentMessages_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getRecentMessages failed: unknown result") def getRecommendationIds(self): self.send_getRecommendationIds() return self.recv_getRecommendationIds() def send_getRecommendationIds(self): self._oprot.writeMessageBegin('getRecommendationIds', TMessageType.CALL, self._seqid) args = getRecommendationIds_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getRecommendationIds(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getRecommendationIds_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getRecommendationIds failed: unknown result") def getRoom(self, roomId): """ Parameters: - roomId """ self.send_getRoom(roomId) return self.recv_getRoom() def send_getRoom(self, roomId): self._oprot.writeMessageBegin('getRoom', TMessageType.CALL, self._seqid) args = getRoom_args() args.roomId = roomId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getRoom(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getRoom_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getRoom failed: unknown result") def getRSAKeyInfo(self, provider): """ Parameters: - provider """ self.send_getRSAKeyInfo(provider) return self.recv_getRSAKeyInfo() def send_getRSAKeyInfo(self, provider): self._oprot.writeMessageBegin('getRSAKeyInfo', TMessageType.CALL, self._seqid) args = getRSAKeyInfo_args() args.provider = provider args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getRSAKeyInfo(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getRSAKeyInfo_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getRSAKeyInfo failed: unknown result") def getServerTime(self): self.send_getServerTime() return self.recv_getServerTime() def send_getServerTime(self): self._oprot.writeMessageBegin('getServerTime', TMessageType.CALL, self._seqid) args = getServerTime_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getServerTime(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getServerTime_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getServerTime failed: unknown result") def getSessions(self): self.send_getSessions() return self.recv_getSessions() def send_getSessions(self): self._oprot.writeMessageBegin('getSessions', TMessageType.CALL, self._seqid) args = getSessions_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getSessions(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getSessions_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getSessions failed: unknown result") def getSettings(self): self.send_getSettings() return self.recv_getSettings() def send_getSettings(self): self._oprot.writeMessageBegin('getSettings', TMessageType.CALL, self._seqid) args = getSettings_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getSettings(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getSettings_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getSettings failed: unknown result") def getSettingsAttributes(self, attrBitset): """ Parameters: - attrBitset """ self.send_getSettingsAttributes(attrBitset) return self.recv_getSettingsAttributes() def send_getSettingsAttributes(self, attrBitset): self._oprot.writeMessageBegin('getSettingsAttributes', TMessageType.CALL, self._seqid) args = getSettingsAttributes_args() args.attrBitset = attrBitset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getSettingsAttributes(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getSettingsAttributes_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getSettingsAttributes failed: unknown result") def getSystemConfiguration(self): self.send_getSystemConfiguration() return self.recv_getSystemConfiguration() def send_getSystemConfiguration(self): self._oprot.writeMessageBegin('getSystemConfiguration', TMessageType.CALL, self._seqid) args = getSystemConfiguration_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getSystemConfiguration(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getSystemConfiguration_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getSystemConfiguration failed: unknown result") def getUserTicket(self): self.send_getUserTicket() return self.recv_getUserTicket() def send_getUserTicket(self): self._oprot.writeMessageBegin('getUserTicket', TMessageType.CALL, self._seqid) args = getUserTicket_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getUserTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getUserTicket_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserTicket failed: unknown result") def getWapInvitation(self, invitationHash): """ Parameters: - invitationHash """ self.send_getWapInvitation(invitationHash) return self.recv_getWapInvitation() def send_getWapInvitation(self, invitationHash): self._oprot.writeMessageBegin('getWapInvitation', TMessageType.CALL, self._seqid) args = getWapInvitation_args() args.invitationHash = invitationHash args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_getWapInvitation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = getWapInvitation_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "getWapInvitation failed: unknown result") def invalidateUserTicket(self): self.send_invalidateUserTicket() self.recv_invalidateUserTicket() def send_invalidateUserTicket(self): self._oprot.writeMessageBegin('invalidateUserTicket', TMessageType.CALL, self._seqid) args = invalidateUserTicket_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_invalidateUserTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = invalidateUserTicket_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def inviteFriendsBySms(self, phoneNumberList): """ Parameters: - phoneNumberList """ self.send_inviteFriendsBySms(phoneNumberList) self.recv_inviteFriendsBySms() def send_inviteFriendsBySms(self, phoneNumberList): self._oprot.writeMessageBegin('inviteFriendsBySms', TMessageType.CALL, self._seqid) args = inviteFriendsBySms_args() args.phoneNumberList = phoneNumberList args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_inviteFriendsBySms(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = inviteFriendsBySms_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def inviteIntoGroup(self, reqSeq, groupId, contactIds): """ Parameters: - reqSeq - groupId - contactIds """ self.send_inviteIntoGroup(reqSeq, groupId, contactIds) self.recv_inviteIntoGroup() def send_inviteIntoGroup(self, reqSeq, groupId, contactIds): self._oprot.writeMessageBegin('inviteIntoGroup', TMessageType.CALL, self._seqid) args = inviteIntoGroup_args() args.reqSeq = reqSeq args.groupId = groupId args.contactIds = contactIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_inviteIntoGroup(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = inviteIntoGroup_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def inviteIntoRoom(self, reqSeq, roomId, contactIds): """ Parameters: - reqSeq - roomId - contactIds """ self.send_inviteIntoRoom(reqSeq, roomId, contactIds) self.recv_inviteIntoRoom() def send_inviteIntoRoom(self, reqSeq, roomId, contactIds): self._oprot.writeMessageBegin('inviteIntoRoom', TMessageType.CALL, self._seqid) args = inviteIntoRoom_args() args.reqSeq = reqSeq args.roomId = roomId args.contactIds = contactIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_inviteIntoRoom(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = inviteIntoRoom_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def inviteViaEmail(self, reqSeq, email, name): """ Parameters: - reqSeq - email - name """ self.send_inviteViaEmail(reqSeq, email, name) self.recv_inviteViaEmail() def send_inviteViaEmail(self, reqSeq, email, name): self._oprot.writeMessageBegin('inviteViaEmail', TMessageType.CALL, self._seqid) args = inviteViaEmail_args() args.reqSeq = reqSeq args.email = email args.name = name args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_inviteViaEmail(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = inviteViaEmail_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def isIdentityIdentifierAvailable(self, provider, identifier): """ Parameters: - provider - identifier """ self.send_isIdentityIdentifierAvailable(provider, identifier) return self.recv_isIdentityIdentifierAvailable() def send_isIdentityIdentifierAvailable(self, provider, identifier): self._oprot.writeMessageBegin('isIdentityIdentifierAvailable', TMessageType.CALL, self._seqid) args = isIdentityIdentifierAvailable_args() args.provider = provider args.identifier = identifier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_isIdentityIdentifierAvailable(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = isIdentityIdentifierAvailable_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "isIdentityIdentifierAvailable failed: unknown result") def isUseridAvailable(self, userid): """ Parameters: - userid """ self.send_isUseridAvailable(userid) return self.recv_isUseridAvailable() def send_isUseridAvailable(self, userid): self._oprot.writeMessageBegin('isUseridAvailable', TMessageType.CALL, self._seqid) args = isUseridAvailable_args() args.userid = userid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_isUseridAvailable(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = isUseridAvailable_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "isUseridAvailable failed: unknown result") def kickoutFromGroup(self, reqSeq, groupId, contactIds): """ Parameters: - reqSeq - groupId - contactIds """ self.send_kickoutFromGroup(reqSeq, groupId, contactIds) self.recv_kickoutFromGroup() def send_kickoutFromGroup(self, reqSeq, groupId, contactIds): self._oprot.writeMessageBegin('kickoutFromGroup', TMessageType.CALL, self._seqid) args = kickoutFromGroup_args() args.reqSeq = reqSeq args.groupId = groupId args.contactIds = contactIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_kickoutFromGroup(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = kickoutFromGroup_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def leaveGroup(self, reqSeq, groupId): """ Parameters: - reqSeq - groupId """ self.send_leaveGroup(reqSeq, groupId) self.recv_leaveGroup() def send_leaveGroup(self, reqSeq, groupId): self._oprot.writeMessageBegin('leaveGroup', TMessageType.CALL, self._seqid) args = leaveGroup_args() args.reqSeq = reqSeq args.groupId = groupId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_leaveGroup(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = leaveGroup_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def leaveRoom(self, reqSeq, roomId): """ Parameters: - reqSeq - roomId """ self.send_leaveRoom(reqSeq, roomId) self.recv_leaveRoom() def send_leaveRoom(self, reqSeq, roomId): self._oprot.writeMessageBegin('leaveRoom', TMessageType.CALL, self._seqid) args = leaveRoom_args() args.reqSeq = reqSeq args.roomId = roomId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_leaveRoom(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = leaveRoom_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def loginWithIdentityCredential(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): """ Parameters: - identityProvider - identifier - password - keepLoggedIn - accessLocation - systemName - certificate """ self.send_loginWithIdentityCredential(identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate) return self.recv_loginWithIdentityCredential() def send_loginWithIdentityCredential(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): self._oprot.writeMessageBegin('loginWithIdentityCredential', TMessageType.CALL, self._seqid) args = loginWithIdentityCredential_args() args.identityProvider = identityProvider args.identifier = identifier args.password = password args.keepLoggedIn = keepLoggedIn args.accessLocation = accessLocation args.systemName = systemName args.certificate = certificate args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_loginWithIdentityCredential(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = loginWithIdentityCredential_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "loginWithIdentityCredential failed: unknown result") def loginWithIdentityCredentialForCertificate(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): """ Parameters: - identityProvider - identifier - password - keepLoggedIn - accessLocation - systemName - certificate """ self.send_loginWithIdentityCredentialForCertificate(identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate) return self.recv_loginWithIdentityCredentialForCertificate() def send_loginWithIdentityCredentialForCertificate(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): self._oprot.writeMessageBegin('loginWithIdentityCredentialForCertificate', TMessageType.CALL, self._seqid) args = loginWithIdentityCredentialForCertificate_args() args.identityProvider = identityProvider args.identifier = identifier args.password = password args.keepLoggedIn = keepLoggedIn args.accessLocation = accessLocation args.systemName = systemName args.certificate = certificate args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_loginWithIdentityCredentialForCertificate(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = loginWithIdentityCredentialForCertificate_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "loginWithIdentityCredentialForCertificate failed: unknown result") def loginWithVerifier(self, verifier): """ Parameters: - verifier """ self.send_loginWithVerifier(verifier) return self.recv_loginWithVerifier() def send_loginWithVerifier(self, verifier): self._oprot.writeMessageBegin('loginWithVerifier', TMessageType.CALL, self._seqid) args = loginWithVerifier_args() args.verifier = verifier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_loginWithVerifier(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = loginWithVerifier_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "loginWithVerifier failed: unknown result") def loginWithVerifierForCerificate(self, verifier): """ Parameters: - verifier """ self.send_loginWithVerifierForCerificate(verifier) return self.recv_loginWithVerifierForCerificate() def send_loginWithVerifierForCerificate(self, verifier): self._oprot.writeMessageBegin('loginWithVerifierForCerificate', TMessageType.CALL, self._seqid) args = loginWithVerifierForCerificate_args() args.verifier = verifier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_loginWithVerifierForCerificate(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = loginWithVerifierForCerificate_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "loginWithVerifierForCerificate failed: unknown result") def loginWithVerifierForCertificate(self, verifier): """ Parameters: - verifier """ self.send_loginWithVerifierForCertificate(verifier) return self.recv_loginWithVerifierForCertificate() def send_loginWithVerifierForCertificate(self, verifier): self._oprot.writeMessageBegin('loginWithVerifierForCertificate', TMessageType.CALL, self._seqid) args = loginWithVerifierForCertificate_args() args.verifier = verifier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_loginWithVerifierForCertificate(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = loginWithVerifierForCertificate_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "loginWithVerifierForCertificate failed: unknown result") def logout(self): self.send_logout() self.recv_logout() def send_logout(self): self._oprot.writeMessageBegin('logout', TMessageType.CALL, self._seqid) args = logout_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_logout(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = logout_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def logoutSession(self, tokenKey): """ Parameters: - tokenKey """ self.send_logoutSession(tokenKey) self.recv_logoutSession() def send_logoutSession(self, tokenKey): self._oprot.writeMessageBegin('logoutSession', TMessageType.CALL, self._seqid) args = logoutSession_args() args.tokenKey = tokenKey args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_logoutSession(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = logoutSession_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def noop(self): self.send_noop() self.recv_noop() def send_noop(self): self._oprot.writeMessageBegin('noop', TMessageType.CALL, self._seqid) args = noop_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_noop(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = noop_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def notifiedRedirect(self, paramMap): """ Parameters: - paramMap """ self.send_notifiedRedirect(paramMap) self.recv_notifiedRedirect() def send_notifiedRedirect(self, paramMap): self._oprot.writeMessageBegin('notifiedRedirect', TMessageType.CALL, self._seqid) args = notifiedRedirect_args() args.paramMap = paramMap args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifiedRedirect(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifiedRedirect_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def notifyBuddyOnAir(self, seq, receiverMids): """ Parameters: - seq - receiverMids """ self.send_notifyBuddyOnAir(seq, receiverMids) return self.recv_notifyBuddyOnAir() def send_notifyBuddyOnAir(self, seq, receiverMids): self._oprot.writeMessageBegin('notifyBuddyOnAir', TMessageType.CALL, self._seqid) args = notifyBuddyOnAir_args() args.seq = seq args.receiverMids = receiverMids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifyBuddyOnAir(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifyBuddyOnAir_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "notifyBuddyOnAir failed: unknown result") def notifyIndividualEvent(self, notificationStatus, receiverMids): """ Parameters: - notificationStatus - receiverMids """ self.send_notifyIndividualEvent(notificationStatus, receiverMids) self.recv_notifyIndividualEvent() def send_notifyIndividualEvent(self, notificationStatus, receiverMids): self._oprot.writeMessageBegin('notifyIndividualEvent', TMessageType.CALL, self._seqid) args = notifyIndividualEvent_args() args.notificationStatus = notificationStatus args.receiverMids = receiverMids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifyIndividualEvent(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifyIndividualEvent_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def notifyInstalled(self, udidHash, applicationTypeWithExtensions): """ Parameters: - udidHash - applicationTypeWithExtensions """ self.send_notifyInstalled(udidHash, applicationTypeWithExtensions) self.recv_notifyInstalled() def send_notifyInstalled(self, udidHash, applicationTypeWithExtensions): self._oprot.writeMessageBegin('notifyInstalled', TMessageType.CALL, self._seqid) args = notifyInstalled_args() args.udidHash = udidHash args.applicationTypeWithExtensions = applicationTypeWithExtensions args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifyInstalled(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifyInstalled_result() result.read(iprot) iprot.readMessageEnd() return def notifyRegistrationComplete(self, udidHash, applicationTypeWithExtensions): """ Parameters: - udidHash - applicationTypeWithExtensions """ self.send_notifyRegistrationComplete(udidHash, applicationTypeWithExtensions) self.recv_notifyRegistrationComplete() def send_notifyRegistrationComplete(self, udidHash, applicationTypeWithExtensions): self._oprot.writeMessageBegin('notifyRegistrationComplete', TMessageType.CALL, self._seqid) args = notifyRegistrationComplete_args() args.udidHash = udidHash args.applicationTypeWithExtensions = applicationTypeWithExtensions args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifyRegistrationComplete(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifyRegistrationComplete_result() result.read(iprot) iprot.readMessageEnd() return def notifySleep(self, lastRev, badge): """ Parameters: - lastRev - badge """ self.send_notifySleep(lastRev, badge) self.recv_notifySleep() def send_notifySleep(self, lastRev, badge): self._oprot.writeMessageBegin('notifySleep', TMessageType.CALL, self._seqid) args = notifySleep_args() args.lastRev = lastRev args.badge = badge args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifySleep(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifySleep_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def notifyUpdated(self, lastRev, deviceInfo): """ Parameters: - lastRev - deviceInfo """ self.send_notifyUpdated(lastRev, deviceInfo) self.recv_notifyUpdated() def send_notifyUpdated(self, lastRev, deviceInfo): self._oprot.writeMessageBegin('notifyUpdated', TMessageType.CALL, self._seqid) args = notifyUpdated_args() args.lastRev = lastRev args.deviceInfo = deviceInfo args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notifyUpdated(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notifyUpdated_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def openProximityMatch(self, location): """ Parameters: - location """ self.send_openProximityMatch(location) return self.recv_openProximityMatch() def send_openProximityMatch(self, location): self._oprot.writeMessageBegin('openProximityMatch', TMessageType.CALL, self._seqid) args = openProximityMatch_args() args.location = location args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_openProximityMatch(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = openProximityMatch_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "openProximityMatch failed: unknown result") def registerBuddyUser(self, buddyId, registrarPassword): """ Parameters: - buddyId - registrarPassword """ self.send_registerBuddyUser(buddyId, registrarPassword) return self.recv_registerBuddyUser() def send_registerBuddyUser(self, buddyId, registrarPassword): self._oprot.writeMessageBegin('registerBuddyUser', TMessageType.CALL, self._seqid) args = registerBuddyUser_args() args.buddyId = buddyId args.registrarPassword = registrarPassword args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerBuddyUser(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerBuddyUser_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerBuddyUser failed: unknown result") def registerBuddyUserid(self, seq, userid): """ Parameters: - seq - userid """ self.send_registerBuddyUserid(seq, userid) self.recv_registerBuddyUserid() def send_registerBuddyUserid(self, seq, userid): self._oprot.writeMessageBegin('registerBuddyUserid', TMessageType.CALL, self._seqid) args = registerBuddyUserid_args() args.seq = seq args.userid = userid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerBuddyUserid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerBuddyUserid_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def registerDevice(self, sessionId): """ Parameters: - sessionId """ self.send_registerDevice(sessionId) return self.recv_registerDevice() def send_registerDevice(self, sessionId): self._oprot.writeMessageBegin('registerDevice', TMessageType.CALL, self._seqid) args = registerDevice_args() args.sessionId = sessionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerDevice(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerDevice_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerDevice failed: unknown result") def registerDeviceWithIdentityCredential(self, sessionId, provider, identifier, verifier): """ Parameters: - sessionId - provider - identifier - verifier """ self.send_registerDeviceWithIdentityCredential(sessionId, provider, identifier, verifier) return self.recv_registerDeviceWithIdentityCredential() def send_registerDeviceWithIdentityCredential(self, sessionId, provider, identifier, verifier): self._oprot.writeMessageBegin('registerDeviceWithIdentityCredential', TMessageType.CALL, self._seqid) args = registerDeviceWithIdentityCredential_args() args.sessionId = sessionId args.provider = provider args.identifier = identifier args.verifier = verifier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerDeviceWithIdentityCredential(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerDeviceWithIdentityCredential_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerDeviceWithIdentityCredential failed: unknown result") def registerDeviceWithoutPhoneNumber(self, region, udidHash, deviceInfo): """ Parameters: - region - udidHash - deviceInfo """ self.send_registerDeviceWithoutPhoneNumber(region, udidHash, deviceInfo) return self.recv_registerDeviceWithoutPhoneNumber() def send_registerDeviceWithoutPhoneNumber(self, region, udidHash, deviceInfo): self._oprot.writeMessageBegin('registerDeviceWithoutPhoneNumber', TMessageType.CALL, self._seqid) args = registerDeviceWithoutPhoneNumber_args() args.region = region args.udidHash = udidHash args.deviceInfo = deviceInfo args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerDeviceWithoutPhoneNumber(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerDeviceWithoutPhoneNumber_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerDeviceWithoutPhoneNumber failed: unknown result") def registerDeviceWithoutPhoneNumberWithIdentityCredential(self, region, udidHash, deviceInfo, provider, identifier, verifier, mid): """ Parameters: - region - udidHash - deviceInfo - provider - identifier - verifier - mid """ self.send_registerDeviceWithoutPhoneNumberWithIdentityCredential(region, udidHash, deviceInfo, provider, identifier, verifier, mid) return self.recv_registerDeviceWithoutPhoneNumberWithIdentityCredential() def send_registerDeviceWithoutPhoneNumberWithIdentityCredential(self, region, udidHash, deviceInfo, provider, identifier, verifier, mid): self._oprot.writeMessageBegin('registerDeviceWithoutPhoneNumberWithIdentityCredential', TMessageType.CALL, self._seqid) args = registerDeviceWithoutPhoneNumberWithIdentityCredential_args() args.region = region args.udidHash = udidHash args.deviceInfo = deviceInfo args.provider = provider args.identifier = identifier args.verifier = verifier args.mid = mid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerDeviceWithoutPhoneNumberWithIdentityCredential(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerDeviceWithoutPhoneNumberWithIdentityCredential_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerDeviceWithoutPhoneNumberWithIdentityCredential failed: unknown result") def registerUserid(self, reqSeq, userid): """ Parameters: - reqSeq - userid """ self.send_registerUserid(reqSeq, userid) return self.recv_registerUserid() def send_registerUserid(self, reqSeq, userid): self._oprot.writeMessageBegin('registerUserid', TMessageType.CALL, self._seqid) args = registerUserid_args() args.reqSeq = reqSeq args.userid = userid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerUserid(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerUserid_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerUserid failed: unknown result") def registerWapDevice(self, invitationHash, guidHash, email, deviceInfo): """ Parameters: - invitationHash - guidHash - email - deviceInfo """ self.send_registerWapDevice(invitationHash, guidHash, email, deviceInfo) return self.recv_registerWapDevice() def send_registerWapDevice(self, invitationHash, guidHash, email, deviceInfo): self._oprot.writeMessageBegin('registerWapDevice', TMessageType.CALL, self._seqid) args = registerWapDevice_args() args.invitationHash = invitationHash args.guidHash = guidHash args.email = email args.deviceInfo = deviceInfo args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerWapDevice(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerWapDevice_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerWapDevice failed: unknown result") def registerWithExistingSnsIdAndIdentityCredential(self, identityCredential, region, udidHash, deviceInfo): """ Parameters: - identityCredential - region - udidHash - deviceInfo """ self.send_registerWithExistingSnsIdAndIdentityCredential(identityCredential, region, udidHash, deviceInfo) return self.recv_registerWithExistingSnsIdAndIdentityCredential() def send_registerWithExistingSnsIdAndIdentityCredential(self, identityCredential, region, udidHash, deviceInfo): self._oprot.writeMessageBegin('registerWithExistingSnsIdAndIdentityCredential', TMessageType.CALL, self._seqid) args = registerWithExistingSnsIdAndIdentityCredential_args() args.identityCredential = identityCredential args.region = region args.udidHash = udidHash args.deviceInfo = deviceInfo args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerWithExistingSnsIdAndIdentityCredential(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerWithExistingSnsIdAndIdentityCredential_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerWithExistingSnsIdAndIdentityCredential failed: unknown result") def registerWithSnsId(self, snsIdType, snsAccessToken, region, udidHash, deviceInfo, mid): """ Parameters: - snsIdType - snsAccessToken - region - udidHash - deviceInfo - mid """ self.send_registerWithSnsId(snsIdType, snsAccessToken, region, udidHash, deviceInfo, mid) return self.recv_registerWithSnsId() def send_registerWithSnsId(self, snsIdType, snsAccessToken, region, udidHash, deviceInfo, mid): self._oprot.writeMessageBegin('registerWithSnsId', TMessageType.CALL, self._seqid) args = registerWithSnsId_args() args.snsIdType = snsIdType args.snsAccessToken = snsAccessToken args.region = region args.udidHash = udidHash args.deviceInfo = deviceInfo args.mid = mid args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerWithSnsId(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerWithSnsId_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerWithSnsId failed: unknown result") def registerWithSnsIdAndIdentityCredential(self, snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo): """ Parameters: - snsIdType - snsAccessToken - identityCredential - region - udidHash - deviceInfo """ self.send_registerWithSnsIdAndIdentityCredential(snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo) return self.recv_registerWithSnsIdAndIdentityCredential() def send_registerWithSnsIdAndIdentityCredential(self, snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo): self._oprot.writeMessageBegin('registerWithSnsIdAndIdentityCredential', TMessageType.CALL, self._seqid) args = registerWithSnsIdAndIdentityCredential_args() args.snsIdType = snsIdType args.snsAccessToken = snsAccessToken args.identityCredential = identityCredential args.region = region args.udidHash = udidHash args.deviceInfo = deviceInfo args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_registerWithSnsIdAndIdentityCredential(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = registerWithSnsIdAndIdentityCredential_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "registerWithSnsIdAndIdentityCredential failed: unknown result") def reissueDeviceCredential(self): self.send_reissueDeviceCredential() return self.recv_reissueDeviceCredential() def send_reissueDeviceCredential(self): self._oprot.writeMessageBegin('reissueDeviceCredential', TMessageType.CALL, self._seqid) args = reissueDeviceCredential_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reissueDeviceCredential(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reissueDeviceCredential_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "reissueDeviceCredential failed: unknown result") def reissueUserTicket(self, expirationTime, maxUseCount): """ Parameters: - expirationTime - maxUseCount """ self.send_reissueUserTicket(expirationTime, maxUseCount) return self.recv_reissueUserTicket() def send_reissueUserTicket(self, expirationTime, maxUseCount): self._oprot.writeMessageBegin('reissueUserTicket', TMessageType.CALL, self._seqid) args = reissueUserTicket_args() args.expirationTime = expirationTime args.maxUseCount = maxUseCount args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reissueUserTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reissueUserTicket_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "reissueUserTicket failed: unknown result") def reissueGroupTicket(self, groupId): """ Parameters: - groupId """ self.send_reissueGroupTicket(groupId) return self.recv_reissueGroupTicket() def send_reissueGroupTicket(self, groupId): self._oprot.writeMessageBegin('reissueGroupTicket', TMessageType.CALL, self._seqid) args = reissueGroupTicket_args() args.groupId = groupId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reissueGroupTicket(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reissueGroupTicket_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "reissueGroupTicket failed: unknown result") def rejectGroupInvitation(self, reqSeq, groupId): """ Parameters: - reqSeq - groupId """ self.send_rejectGroupInvitation(reqSeq, groupId) self.recv_rejectGroupInvitation() def send_rejectGroupInvitation(self, reqSeq, groupId): self._oprot.writeMessageBegin('rejectGroupInvitation', TMessageType.CALL, self._seqid) args = rejectGroupInvitation_args() args.reqSeq = reqSeq args.groupId = groupId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_rejectGroupInvitation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = rejectGroupInvitation_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def releaseSession(self): self.send_releaseSession() self.recv_releaseSession() def send_releaseSession(self): self._oprot.writeMessageBegin('releaseSession', TMessageType.CALL, self._seqid) args = releaseSession_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_releaseSession(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = releaseSession_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def removeAllMessages(self, seq, lastMessageId): """ Parameters: - seq - lastMessageId """ self.send_removeAllMessages(seq, lastMessageId) self.recv_removeAllMessages() def send_removeAllMessages(self, seq, lastMessageId): self._oprot.writeMessageBegin('removeAllMessages', TMessageType.CALL, self._seqid) args = removeAllMessages_args() args.seq = seq args.lastMessageId = lastMessageId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_removeAllMessages(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = removeAllMessages_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def removeBuddyLocation(self, mid, index): """ Parameters: - mid - index """ self.send_removeBuddyLocation(mid, index) self.recv_removeBuddyLocation() def send_removeBuddyLocation(self, mid, index): self._oprot.writeMessageBegin('removeBuddyLocation', TMessageType.CALL, self._seqid) args = removeBuddyLocation_args() args.mid = mid args.index = index args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_removeBuddyLocation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = removeBuddyLocation_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def removeMessage(self, messageId): """ Parameters: - messageId """ self.send_removeMessage(messageId) return self.recv_removeMessage() def send_removeMessage(self, messageId): self._oprot.writeMessageBegin('removeMessage', TMessageType.CALL, self._seqid) args = removeMessage_args() args.messageId = messageId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_removeMessage(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = removeMessage_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "removeMessage failed: unknown result") def removeMessageFromMyHome(self, messageId): """ Parameters: - messageId """ self.send_removeMessageFromMyHome(messageId) return self.recv_removeMessageFromMyHome() def send_removeMessageFromMyHome(self, messageId): self._oprot.writeMessageBegin('removeMessageFromMyHome', TMessageType.CALL, self._seqid) args = removeMessageFromMyHome_args() args.messageId = messageId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_removeMessageFromMyHome(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = removeMessageFromMyHome_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "removeMessageFromMyHome failed: unknown result") def removeSnsId(self, snsIdType): """ Parameters: - snsIdType """ self.send_removeSnsId(snsIdType) return self.recv_removeSnsId() def send_removeSnsId(self, snsIdType): self._oprot.writeMessageBegin('removeSnsId', TMessageType.CALL, self._seqid) args = removeSnsId_args() args.snsIdType = snsIdType args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_removeSnsId(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = removeSnsId_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "removeSnsId failed: unknown result") def report(self, syncOpRevision, category, report): """ Parameters: - syncOpRevision - category - report """ self.send_report(syncOpRevision, category, report) self.recv_report() def send_report(self, syncOpRevision, category, report): self._oprot.writeMessageBegin('report', TMessageType.CALL, self._seqid) args = report_args() args.syncOpRevision = syncOpRevision args.category = category args.report = report args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_report(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = report_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def reportContacts(self, syncOpRevision, category, contactReports, actionType): """ Parameters: - syncOpRevision - category - contactReports - actionType """ self.send_reportContacts(syncOpRevision, category, contactReports, actionType) return self.recv_reportContacts() def send_reportContacts(self, syncOpRevision, category, contactReports, actionType): self._oprot.writeMessageBegin('reportContacts', TMessageType.CALL, self._seqid) args = reportContacts_args() args.syncOpRevision = syncOpRevision args.category = category args.contactReports = contactReports args.actionType = actionType args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reportContacts(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reportContacts_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "reportContacts failed: unknown result") def reportGroups(self, syncOpRevision, groups): """ Parameters: - syncOpRevision - groups """ self.send_reportGroups(syncOpRevision, groups) self.recv_reportGroups() def send_reportGroups(self, syncOpRevision, groups): self._oprot.writeMessageBegin('reportGroups', TMessageType.CALL, self._seqid) args = reportGroups_args() args.syncOpRevision = syncOpRevision args.groups = groups args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reportGroups(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reportGroups_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def reportProfile(self, syncOpRevision, profile): """ Parameters: - syncOpRevision - profile """ self.send_reportProfile(syncOpRevision, profile) self.recv_reportProfile() def send_reportProfile(self, syncOpRevision, profile): self._oprot.writeMessageBegin('reportProfile', TMessageType.CALL, self._seqid) args = reportProfile_args() args.syncOpRevision = syncOpRevision args.profile = profile args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reportProfile(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reportProfile_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def reportRooms(self, syncOpRevision, rooms): """ Parameters: - syncOpRevision - rooms """ self.send_reportRooms(syncOpRevision, rooms) self.recv_reportRooms() def send_reportRooms(self, syncOpRevision, rooms): self._oprot.writeMessageBegin('reportRooms', TMessageType.CALL, self._seqid) args = reportRooms_args() args.syncOpRevision = syncOpRevision args.rooms = rooms args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reportRooms(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reportRooms_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def reportSettings(self, syncOpRevision, settings): """ Parameters: - syncOpRevision - settings """ self.send_reportSettings(syncOpRevision, settings) self.recv_reportSettings() def send_reportSettings(self, syncOpRevision, settings): self._oprot.writeMessageBegin('reportSettings', TMessageType.CALL, self._seqid) args = reportSettings_args() args.syncOpRevision = syncOpRevision args.settings = settings args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reportSettings(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reportSettings_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def reportSpammer(self, spammerMid, spammerReasons, spamMessageIds): """ Parameters: - spammerMid - spammerReasons - spamMessageIds """ self.send_reportSpammer(spammerMid, spammerReasons, spamMessageIds) self.recv_reportSpammer() def send_reportSpammer(self, spammerMid, spammerReasons, spamMessageIds): self._oprot.writeMessageBegin('reportSpammer', TMessageType.CALL, self._seqid) args = reportSpammer_args() args.spammerMid = spammerMid args.spammerReasons = spammerReasons args.spamMessageIds = spamMessageIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_reportSpammer(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = reportSpammer_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def requestAccountPasswordReset(self, provider, identifier, locale): """ Parameters: - provider - identifier - locale """ self.send_requestAccountPasswordReset(provider, identifier, locale) self.recv_requestAccountPasswordReset() def send_requestAccountPasswordReset(self, provider, identifier, locale): self._oprot.writeMessageBegin('requestAccountPasswordReset', TMessageType.CALL, self._seqid) args = requestAccountPasswordReset_args() args.provider = provider args.identifier = identifier args.locale = locale args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_requestAccountPasswordReset(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = requestAccountPasswordReset_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def requestEmailConfirmation(self, emailConfirmation): """ Parameters: - emailConfirmation """ self.send_requestEmailConfirmation(emailConfirmation) return self.recv_requestEmailConfirmation() def send_requestEmailConfirmation(self, emailConfirmation): self._oprot.writeMessageBegin('requestEmailConfirmation', TMessageType.CALL, self._seqid) args = requestEmailConfirmation_args() args.emailConfirmation = emailConfirmation args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_requestEmailConfirmation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = requestEmailConfirmation_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "requestEmailConfirmation failed: unknown result") def requestIdentityUnbind(self, provider, identifier): """ Parameters: - provider - identifier """ self.send_requestIdentityUnbind(provider, identifier) self.recv_requestIdentityUnbind() def send_requestIdentityUnbind(self, provider, identifier): self._oprot.writeMessageBegin('requestIdentityUnbind', TMessageType.CALL, self._seqid) args = requestIdentityUnbind_args() args.provider = provider args.identifier = identifier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_requestIdentityUnbind(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = requestIdentityUnbind_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def resendEmailConfirmation(self, verifier): """ Parameters: - verifier """ self.send_resendEmailConfirmation(verifier) return self.recv_resendEmailConfirmation() def send_resendEmailConfirmation(self, verifier): self._oprot.writeMessageBegin('resendEmailConfirmation', TMessageType.CALL, self._seqid) args = resendEmailConfirmation_args() args.verifier = verifier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_resendEmailConfirmation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = resendEmailConfirmation_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "resendEmailConfirmation failed: unknown result") def resendPinCode(self, sessionId): """ Parameters: - sessionId """ self.send_resendPinCode(sessionId) self.recv_resendPinCode() def send_resendPinCode(self, sessionId): self._oprot.writeMessageBegin('resendPinCode', TMessageType.CALL, self._seqid) args = resendPinCode_args() args.sessionId = sessionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_resendPinCode(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = resendPinCode_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def resendPinCodeBySMS(self, sessionId): """ Parameters: - sessionId """ self.send_resendPinCodeBySMS(sessionId) self.recv_resendPinCodeBySMS() def send_resendPinCodeBySMS(self, sessionId): self._oprot.writeMessageBegin('resendPinCodeBySMS', TMessageType.CALL, self._seqid) args = resendPinCodeBySMS_args() args.sessionId = sessionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_resendPinCodeBySMS(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = resendPinCodeBySMS_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def sendChatChecked(self, seq, consumer, lastMessageId): """ Parameters: - seq - consumer - lastMessageId """ self.send_sendChatChecked(seq, consumer, lastMessageId) self.recv_sendChatChecked() def send_sendChatChecked(self, seq, consumer, lastMessageId): self._oprot.writeMessageBegin('sendChatChecked', TMessageType.CALL, self._seqid) args = sendChatChecked_args() args.seq = seq args.consumer = consumer args.lastMessageId = lastMessageId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendChatChecked(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendChatChecked_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def sendChatRemoved(self, seq, consumer, lastMessageId): """ Parameters: - seq - consumer - lastMessageId """ self.send_sendChatRemoved(seq, consumer, lastMessageId) self.recv_sendChatRemoved() def send_sendChatRemoved(self, seq, consumer, lastMessageId): self._oprot.writeMessageBegin('sendChatRemoved', TMessageType.CALL, self._seqid) args = sendChatRemoved_args() args.seq = seq args.consumer = consumer args.lastMessageId = lastMessageId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendChatRemoved(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendChatRemoved_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def sendContentPreviewUpdated(self, esq, messageId, receiverMids): """ Parameters: - esq - messageId - receiverMids """ self.send_sendContentPreviewUpdated(esq, messageId, receiverMids) return self.recv_sendContentPreviewUpdated() def send_sendContentPreviewUpdated(self, esq, messageId, receiverMids): self._oprot.writeMessageBegin('sendContentPreviewUpdated', TMessageType.CALL, self._seqid) args = sendContentPreviewUpdated_args() args.esq = esq args.messageId = messageId args.receiverMids = receiverMids args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendContentPreviewUpdated(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendContentPreviewUpdated_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendContentPreviewUpdated failed: unknown result") def sendContentReceipt(self, seq, consumer, messageId): """ Parameters: - seq - consumer - messageId """ self.send_sendContentReceipt(seq, consumer, messageId) self.recv_sendContentReceipt() def send_sendContentReceipt(self, seq, consumer, messageId): self._oprot.writeMessageBegin('sendContentReceipt', TMessageType.CALL, self._seqid) args = sendContentReceipt_args() args.seq = seq args.consumer = consumer args.messageId = messageId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendContentReceipt(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendContentReceipt_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def sendDummyPush(self): self.send_sendDummyPush() self.recv_sendDummyPush() def send_sendDummyPush(self): self._oprot.writeMessageBegin('sendDummyPush', TMessageType.CALL, self._seqid) args = sendDummyPush_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendDummyPush(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendDummyPush_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def sendEvent(self, seq, message): """ Parameters: - seq - message """ self.send_sendEvent(seq, message) return self.recv_sendEvent() def send_sendEvent(self, seq, message): self._oprot.writeMessageBegin('sendEvent', TMessageType.CALL, self._seqid) args = sendEvent_args() args.seq = seq args.message = message args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendEvent(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendEvent_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendEvent failed: unknown result") def sendMessage(self, seq, message): """ Parameters: - seq - message """ self.send_sendMessage(seq, message) return self.recv_sendMessage() def send_sendMessage(self, seq, message): self._oprot.writeMessageBegin('sendMessage', TMessageType.CALL, self._seqid) args = sendMessage_args() args.seq = seq args.message = message args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendMessage(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendMessage_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendMessage failed: unknown result") def sendMessageIgnored(self, seq, consumer, messageIds): """ Parameters: - seq - consumer - messageIds """ self.send_sendMessageIgnored(seq, consumer, messageIds) self.recv_sendMessageIgnored() def send_sendMessageIgnored(self, seq, consumer, messageIds): self._oprot.writeMessageBegin('sendMessageIgnored', TMessageType.CALL, self._seqid) args = sendMessageIgnored_args() args.seq = seq args.consumer = consumer args.messageIds = messageIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendMessageIgnored(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendMessageIgnored_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def sendMessageReceipt(self, seq, consumer, messageIds): """ Parameters: - seq - consumer - messageIds """ self.send_sendMessageReceipt(seq, consumer, messageIds) self.recv_sendMessageReceipt() def send_sendMessageReceipt(self, seq, consumer, messageIds): self._oprot.writeMessageBegin('sendMessageReceipt', TMessageType.CALL, self._seqid) args = sendMessageReceipt_args() args.seq = seq args.consumer = consumer args.messageIds = messageIds args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendMessageReceipt(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendMessageReceipt_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def sendMessageToMyHome(self, seq, message): """ Parameters: - seq - message """ self.send_sendMessageToMyHome(seq, message) return self.recv_sendMessageToMyHome() def send_sendMessageToMyHome(self, seq, message): self._oprot.writeMessageBegin('sendMessageToMyHome', TMessageType.CALL, self._seqid) args = sendMessageToMyHome_args() args.seq = seq args.message = message args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_sendMessageToMyHome(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = sendMessageToMyHome_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "sendMessageToMyHome failed: unknown result") def setBuddyLocation(self, mid, index, location): """ Parameters: - mid - index - location """ self.send_setBuddyLocation(mid, index, location) self.recv_setBuddyLocation() def send_setBuddyLocation(self, mid, index, location): self._oprot.writeMessageBegin('setBuddyLocation', TMessageType.CALL, self._seqid) args = setBuddyLocation_args() args.mid = mid args.index = index args.location = location args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_setBuddyLocation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = setBuddyLocation_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def setIdentityCredential(self, provider, identifier, verifier): """ Parameters: - provider - identifier - verifier """ self.send_setIdentityCredential(provider, identifier, verifier) self.recv_setIdentityCredential() def send_setIdentityCredential(self, provider, identifier, verifier): self._oprot.writeMessageBegin('setIdentityCredential', TMessageType.CALL, self._seqid) args = setIdentityCredential_args() args.provider = provider args.identifier = identifier args.verifier = verifier args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_setIdentityCredential(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = setIdentityCredential_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def setNotificationsEnabled(self, reqSeq, type, target, enablement): """ Parameters: - reqSeq - type - target - enablement """ self.send_setNotificationsEnabled(reqSeq, type, target, enablement) self.recv_setNotificationsEnabled() def send_setNotificationsEnabled(self, reqSeq, type, target, enablement): self._oprot.writeMessageBegin('setNotificationsEnabled', TMessageType.CALL, self._seqid) args = setNotificationsEnabled_args() args.reqSeq = reqSeq args.type = type args.target = target args.enablement = enablement args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_setNotificationsEnabled(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = setNotificationsEnabled_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def startUpdateVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, locale): """ Parameters: - region - carrier - phone - udidHash - deviceInfo - networkCode - locale """ self.send_startUpdateVerification(region, carrier, phone, udidHash, deviceInfo, networkCode, locale) return self.recv_startUpdateVerification() def send_startUpdateVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, locale): self._oprot.writeMessageBegin('startUpdateVerification', TMessageType.CALL, self._seqid) args = startUpdateVerification_args() args.region = region args.carrier = carrier args.phone = phone args.udidHash = udidHash args.deviceInfo = deviceInfo args.networkCode = networkCode args.locale = locale args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_startUpdateVerification(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = startUpdateVerification_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "startUpdateVerification failed: unknown result") def startVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, mid, locale): """ Parameters: - region - carrier - phone - udidHash - deviceInfo - networkCode - mid - locale """ self.send_startVerification(region, carrier, phone, udidHash, deviceInfo, networkCode, mid, locale) return self.recv_startVerification() def send_startVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, mid, locale): self._oprot.writeMessageBegin('startVerification', TMessageType.CALL, self._seqid) args = startVerification_args() args.region = region args.carrier = carrier args.phone = phone args.udidHash = udidHash args.deviceInfo = deviceInfo args.networkCode = networkCode args.mid = mid args.locale = locale args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_startVerification(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = startVerification_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "startVerification failed: unknown result") def storeUpdateProfileAttribute(self, seq, profileAttribute, value): """ Parameters: - seq - profileAttribute - value """ self.send_storeUpdateProfileAttribute(seq, profileAttribute, value) self.recv_storeUpdateProfileAttribute() def send_storeUpdateProfileAttribute(self, seq, profileAttribute, value): self._oprot.writeMessageBegin('storeUpdateProfileAttribute', TMessageType.CALL, self._seqid) args = storeUpdateProfileAttribute_args() args.seq = seq args.profileAttribute = profileAttribute args.value = value args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_storeUpdateProfileAttribute(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = storeUpdateProfileAttribute_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def syncContactBySnsIds(self, reqSeq, modifications): """ Parameters: - reqSeq - modifications """ self.send_syncContactBySnsIds(reqSeq, modifications) return self.recv_syncContactBySnsIds() def send_syncContactBySnsIds(self, reqSeq, modifications): self._oprot.writeMessageBegin('syncContactBySnsIds', TMessageType.CALL, self._seqid) args = syncContactBySnsIds_args() args.reqSeq = reqSeq args.modifications = modifications args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_syncContactBySnsIds(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = syncContactBySnsIds_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "syncContactBySnsIds failed: unknown result") def syncContacts(self, reqSeq, localContacts): """ Parameters: - reqSeq - localContacts """ self.send_syncContacts(reqSeq, localContacts) return self.recv_syncContacts() def send_syncContacts(self, reqSeq, localContacts): self._oprot.writeMessageBegin('syncContacts', TMessageType.CALL, self._seqid) args = syncContacts_args() args.reqSeq = reqSeq args.localContacts = localContacts args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_syncContacts(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = syncContacts_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "syncContacts failed: unknown result") def trySendMessage(self, seq, message): """ Parameters: - seq - message """ self.send_trySendMessage(seq, message) return self.recv_trySendMessage() def send_trySendMessage(self, seq, message): self._oprot.writeMessageBegin('trySendMessage', TMessageType.CALL, self._seqid) args = trySendMessage_args() args.seq = seq args.message = message args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_trySendMessage(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = trySendMessage_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "trySendMessage failed: unknown result") def unblockContact(self, reqSeq, id): """ Parameters: - reqSeq - id """ self.send_unblockContact(reqSeq, id) self.recv_unblockContact() def send_unblockContact(self, reqSeq, id): self._oprot.writeMessageBegin('unblockContact', TMessageType.CALL, self._seqid) args = unblockContact_args() args.reqSeq = reqSeq args.id = id args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_unblockContact(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = unblockContact_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def unblockRecommendation(self, reqSeq, id): """ Parameters: - reqSeq - id """ self.send_unblockRecommendation(reqSeq, id) self.recv_unblockRecommendation() def send_unblockRecommendation(self, reqSeq, id): self._oprot.writeMessageBegin('unblockRecommendation', TMessageType.CALL, self._seqid) args = unblockRecommendation_args() args.reqSeq = reqSeq args.id = id args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_unblockRecommendation(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = unblockRecommendation_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def unregisterUserAndDevice(self): self.send_unregisterUserAndDevice() return self.recv_unregisterUserAndDevice() def send_unregisterUserAndDevice(self): self._oprot.writeMessageBegin('unregisterUserAndDevice', TMessageType.CALL, self._seqid) args = unregisterUserAndDevice_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_unregisterUserAndDevice(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = unregisterUserAndDevice_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "unregisterUserAndDevice failed: unknown result") def updateApnsDeviceToken(self, apnsDeviceToken): """ Parameters: - apnsDeviceToken """ self.send_updateApnsDeviceToken(apnsDeviceToken) self.recv_updateApnsDeviceToken() def send_updateApnsDeviceToken(self, apnsDeviceToken): self._oprot.writeMessageBegin('updateApnsDeviceToken', TMessageType.CALL, self._seqid) args = updateApnsDeviceToken_args() args.apnsDeviceToken = apnsDeviceToken args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateApnsDeviceToken(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateApnsDeviceToken_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateBuddySetting(self, key, value): """ Parameters: - key - value """ self.send_updateBuddySetting(key, value) self.recv_updateBuddySetting() def send_updateBuddySetting(self, key, value): self._oprot.writeMessageBegin('updateBuddySetting', TMessageType.CALL, self._seqid) args = updateBuddySetting_args() args.key = key args.value = value args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateBuddySetting(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateBuddySetting_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateC2DMRegistrationId(self, registrationId): """ Parameters: - registrationId """ self.send_updateC2DMRegistrationId(registrationId) self.recv_updateC2DMRegistrationId() def send_updateC2DMRegistrationId(self, registrationId): self._oprot.writeMessageBegin('updateC2DMRegistrationId', TMessageType.CALL, self._seqid) args = updateC2DMRegistrationId_args() args.registrationId = registrationId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateC2DMRegistrationId(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateC2DMRegistrationId_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateContactSetting(self, reqSeq, mid, flag, value): """ Parameters: - reqSeq - mid - flag - value """ self.send_updateContactSetting(reqSeq, mid, flag, value) self.recv_updateContactSetting() def send_updateContactSetting(self, reqSeq, mid, flag, value): self._oprot.writeMessageBegin('updateContactSetting', TMessageType.CALL, self._seqid) args = updateContactSetting_args() args.reqSeq = reqSeq args.mid = mid args.flag = flag args.value = value args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateContactSetting(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateContactSetting_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateCustomModeSettings(self, customMode, paramMap): """ Parameters: - customMode - paramMap """ self.send_updateCustomModeSettings(customMode, paramMap) self.recv_updateCustomModeSettings() def send_updateCustomModeSettings(self, customMode, paramMap): self._oprot.writeMessageBegin('updateCustomModeSettings', TMessageType.CALL, self._seqid) args = updateCustomModeSettings_args() args.customMode = customMode args.paramMap = paramMap args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateCustomModeSettings(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateCustomModeSettings_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateDeviceInfo(self, deviceUid, deviceInfo): """ Parameters: - deviceUid - deviceInfo """ self.send_updateDeviceInfo(deviceUid, deviceInfo) self.recv_updateDeviceInfo() def send_updateDeviceInfo(self, deviceUid, deviceInfo): self._oprot.writeMessageBegin('updateDeviceInfo', TMessageType.CALL, self._seqid) args = updateDeviceInfo_args() args.deviceUid = deviceUid args.deviceInfo = deviceInfo args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateDeviceInfo(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateDeviceInfo_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateGroup(self, reqSeq, group): """ Parameters: - reqSeq - group """ self.send_updateGroup(reqSeq, group) self.recv_updateGroup() def send_updateGroup(self, reqSeq, group): self._oprot.writeMessageBegin('updateGroup', TMessageType.CALL, self._seqid) args = updateGroup_args() args.reqSeq = reqSeq args.group = group args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateGroup(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateGroup_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateNotificationToken(self, type, token): """ Parameters: - type - token """ self.send_updateNotificationToken(type, token) self.recv_updateNotificationToken() def send_updateNotificationToken(self, type, token): self._oprot.writeMessageBegin('updateNotificationToken', TMessageType.CALL, self._seqid) args = updateNotificationToken_args() args.type = type args.token = token args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateNotificationToken(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateNotificationToken_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateNotificationTokenWithBytes(self, type, token): """ Parameters: - type - token """ self.send_updateNotificationTokenWithBytes(type, token) self.recv_updateNotificationTokenWithBytes() def send_updateNotificationTokenWithBytes(self, type, token): self._oprot.writeMessageBegin('updateNotificationTokenWithBytes', TMessageType.CALL, self._seqid) args = updateNotificationTokenWithBytes_args() args.type = type args.token = token args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateNotificationTokenWithBytes(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateNotificationTokenWithBytes_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateProfile(self, reqSeq, profile): """ Parameters: - reqSeq - profile """ self.send_updateProfile(reqSeq, profile) self.recv_updateProfile() def send_updateProfile(self, reqSeq, profile): self._oprot.writeMessageBegin('updateProfile', TMessageType.CALL, self._seqid) args = updateProfile_args() args.reqSeq = reqSeq args.profile = profile args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateProfile(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateProfile_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateProfileAttribute(self, reqSeq, attr, value): """ Parameters: - reqSeq - attr - value """ self.send_updateProfileAttribute(reqSeq, attr, value) self.recv_updateProfileAttribute() def send_updateProfileAttribute(self, reqSeq, attr, value): self._oprot.writeMessageBegin('updateProfileAttribute', TMessageType.CALL, self._seqid) args = updateProfileAttribute_args() args.reqSeq = reqSeq args.attr = attr args.value = value args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateProfileAttribute(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateProfileAttribute_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateRegion(self, region): """ Parameters: - region """ self.send_updateRegion(region) self.recv_updateRegion() def send_updateRegion(self, region): self._oprot.writeMessageBegin('updateRegion', TMessageType.CALL, self._seqid) args = updateRegion_args() args.region = region args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateRegion(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateRegion_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateSettings(self, reqSeq, settings): """ Parameters: - reqSeq - settings """ self.send_updateSettings(reqSeq, settings) self.recv_updateSettings() def send_updateSettings(self, reqSeq, settings): self._oprot.writeMessageBegin('updateSettings', TMessageType.CALL, self._seqid) args = updateSettings_args() args.reqSeq = reqSeq args.settings = settings args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateSettings(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateSettings_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateSettings2(self, reqSeq, settings): """ Parameters: - reqSeq - settings """ self.send_updateSettings2(reqSeq, settings) return self.recv_updateSettings2() def send_updateSettings2(self, reqSeq, settings): self._oprot.writeMessageBegin('updateSettings2', TMessageType.CALL, self._seqid) args = updateSettings2_args() args.reqSeq = reqSeq args.settings = settings args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateSettings2(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateSettings2_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "updateSettings2 failed: unknown result") def updateSettingsAttribute(self, reqSeq, attr, value): """ Parameters: - reqSeq - attr - value """ self.send_updateSettingsAttribute(reqSeq, attr, value) self.recv_updateSettingsAttribute() def send_updateSettingsAttribute(self, reqSeq, attr, value): self._oprot.writeMessageBegin('updateSettingsAttribute', TMessageType.CALL, self._seqid) args = updateSettingsAttribute_args() args.reqSeq = reqSeq args.attr = attr args.value = value args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateSettingsAttribute(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateSettingsAttribute_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def updateSettingsAttributes(self, reqSeq, attrBitset, settings): """ Parameters: - reqSeq - attrBitset - settings """ self.send_updateSettingsAttributes(reqSeq, attrBitset, settings) return self.recv_updateSettingsAttributes() def send_updateSettingsAttributes(self, reqSeq, attrBitset, settings): self._oprot.writeMessageBegin('updateSettingsAttributes', TMessageType.CALL, self._seqid) args = updateSettingsAttributes_args() args.reqSeq = reqSeq args.attrBitset = attrBitset args.settings = settings args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_updateSettingsAttributes(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = updateSettingsAttributes_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "updateSettingsAttributes failed: unknown result") def verifyIdentityCredential(self, identityProvider, identifier, password): """ Parameters: - identityProvider - identifier - password """ self.send_verifyIdentityCredential(identityProvider, identifier, password) self.recv_verifyIdentityCredential() def send_verifyIdentityCredential(self, identityProvider, identifier, password): self._oprot.writeMessageBegin('verifyIdentityCredential', TMessageType.CALL, self._seqid) args = verifyIdentityCredential_args() args.identityProvider = identityProvider args.identifier = identifier args.password = password args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_verifyIdentityCredential(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = verifyIdentityCredential_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def verifyIdentityCredentialWithResult(self, identityCredential): """ Parameters: - identityCredential """ self.send_verifyIdentityCredentialWithResult(identityCredential) return self.recv_verifyIdentityCredentialWithResult() def send_verifyIdentityCredentialWithResult(self, identityCredential): self._oprot.writeMessageBegin('verifyIdentityCredentialWithResult', TMessageType.CALL, self._seqid) args = verifyIdentityCredentialWithResult_args() args.identityCredential = identityCredential args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_verifyIdentityCredentialWithResult(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = verifyIdentityCredentialWithResult_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "verifyIdentityCredentialWithResult failed: unknown result") def verifyPhone(self, sessionId, pinCode, udidHash): """ Parameters: - sessionId - pinCode - udidHash """ self.send_verifyPhone(sessionId, pinCode, udidHash) return self.recv_verifyPhone() def send_verifyPhone(self, sessionId, pinCode, udidHash): self._oprot.writeMessageBegin('verifyPhone', TMessageType.CALL, self._seqid) args = verifyPhone_args() args.sessionId = sessionId args.pinCode = pinCode args.udidHash = udidHash args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_verifyPhone(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = verifyPhone_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "verifyPhone failed: unknown result") def verifyQrcode(self, verifier, pinCode): """ Parameters: - verifier - pinCode """ self.send_verifyQrcode(verifier, pinCode) return self.recv_verifyQrcode() def send_verifyQrcode(self, verifier, pinCode): self._oprot.writeMessageBegin('verifyQrcode', TMessageType.CALL, self._seqid) args = verifyQrcode_args() args.verifier = verifier args.pinCode = pinCode args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_verifyQrcode(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = verifyQrcode_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "verifyQrcode failed: unknown result") def notify(self, event): """ Parameters: - event """ self.send_notify(event) self.recv_notify() def send_notify(self, event): self._oprot.writeMessageBegin('notify', TMessageType.CALL, self._seqid) args = notify_args() args.event = event args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_notify(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = notify_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return class Processor(Iface, TProcessor): def __init__(self, handler): self._handler = handler self._processMap = {} self._processMap["getRSAKey"] = Processor.process_getRSAKey self._processMap["notifyEmailConfirmationResult"] = Processor.process_notifyEmailConfirmationResult self._processMap["registerVirtualAccount"] = Processor.process_registerVirtualAccount self._processMap["requestVirtualAccountPasswordChange"] = Processor.process_requestVirtualAccountPasswordChange self._processMap["requestVirtualAccountPasswordSet"] = Processor.process_requestVirtualAccountPasswordSet self._processMap["unregisterVirtualAccount"] = Processor.process_unregisterVirtualAccount self._processMap["checkUserAge"] = Processor.process_checkUserAge self._processMap["checkUserAgeWithDocomo"] = Processor.process_checkUserAgeWithDocomo self._processMap["retrieveOpenIdAuthUrlWithDocomo"] = Processor.process_retrieveOpenIdAuthUrlWithDocomo self._processMap["retrieveRequestToken"] = Processor.process_retrieveRequestToken self._processMap["addBuddyMember"] = Processor.process_addBuddyMember self._processMap["addBuddyMembers"] = Processor.process_addBuddyMembers self._processMap["blockBuddyMember"] = Processor.process_blockBuddyMember self._processMap["commitSendMessagesToAll"] = Processor.process_commitSendMessagesToAll self._processMap["commitSendMessagesTomids"] = Processor.process_commitSendMessagesTomids self._processMap["containsBuddyMember"] = Processor.process_containsBuddyMember self._processMap["downloadMessageContent"] = Processor.process_downloadMessageContent self._processMap["downloadMessageContentPreview"] = Processor.process_downloadMessageContentPreview self._processMap["downloadProfileImage"] = Processor.process_downloadProfileImage self._processMap["downloadProfileImagePreview"] = Processor.process_downloadProfileImagePreview self._processMap["getActiveMemberCountByBuddyMid"] = Processor.process_getActiveMemberCountByBuddyMid self._processMap["getActiveMemberMidsByBuddyMid"] = Processor.process_getActiveMemberMidsByBuddyMid self._processMap["getAllBuddyMembers"] = Processor.process_getAllBuddyMembers self._processMap["getBlockedBuddyMembers"] = Processor.process_getBlockedBuddyMembers self._processMap["getBlockerCountByBuddyMid"] = Processor.process_getBlockerCountByBuddyMid self._processMap["getBuddyDetailByMid"] = Processor.process_getBuddyDetailByMid self._processMap["getBuddyProfile"] = Processor.process_getBuddyProfile self._processMap["getContactTicket"] = Processor.process_getContactTicket self._processMap["getMemberCountByBuddyMid"] = Processor.process_getMemberCountByBuddyMid self._processMap["getSendBuddyMessageResult"] = Processor.process_getSendBuddyMessageResult self._processMap["getSetBuddyOnAirResult"] = Processor.process_getSetBuddyOnAirResult self._processMap["getUpdateBuddyProfileResult"] = Processor.process_getUpdateBuddyProfileResult self._processMap["isBuddyOnAirByMid"] = Processor.process_isBuddyOnAirByMid self._processMap["linkAndSendBuddyContentMessageToAllAsync"] = Processor.process_linkAndSendBuddyContentMessageToAllAsync self._processMap["linkAndSendBuddyContentMessageTomids"] = Processor.process_linkAndSendBuddyContentMessageTomids self._processMap["notifyBuddyBlocked"] = Processor.process_notifyBuddyBlocked self._processMap["notifyBuddyUnblocked"] = Processor.process_notifyBuddyUnblocked self._processMap["registerBuddy"] = Processor.process_registerBuddy self._processMap["registerBuddyAdmin"] = Processor.process_registerBuddyAdmin self._processMap["reissueContactTicket"] = Processor.process_reissueContactTicket self._processMap["removeBuddyMember"] = Processor.process_removeBuddyMember self._processMap["removeBuddyMembers"] = Processor.process_removeBuddyMembers self._processMap["sendBuddyContentMessageToAll"] = Processor.process_sendBuddyContentMessageToAll self._processMap["sendBuddyContentMessageToAllAsync"] = Processor.process_sendBuddyContentMessageToAllAsync self._processMap["sendBuddyContentMessageTomids"] = Processor.process_sendBuddyContentMessageTomids self._processMap["sendBuddyContentMessageTomidsAsync"] = Processor.process_sendBuddyContentMessageTomidsAsync self._processMap["sendBuddyMessageToAll"] = Processor.process_sendBuddyMessageToAll self._processMap["sendBuddyMessageToAllAsync"] = Processor.process_sendBuddyMessageToAllAsync self._processMap["sendBuddyMessageTomids"] = Processor.process_sendBuddyMessageTomids self._processMap["sendBuddyMessageTomidsAsync"] = Processor.process_sendBuddyMessageTomidsAsync self._processMap["sendIndividualEventToAllAsync"] = Processor.process_sendIndividualEventToAllAsync self._processMap["setBuddyOnAir"] = Processor.process_setBuddyOnAir self._processMap["setBuddyOnAirAsync"] = Processor.process_setBuddyOnAirAsync self._processMap["storeMessage"] = Processor.process_storeMessage self._processMap["unblockBuddyMember"] = Processor.process_unblockBuddyMember self._processMap["unregisterBuddy"] = Processor.process_unregisterBuddy self._processMap["unregisterBuddyAdmin"] = Processor.process_unregisterBuddyAdmin self._processMap["updateBuddyAdminProfileAttribute"] = Processor.process_updateBuddyAdminProfileAttribute self._processMap["updateBuddyAdminProfileImage"] = Processor.process_updateBuddyAdminProfileImage self._processMap["updateBuddyProfileAttributes"] = Processor.process_updateBuddyProfileAttributes self._processMap["updateBuddyProfileAttributesAsync"] = Processor.process_updateBuddyProfileAttributesAsync self._processMap["updateBuddyProfileImage"] = Processor.process_updateBuddyProfileImage self._processMap["updateBuddyProfileImageAsync"] = Processor.process_updateBuddyProfileImageAsync self._processMap["updateBuddySearchId"] = Processor.process_updateBuddySearchId self._processMap["updateBuddySettings"] = Processor.process_updateBuddySettings self._processMap["uploadBuddyContent"] = Processor.process_uploadBuddyContent self._processMap["findBuddyContactsByQuery"] = Processor.process_findBuddyContactsByQuery self._processMap["getBuddyContacts"] = Processor.process_getBuddyContacts self._processMap["getBuddyDetail"] = Processor.process_getBuddyDetail self._processMap["getBuddyOnAir"] = Processor.process_getBuddyOnAir self._processMap["getCountriesHavingBuddy"] = Processor.process_getCountriesHavingBuddy self._processMap["getNewlyReleasedBuddyIds"] = Processor.process_getNewlyReleasedBuddyIds self._processMap["getPopularBuddyBanner"] = Processor.process_getPopularBuddyBanner self._processMap["getPopularBuddyLists"] = Processor.process_getPopularBuddyLists self._processMap["getPromotedBuddyContacts"] = Processor.process_getPromotedBuddyContacts self._processMap["activeBuddySubscriberCount"] = Processor.process_activeBuddySubscriberCount self._processMap["addOperationForChannel"] = Processor.process_addOperationForChannel self._processMap["displayBuddySubscriberCount"] = Processor.process_displayBuddySubscriberCount self._processMap["findContactByUseridWithoutAbuseBlockForChannel"] = Processor.process_findContactByUseridWithoutAbuseBlockForChannel self._processMap["getAllContactIdsForChannel"] = Processor.process_getAllContactIdsForChannel self._processMap["getCompactContacts"] = Processor.process_getCompactContacts self._processMap["getContactsForChannel"] = Processor.process_getContactsForChannel self._processMap["getDisplayName"] = Processor.process_getDisplayName self._processMap["getFavoriteMidsForChannel"] = Processor.process_getFavoriteMidsForChannel self._processMap["getFriendMids"] = Processor.process_getFriendMids self._processMap["getGroupMemberMids"] = Processor.process_getGroupMemberMids self._processMap["getGroupsForChannel"] = Processor.process_getGroupsForChannel self._processMap["getIdentityCredential"] = Processor.process_getIdentityCredential self._processMap["getJoinedGroupIdsForChannel"] = Processor.process_getJoinedGroupIdsForChannel self._processMap["getMetaProfile"] = Processor.process_getMetaProfile self._processMap["getMid"] = Processor.process_getMid self._processMap["getPrimaryClientForChannel"] = Processor.process_getPrimaryClientForChannel self._processMap["getProfileForChannel"] = Processor.process_getProfileForChannel self._processMap["getSimpleChannelContacts"] = Processor.process_getSimpleChannelContacts self._processMap["getUserCountryForBilling"] = Processor.process_getUserCountryForBilling self._processMap["getUserCreateTime"] = Processor.process_getUserCreateTime self._processMap["getUserIdentities"] = Processor.process_getUserIdentities self._processMap["getUserLanguage"] = Processor.process_getUserLanguage self._processMap["getUserMidsWhoAddedMe"] = Processor.process_getUserMidsWhoAddedMe self._processMap["isGroupMember"] = Processor.process_isGroupMember self._processMap["isInContact"] = Processor.process_isInContact self._processMap["registerChannelCP"] = Processor.process_registerChannelCP self._processMap["removeNotificationStatus"] = Processor.process_removeNotificationStatus self._processMap["sendMessageForChannel"] = Processor.process_sendMessageForChannel self._processMap["sendPinCodeOperation"] = Processor.process_sendPinCodeOperation self._processMap["updateProfileAttributeForChannel"] = Processor.process_updateProfileAttributeForChannel self._processMap["approveChannelAndIssueChannelToken"] = Processor.process_approveChannelAndIssueChannelToken self._processMap["approveChannelAndIssueRequestToken"] = Processor.process_approveChannelAndIssueRequestToken self._processMap["fetchNotificationItems"] = Processor.process_fetchNotificationItems self._processMap["getApprovedChannels"] = Processor.process_getApprovedChannels self._processMap["getChannelInfo"] = Processor.process_getChannelInfo self._processMap["getChannelNotificationSetting"] = Processor.process_getChannelNotificationSetting self._processMap["getChannelNotificationSettings"] = Processor.process_getChannelNotificationSettings self._processMap["getChannels"] = Processor.process_getChannels self._processMap["getDomains"] = Processor.process_getDomains self._processMap["getFriendChannelMatrices"] = Processor.process_getFriendChannelMatrices self._processMap["getNotificationBadgeCount"] = Processor.process_getNotificationBadgeCount self._processMap["issueChannelToken"] = Processor.process_issueChannelToken self._processMap["issueRequestToken"] = Processor.process_issueRequestToken self._processMap["issueRequestTokenWithAuthScheme"] = Processor.process_issueRequestTokenWithAuthScheme self._processMap["reserveCoinUse"] = Processor.process_reserveCoinUse self._processMap["revokeChannel"] = Processor.process_revokeChannel self._processMap["syncChannelData"] = Processor.process_syncChannelData self._processMap["updateChannelNotificationSetting"] = Processor.process_updateChannelNotificationSetting self._processMap["fetchMessageOperations"] = Processor.process_fetchMessageOperations self._processMap["getLastReadMessageIds"] = Processor.process_getLastReadMessageIds self._processMap["multiGetLastReadMessageIds"] = Processor.process_multiGetLastReadMessageIds self._processMap["buyCoinProduct"] = Processor.process_buyCoinProduct self._processMap["buyFreeProduct"] = Processor.process_buyFreeProduct self._processMap["buyMustbuyProduct"] = Processor.process_buyMustbuyProduct self._processMap["checkCanReceivePresent"] = Processor.process_checkCanReceivePresent self._processMap["getActivePurchases"] = Processor.process_getActivePurchases self._processMap["getActivePurchaseVersions"] = Processor.process_getActivePurchaseVersions self._processMap["getCoinProducts"] = Processor.process_getCoinProducts self._processMap["getCoinProductsByPgCode"] = Processor.process_getCoinProductsByPgCode self._processMap["getCoinPurchaseHistory"] = Processor.process_getCoinPurchaseHistory self._processMap["getCoinUseAndRefundHistory"] = Processor.process_getCoinUseAndRefundHistory self._processMap["getDownloads"] = Processor.process_getDownloads self._processMap["getEventPackages"] = Processor.process_getEventPackages self._processMap["getNewlyReleasedPackages"] = Processor.process_getNewlyReleasedPackages self._processMap["getPopularPackages"] = Processor.process_getPopularPackages self._processMap["getPresentsReceived"] = Processor.process_getPresentsReceived self._processMap["getPresentsSent"] = Processor.process_getPresentsSent self._processMap["getProduct"] = Processor.process_getProduct self._processMap["getProductList"] = Processor.process_getProductList self._processMap["getProductListWithCarrier"] = Processor.process_getProductListWithCarrier self._processMap["getProductWithCarrier"] = Processor.process_getProductWithCarrier self._processMap["getPurchaseHistory"] = Processor.process_getPurchaseHistory self._processMap["getTotalBalance"] = Processor.process_getTotalBalance self._processMap["notifyDownloaded"] = Processor.process_notifyDownloaded self._processMap["reserveCoinPurchase"] = Processor.process_reserveCoinPurchase self._processMap["reservePayment"] = Processor.process_reservePayment self._processMap["getSnsFriends"] = Processor.process_getSnsFriends self._processMap["getSnsMyProfile"] = Processor.process_getSnsMyProfile self._processMap["postSnsInvitationMessage"] = Processor.process_postSnsInvitationMessage self._processMap["acceptGroupInvitation"] = Processor.process_acceptGroupInvitation self._processMap["acceptGroupInvitationByTicket"] = Processor.process_acceptGroupInvitationByTicket self._processMap["acceptProximityMatches"] = Processor.process_acceptProximityMatches self._processMap["acquireCallRoute"] = Processor.process_acquireCallRoute self._processMap["acquireCallTicket"] = Processor.process_acquireCallTicket self._processMap["acquireEncryptedAccessToken"] = Processor.process_acquireEncryptedAccessToken self._processMap["addSnsId"] = Processor.process_addSnsId self._processMap["blockContact"] = Processor.process_blockContact self._processMap["blockRecommendation"] = Processor.process_blockRecommendation self._processMap["cancelGroupInvitation"] = Processor.process_cancelGroupInvitation self._processMap["changeVerificationMethod"] = Processor.process_changeVerificationMethod self._processMap["clearIdentityCredential"] = Processor.process_clearIdentityCredential self._processMap["clearMessageBox"] = Processor.process_clearMessageBox self._processMap["closeProximityMatch"] = Processor.process_closeProximityMatch self._processMap["commitSendMessage"] = Processor.process_commitSendMessage self._processMap["commitSendMessages"] = Processor.process_commitSendMessages self._processMap["commitUpdateProfile"] = Processor.process_commitUpdateProfile self._processMap["confirmEmail"] = Processor.process_confirmEmail self._processMap["createGroup"] = Processor.process_createGroup self._processMap["createQrcodeBase64Image"] = Processor.process_createQrcodeBase64Image self._processMap["createRoom"] = Processor.process_createRoom self._processMap["createSession"] = Processor.process_createSession self._processMap["fetchAnnouncements"] = Processor.process_fetchAnnouncements self._processMap["fetchMessages"] = Processor.process_fetchMessages self._processMap["fetchOperations"] = Processor.process_fetchOperations self._processMap["fetchOps"] = Processor.process_fetchOps self._processMap["findAndAddContactsByEmail"] = Processor.process_findAndAddContactsByEmail self._processMap["findAndAddContactsByMid"] = Processor.process_findAndAddContactsByMid self._processMap["findAndAddContactsByPhone"] = Processor.process_findAndAddContactsByPhone self._processMap["findAndAddContactsByUserid"] = Processor.process_findAndAddContactsByUserid self._processMap["findContactByUserid"] = Processor.process_findContactByUserid self._processMap["findContactByUserTicket"] = Processor.process_findContactByUserTicket self._processMap["findGroupByTicket"] = Processor.process_findGroupByTicket self._processMap["findContactsByEmail"] = Processor.process_findContactsByEmail self._processMap["findContactsByPhone"] = Processor.process_findContactsByPhone self._processMap["findSnsIdUserStatus"] = Processor.process_findSnsIdUserStatus self._processMap["finishUpdateVerification"] = Processor.process_finishUpdateVerification self._processMap["generateUserTicket"] = Processor.process_generateUserTicket self._processMap["getAcceptedProximityMatches"] = Processor.process_getAcceptedProximityMatches self._processMap["getActiveBuddySubscriberIds"] = Processor.process_getActiveBuddySubscriberIds self._processMap["getAllContactIds"] = Processor.process_getAllContactIds self._processMap["getAuthQrcode"] = Processor.process_getAuthQrcode self._processMap["getBlockedContactIds"] = Processor.process_getBlockedContactIds self._processMap["getBlockedContactIdsByRange"] = Processor.process_getBlockedContactIdsByRange self._processMap["getBlockedRecommendationIds"] = Processor.process_getBlockedRecommendationIds self._processMap["getBuddyBlockerIds"] = Processor.process_getBuddyBlockerIds self._processMap["getBuddyLocation"] = Processor.process_getBuddyLocation self._processMap["getCompactContactsModifiedSince"] = Processor.process_getCompactContactsModifiedSince self._processMap["getCompactGroup"] = Processor.process_getCompactGroup self._processMap["getCompactRoom"] = Processor.process_getCompactRoom self._processMap["getContact"] = Processor.process_getContact self._processMap["getContacts"] = Processor.process_getContacts self._processMap["getCountryWithRequestIp"] = Processor.process_getCountryWithRequestIp self._processMap["getFavoriteMids"] = Processor.process_getFavoriteMids self._processMap["getGroup"] = Processor.process_getGroup self._processMap["getGroupIdsInvited"] = Processor.process_getGroupIdsInvited self._processMap["getGroupIdsJoined"] = Processor.process_getGroupIdsJoined self._processMap["getGroups"] = Processor.process_getGroups self._processMap["getHiddenContactMids"] = Processor.process_getHiddenContactMids self._processMap["getIdentityIdentifier"] = Processor.process_getIdentityIdentifier self._processMap["getLastAnnouncementIndex"] = Processor.process_getLastAnnouncementIndex self._processMap["getLastOpRevision"] = Processor.process_getLastOpRevision self._processMap["getMessageBox"] = Processor.process_getMessageBox self._processMap["getMessageBoxCompactWrapUp"] = Processor.process_getMessageBoxCompactWrapUp self._processMap["getMessageBoxCompactWrapUpList"] = Processor.process_getMessageBoxCompactWrapUpList self._processMap["getMessageBoxList"] = Processor.process_getMessageBoxList self._processMap["getMessageBoxListByStatus"] = Processor.process_getMessageBoxListByStatus self._processMap["getMessageBoxWrapUp"] = Processor.process_getMessageBoxWrapUp self._processMap["getMessageBoxWrapUpList"] = Processor.process_getMessageBoxWrapUpList self._processMap["getMessagesBySequenceNumber"] = Processor.process_getMessagesBySequenceNumber self._processMap["getNextMessages"] = Processor.process_getNextMessages self._processMap["getNotificationPolicy"] = Processor.process_getNotificationPolicy self._processMap["getPreviousMessages"] = Processor.process_getPreviousMessages self._processMap["getProfile"] = Processor.process_getProfile self._processMap["getProximityMatchCandidateList"] = Processor.process_getProximityMatchCandidateList self._processMap["getProximityMatchCandidates"] = Processor.process_getProximityMatchCandidates self._processMap["getRecentMessages"] = Processor.process_getRecentMessages self._processMap["getRecommendationIds"] = Processor.process_getRecommendationIds self._processMap["getRoom"] = Processor.process_getRoom self._processMap["getRSAKeyInfo"] = Processor.process_getRSAKeyInfo self._processMap["getServerTime"] = Processor.process_getServerTime self._processMap["getSessions"] = Processor.process_getSessions self._processMap["getSettings"] = Processor.process_getSettings self._processMap["getSettingsAttributes"] = Processor.process_getSettingsAttributes self._processMap["getSystemConfiguration"] = Processor.process_getSystemConfiguration self._processMap["getUserTicket"] = Processor.process_getUserTicket self._processMap["getWapInvitation"] = Processor.process_getWapInvitation self._processMap["invalidateUserTicket"] = Processor.process_invalidateUserTicket self._processMap["inviteFriendsBySms"] = Processor.process_inviteFriendsBySms self._processMap["inviteIntoGroup"] = Processor.process_inviteIntoGroup self._processMap["inviteIntoRoom"] = Processor.process_inviteIntoRoom self._processMap["inviteViaEmail"] = Processor.process_inviteViaEmail self._processMap["isIdentityIdentifierAvailable"] = Processor.process_isIdentityIdentifierAvailable self._processMap["isUseridAvailable"] = Processor.process_isUseridAvailable self._processMap["kickoutFromGroup"] = Processor.process_kickoutFromGroup self._processMap["leaveGroup"] = Processor.process_leaveGroup self._processMap["leaveRoom"] = Processor.process_leaveRoom self._processMap["loginWithIdentityCredential"] = Processor.process_loginWithIdentityCredential self._processMap["loginWithIdentityCredentialForCertificate"] = Processor.process_loginWithIdentityCredentialForCertificate self._processMap["loginWithVerifier"] = Processor.process_loginWithVerifier self._processMap["loginWithVerifierForCerificate"] = Processor.process_loginWithVerifierForCerificate self._processMap["loginWithVerifierForCertificate"] = Processor.process_loginWithVerifierForCertificate self._processMap["logout"] = Processor.process_logout self._processMap["logoutSession"] = Processor.process_logoutSession self._processMap["noop"] = Processor.process_noop self._processMap["notifiedRedirect"] = Processor.process_notifiedRedirect self._processMap["notifyBuddyOnAir"] = Processor.process_notifyBuddyOnAir self._processMap["notifyIndividualEvent"] = Processor.process_notifyIndividualEvent self._processMap["notifyInstalled"] = Processor.process_notifyInstalled self._processMap["notifyRegistrationComplete"] = Processor.process_notifyRegistrationComplete self._processMap["notifySleep"] = Processor.process_notifySleep self._processMap["notifyUpdated"] = Processor.process_notifyUpdated self._processMap["openProximityMatch"] = Processor.process_openProximityMatch self._processMap["registerBuddyUser"] = Processor.process_registerBuddyUser self._processMap["registerBuddyUserid"] = Processor.process_registerBuddyUserid self._processMap["registerDevice"] = Processor.process_registerDevice self._processMap["registerDeviceWithIdentityCredential"] = Processor.process_registerDeviceWithIdentityCredential self._processMap["registerDeviceWithoutPhoneNumber"] = Processor.process_registerDeviceWithoutPhoneNumber self._processMap["registerDeviceWithoutPhoneNumberWithIdentityCredential"] = Processor.process_registerDeviceWithoutPhoneNumberWithIdentityCredential self._processMap["registerUserid"] = Processor.process_registerUserid self._processMap["registerWapDevice"] = Processor.process_registerWapDevice self._processMap["registerWithExistingSnsIdAndIdentityCredential"] = Processor.process_registerWithExistingSnsIdAndIdentityCredential self._processMap["registerWithSnsId"] = Processor.process_registerWithSnsId self._processMap["registerWithSnsIdAndIdentityCredential"] = Processor.process_registerWithSnsIdAndIdentityCredential self._processMap["reissueDeviceCredential"] = Processor.process_reissueDeviceCredential self._processMap["reissueUserTicket"] = Processor.process_reissueUserTicket self._processMap["reissueGroupTicket"] = Processor.process_reissueGroupTicket self._processMap["rejectGroupInvitation"] = Processor.process_rejectGroupInvitation self._processMap["releaseSession"] = Processor.process_releaseSession self._processMap["removeAllMessages"] = Processor.process_removeAllMessages self._processMap["removeBuddyLocation"] = Processor.process_removeBuddyLocation self._processMap["removeMessage"] = Processor.process_removeMessage self._processMap["removeMessageFromMyHome"] = Processor.process_removeMessageFromMyHome self._processMap["removeSnsId"] = Processor.process_removeSnsId self._processMap["report"] = Processor.process_report self._processMap["reportContacts"] = Processor.process_reportContacts self._processMap["reportGroups"] = Processor.process_reportGroups self._processMap["reportProfile"] = Processor.process_reportProfile self._processMap["reportRooms"] = Processor.process_reportRooms self._processMap["reportSettings"] = Processor.process_reportSettings self._processMap["reportSpammer"] = Processor.process_reportSpammer self._processMap["requestAccountPasswordReset"] = Processor.process_requestAccountPasswordReset self._processMap["requestEmailConfirmation"] = Processor.process_requestEmailConfirmation self._processMap["requestIdentityUnbind"] = Processor.process_requestIdentityUnbind self._processMap["resendEmailConfirmation"] = Processor.process_resendEmailConfirmation self._processMap["resendPinCode"] = Processor.process_resendPinCode self._processMap["resendPinCodeBySMS"] = Processor.process_resendPinCodeBySMS self._processMap["sendChatChecked"] = Processor.process_sendChatChecked self._processMap["sendChatRemoved"] = Processor.process_sendChatRemoved self._processMap["sendContentPreviewUpdated"] = Processor.process_sendContentPreviewUpdated self._processMap["sendContentReceipt"] = Processor.process_sendContentReceipt self._processMap["sendDummyPush"] = Processor.process_sendDummyPush self._processMap["sendEvent"] = Processor.process_sendEvent self._processMap["sendMessage"] = Processor.process_sendMessage self._processMap["sendMessageIgnored"] = Processor.process_sendMessageIgnored self._processMap["sendMessageReceipt"] = Processor.process_sendMessageReceipt self._processMap["sendMessageToMyHome"] = Processor.process_sendMessageToMyHome self._processMap["setBuddyLocation"] = Processor.process_setBuddyLocation self._processMap["setIdentityCredential"] = Processor.process_setIdentityCredential self._processMap["setNotificationsEnabled"] = Processor.process_setNotificationsEnabled self._processMap["startUpdateVerification"] = Processor.process_startUpdateVerification self._processMap["startVerification"] = Processor.process_startVerification self._processMap["storeUpdateProfileAttribute"] = Processor.process_storeUpdateProfileAttribute self._processMap["syncContactBySnsIds"] = Processor.process_syncContactBySnsIds self._processMap["syncContacts"] = Processor.process_syncContacts self._processMap["trySendMessage"] = Processor.process_trySendMessage self._processMap["unblockContact"] = Processor.process_unblockContact self._processMap["unblockRecommendation"] = Processor.process_unblockRecommendation self._processMap["unregisterUserAndDevice"] = Processor.process_unregisterUserAndDevice self._processMap["updateApnsDeviceToken"] = Processor.process_updateApnsDeviceToken self._processMap["updateBuddySetting"] = Processor.process_updateBuddySetting self._processMap["updateC2DMRegistrationId"] = Processor.process_updateC2DMRegistrationId self._processMap["updateContactSetting"] = Processor.process_updateContactSetting self._processMap["updateCustomModeSettings"] = Processor.process_updateCustomModeSettings self._processMap["updateDeviceInfo"] = Processor.process_updateDeviceInfo self._processMap["updateGroup"] = Processor.process_updateGroup self._processMap["updateNotificationToken"] = Processor.process_updateNotificationToken self._processMap["updateNotificationTokenWithBytes"] = Processor.process_updateNotificationTokenWithBytes self._processMap["updateProfile"] = Processor.process_updateProfile self._processMap["updateProfileAttribute"] = Processor.process_updateProfileAttribute self._processMap["updateRegion"] = Processor.process_updateRegion self._processMap["updateSettings"] = Processor.process_updateSettings self._processMap["updateSettings2"] = Processor.process_updateSettings2 self._processMap["updateSettingsAttribute"] = Processor.process_updateSettingsAttribute self._processMap["updateSettingsAttributes"] = Processor.process_updateSettingsAttributes self._processMap["verifyIdentityCredential"] = Processor.process_verifyIdentityCredential self._processMap["verifyIdentityCredentialWithResult"] = Processor.process_verifyIdentityCredentialWithResult self._processMap["verifyPhone"] = Processor.process_verifyPhone self._processMap["verifyQrcode"] = Processor.process_verifyQrcode self._processMap["notify"] = Processor.process_notify def process(self, iprot, oprot): (name, type, seqid) = iprot.readMessageBegin() if name not in self._processMap: iprot.skip(TType.STRUCT) iprot.readMessageEnd() x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name)) oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid) x.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() return else: self._processMap[name](self, seqid, iprot, oprot) return True def process_getRSAKey(self, seqid, iprot, oprot): args = getRSAKey_args() args.read(iprot) iprot.readMessageEnd() result = getRSAKey_result() try: result.success = self._handler.getRSAKey() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getRSAKey", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifyEmailConfirmationResult(self, seqid, iprot, oprot): args = notifyEmailConfirmationResult_args() args.read(iprot) iprot.readMessageEnd() result = notifyEmailConfirmationResult_result() try: self._handler.notifyEmailConfirmationResult(args.parameterMap) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifyEmailConfirmationResult", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerVirtualAccount(self, seqid, iprot, oprot): args = registerVirtualAccount_args() args.read(iprot) iprot.readMessageEnd() result = registerVirtualAccount_result() try: result.success = self._handler.registerVirtualAccount(args.locale, args.encryptedVirtualUserId, args.encryptedPassword) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerVirtualAccount", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_requestVirtualAccountPasswordChange(self, seqid, iprot, oprot): args = requestVirtualAccountPasswordChange_args() args.read(iprot) iprot.readMessageEnd() result = requestVirtualAccountPasswordChange_result() try: self._handler.requestVirtualAccountPasswordChange(args.virtualMid, args.encryptedVirtualUserId, args.encryptedOldPassword, args.encryptedNewPassword) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("requestVirtualAccountPasswordChange", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_requestVirtualAccountPasswordSet(self, seqid, iprot, oprot): args = requestVirtualAccountPasswordSet_args() args.read(iprot) iprot.readMessageEnd() result = requestVirtualAccountPasswordSet_result() try: self._handler.requestVirtualAccountPasswordSet(args.virtualMid, args.encryptedVirtualUserId, args.encryptedNewPassword) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("requestVirtualAccountPasswordSet", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_unregisterVirtualAccount(self, seqid, iprot, oprot): args = unregisterVirtualAccount_args() args.read(iprot) iprot.readMessageEnd() result = unregisterVirtualAccount_result() try: self._handler.unregisterVirtualAccount(args.virtualMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("unregisterVirtualAccount", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_checkUserAge(self, seqid, iprot, oprot): args = checkUserAge_args() args.read(iprot) iprot.readMessageEnd() result = checkUserAge_result() try: result.success = self._handler.checkUserAge(args.carrier, args.sessionId, args.verifier, args.standardAge) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("checkUserAge", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_checkUserAgeWithDocomo(self, seqid, iprot, oprot): args = checkUserAgeWithDocomo_args() args.read(iprot) iprot.readMessageEnd() result = checkUserAgeWithDocomo_result() try: result.success = self._handler.checkUserAgeWithDocomo(args.openIdRedirectUrl, args.standardAge, args.verifier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("checkUserAgeWithDocomo", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_retrieveOpenIdAuthUrlWithDocomo(self, seqid, iprot, oprot): args = retrieveOpenIdAuthUrlWithDocomo_args() args.read(iprot) iprot.readMessageEnd() result = retrieveOpenIdAuthUrlWithDocomo_result() try: result.success = self._handler.retrieveOpenIdAuthUrlWithDocomo() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("retrieveOpenIdAuthUrlWithDocomo", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_retrieveRequestToken(self, seqid, iprot, oprot): args = retrieveRequestToken_args() args.read(iprot) iprot.readMessageEnd() result = retrieveRequestToken_result() try: result.success = self._handler.retrieveRequestToken(args.carrier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("retrieveRequestToken", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_addBuddyMember(self, seqid, iprot, oprot): args = addBuddyMember_args() args.read(iprot) iprot.readMessageEnd() result = addBuddyMember_result() try: self._handler.addBuddyMember(args.requestId, args.userMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("addBuddyMember", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_addBuddyMembers(self, seqid, iprot, oprot): args = addBuddyMembers_args() args.read(iprot) iprot.readMessageEnd() result = addBuddyMembers_result() try: self._handler.addBuddyMembers(args.requestId, args.userMids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("addBuddyMembers", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_blockBuddyMember(self, seqid, iprot, oprot): args = blockBuddyMember_args() args.read(iprot) iprot.readMessageEnd() result = blockBuddyMember_result() try: self._handler.blockBuddyMember(args.requestId, args.mid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("blockBuddyMember", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_commitSendMessagesToAll(self, seqid, iprot, oprot): args = commitSendMessagesToAll_args() args.read(iprot) iprot.readMessageEnd() result = commitSendMessagesToAll_result() try: result.success = self._handler.commitSendMessagesToAll(args.requestIdList) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("commitSendMessagesToAll", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_commitSendMessagesTomids(self, seqid, iprot, oprot): args = commitSendMessagesTomids_args() args.read(iprot) iprot.readMessageEnd() result = commitSendMessagesTomids_result() try: result.success = self._handler.commitSendMessagesTomids(args.requestIdList, args.mids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("commitSendMessagesTomids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_containsBuddyMember(self, seqid, iprot, oprot): args = containsBuddyMember_args() args.read(iprot) iprot.readMessageEnd() result = containsBuddyMember_result() try: result.success = self._handler.containsBuddyMember(args.requestId, args.userMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("containsBuddyMember", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_downloadMessageContent(self, seqid, iprot, oprot): args = downloadMessageContent_args() args.read(iprot) iprot.readMessageEnd() result = downloadMessageContent_result() try: result.success = self._handler.downloadMessageContent(args.requestId, args.messageId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("downloadMessageContent", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_downloadMessageContentPreview(self, seqid, iprot, oprot): args = downloadMessageContentPreview_args() args.read(iprot) iprot.readMessageEnd() result = downloadMessageContentPreview_result() try: result.success = self._handler.downloadMessageContentPreview(args.requestId, args.messageId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("downloadMessageContentPreview", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_downloadProfileImage(self, seqid, iprot, oprot): args = downloadProfileImage_args() args.read(iprot) iprot.readMessageEnd() result = downloadProfileImage_result() try: result.success = self._handler.downloadProfileImage(args.requestId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("downloadProfileImage", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_downloadProfileImagePreview(self, seqid, iprot, oprot): args = downloadProfileImagePreview_args() args.read(iprot) iprot.readMessageEnd() result = downloadProfileImagePreview_result() try: result.success = self._handler.downloadProfileImagePreview(args.requestId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("downloadProfileImagePreview", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getActiveMemberCountByBuddyMid(self, seqid, iprot, oprot): args = getActiveMemberCountByBuddyMid_args() args.read(iprot) iprot.readMessageEnd() result = getActiveMemberCountByBuddyMid_result() try: result.success = self._handler.getActiveMemberCountByBuddyMid(args.buddyMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getActiveMemberCountByBuddyMid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getActiveMemberMidsByBuddyMid(self, seqid, iprot, oprot): args = getActiveMemberMidsByBuddyMid_args() args.read(iprot) iprot.readMessageEnd() result = getActiveMemberMidsByBuddyMid_result() try: result.success = self._handler.getActiveMemberMidsByBuddyMid(args.buddyMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getActiveMemberMidsByBuddyMid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getAllBuddyMembers(self, seqid, iprot, oprot): args = getAllBuddyMembers_args() args.read(iprot) iprot.readMessageEnd() result = getAllBuddyMembers_result() try: result.success = self._handler.getAllBuddyMembers() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getAllBuddyMembers", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBlockedBuddyMembers(self, seqid, iprot, oprot): args = getBlockedBuddyMembers_args() args.read(iprot) iprot.readMessageEnd() result = getBlockedBuddyMembers_result() try: result.success = self._handler.getBlockedBuddyMembers() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBlockedBuddyMembers", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBlockerCountByBuddyMid(self, seqid, iprot, oprot): args = getBlockerCountByBuddyMid_args() args.read(iprot) iprot.readMessageEnd() result = getBlockerCountByBuddyMid_result() try: result.success = self._handler.getBlockerCountByBuddyMid(args.buddyMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBlockerCountByBuddyMid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBuddyDetailByMid(self, seqid, iprot, oprot): args = getBuddyDetailByMid_args() args.read(iprot) iprot.readMessageEnd() result = getBuddyDetailByMid_result() try: result.success = self._handler.getBuddyDetailByMid(args.buddyMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBuddyDetailByMid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBuddyProfile(self, seqid, iprot, oprot): args = getBuddyProfile_args() args.read(iprot) iprot.readMessageEnd() result = getBuddyProfile_result() try: result.success = self._handler.getBuddyProfile() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBuddyProfile", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getContactTicket(self, seqid, iprot, oprot): args = getContactTicket_args() args.read(iprot) iprot.readMessageEnd() result = getContactTicket_result() try: result.success = self._handler.getContactTicket() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getContactTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMemberCountByBuddyMid(self, seqid, iprot, oprot): args = getMemberCountByBuddyMid_args() args.read(iprot) iprot.readMessageEnd() result = getMemberCountByBuddyMid_result() try: result.success = self._handler.getMemberCountByBuddyMid(args.buddyMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMemberCountByBuddyMid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getSendBuddyMessageResult(self, seqid, iprot, oprot): args = getSendBuddyMessageResult_args() args.read(iprot) iprot.readMessageEnd() result = getSendBuddyMessageResult_result() try: result.success = self._handler.getSendBuddyMessageResult(args.sendBuddyMessageRequestId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getSendBuddyMessageResult", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getSetBuddyOnAirResult(self, seqid, iprot, oprot): args = getSetBuddyOnAirResult_args() args.read(iprot) iprot.readMessageEnd() result = getSetBuddyOnAirResult_result() try: result.success = self._handler.getSetBuddyOnAirResult(args.setBuddyOnAirRequestId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getSetBuddyOnAirResult", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getUpdateBuddyProfileResult(self, seqid, iprot, oprot): args = getUpdateBuddyProfileResult_args() args.read(iprot) iprot.readMessageEnd() result = getUpdateBuddyProfileResult_result() try: result.success = self._handler.getUpdateBuddyProfileResult(args.updateBuddyProfileRequestId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getUpdateBuddyProfileResult", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_isBuddyOnAirByMid(self, seqid, iprot, oprot): args = isBuddyOnAirByMid_args() args.read(iprot) iprot.readMessageEnd() result = isBuddyOnAirByMid_result() try: result.success = self._handler.isBuddyOnAirByMid(args.buddyMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("isBuddyOnAirByMid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_linkAndSendBuddyContentMessageToAllAsync(self, seqid, iprot, oprot): args = linkAndSendBuddyContentMessageToAllAsync_args() args.read(iprot) iprot.readMessageEnd() result = linkAndSendBuddyContentMessageToAllAsync_result() try: result.success = self._handler.linkAndSendBuddyContentMessageToAllAsync(args.requestId, args.msg, args.sourceContentId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("linkAndSendBuddyContentMessageToAllAsync", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_linkAndSendBuddyContentMessageTomids(self, seqid, iprot, oprot): args = linkAndSendBuddyContentMessageTomids_args() args.read(iprot) iprot.readMessageEnd() result = linkAndSendBuddyContentMessageTomids_result() try: result.success = self._handler.linkAndSendBuddyContentMessageTomids(args.requestId, args.msg, args.sourceContentId, args.mids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("linkAndSendBuddyContentMessageTomids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifyBuddyBlocked(self, seqid, iprot, oprot): args = notifyBuddyBlocked_args() args.read(iprot) iprot.readMessageEnd() result = notifyBuddyBlocked_result() try: self._handler.notifyBuddyBlocked(args.buddyMid, args.blockerMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifyBuddyBlocked", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifyBuddyUnblocked(self, seqid, iprot, oprot): args = notifyBuddyUnblocked_args() args.read(iprot) iprot.readMessageEnd() result = notifyBuddyUnblocked_result() try: self._handler.notifyBuddyUnblocked(args.buddyMid, args.blockerMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifyBuddyUnblocked", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerBuddy(self, seqid, iprot, oprot): args = registerBuddy_args() args.read(iprot) iprot.readMessageEnd() result = registerBuddy_result() try: result.success = self._handler.registerBuddy(args.buddyId, args.searchId, args.displayName, args.statusMeessage, args.picture, args.settings) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerBuddy", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerBuddyAdmin(self, seqid, iprot, oprot): args = registerBuddyAdmin_args() args.read(iprot) iprot.readMessageEnd() result = registerBuddyAdmin_result() try: result.success = self._handler.registerBuddyAdmin(args.buddyId, args.searchId, args.displayName, args.statusMessage, args.picture) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerBuddyAdmin", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reissueContactTicket(self, seqid, iprot, oprot): args = reissueContactTicket_args() args.read(iprot) iprot.readMessageEnd() result = reissueContactTicket_result() try: result.success = self._handler.reissueContactTicket(args.expirationTime, args.maxUseCount) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reissueContactTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_removeBuddyMember(self, seqid, iprot, oprot): args = removeBuddyMember_args() args.read(iprot) iprot.readMessageEnd() result = removeBuddyMember_result() try: self._handler.removeBuddyMember(args.requestId, args.userMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("removeBuddyMember", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_removeBuddyMembers(self, seqid, iprot, oprot): args = removeBuddyMembers_args() args.read(iprot) iprot.readMessageEnd() result = removeBuddyMembers_result() try: self._handler.removeBuddyMembers(args.requestId, args.userMids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("removeBuddyMembers", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendBuddyContentMessageToAll(self, seqid, iprot, oprot): args = sendBuddyContentMessageToAll_args() args.read(iprot) iprot.readMessageEnd() result = sendBuddyContentMessageToAll_result() try: result.success = self._handler.sendBuddyContentMessageToAll(args.requestId, args.msg, args.content) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendBuddyContentMessageToAll", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendBuddyContentMessageToAllAsync(self, seqid, iprot, oprot): args = sendBuddyContentMessageToAllAsync_args() args.read(iprot) iprot.readMessageEnd() result = sendBuddyContentMessageToAllAsync_result() try: result.success = self._handler.sendBuddyContentMessageToAllAsync(args.requestId, args.msg, args.content) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendBuddyContentMessageToAllAsync", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendBuddyContentMessageTomids(self, seqid, iprot, oprot): args = sendBuddyContentMessageTomids_args() args.read(iprot) iprot.readMessageEnd() result = sendBuddyContentMessageTomids_result() try: result.success = self._handler.sendBuddyContentMessageTomids(args.requestId, args.msg, args.content, args.mids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendBuddyContentMessageTomids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendBuddyContentMessageTomidsAsync(self, seqid, iprot, oprot): args = sendBuddyContentMessageTomidsAsync_args() args.read(iprot) iprot.readMessageEnd() result = sendBuddyContentMessageTomidsAsync_result() try: result.success = self._handler.sendBuddyContentMessageTomidsAsync(args.requestId, args.msg, args.content, args.mids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendBuddyContentMessageTomidsAsync", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendBuddyMessageToAll(self, seqid, iprot, oprot): args = sendBuddyMessageToAll_args() args.read(iprot) iprot.readMessageEnd() result = sendBuddyMessageToAll_result() try: result.success = self._handler.sendBuddyMessageToAll(args.requestId, args.msg) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendBuddyMessageToAll", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendBuddyMessageToAllAsync(self, seqid, iprot, oprot): args = sendBuddyMessageToAllAsync_args() args.read(iprot) iprot.readMessageEnd() result = sendBuddyMessageToAllAsync_result() try: result.success = self._handler.sendBuddyMessageToAllAsync(args.requestId, args.msg) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendBuddyMessageToAllAsync", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendBuddyMessageTomids(self, seqid, iprot, oprot): args = sendBuddyMessageTomids_args() args.read(iprot) iprot.readMessageEnd() result = sendBuddyMessageTomids_result() try: result.success = self._handler.sendBuddyMessageTomids(args.requestId, args.msg, args.mids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendBuddyMessageTomids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendBuddyMessageTomidsAsync(self, seqid, iprot, oprot): args = sendBuddyMessageTomidsAsync_args() args.read(iprot) iprot.readMessageEnd() result = sendBuddyMessageTomidsAsync_result() try: result.success = self._handler.sendBuddyMessageTomidsAsync(args.requestId, args.msg, args.mids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendBuddyMessageTomidsAsync", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendIndividualEventToAllAsync(self, seqid, iprot, oprot): args = sendIndividualEventToAllAsync_args() args.read(iprot) iprot.readMessageEnd() result = sendIndividualEventToAllAsync_result() try: self._handler.sendIndividualEventToAllAsync(args.requestId, args.buddyMid, args.notificationStatus) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendIndividualEventToAllAsync", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_setBuddyOnAir(self, seqid, iprot, oprot): args = setBuddyOnAir_args() args.read(iprot) iprot.readMessageEnd() result = setBuddyOnAir_result() try: result.success = self._handler.setBuddyOnAir(args.requestId, args.onAir) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("setBuddyOnAir", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_setBuddyOnAirAsync(self, seqid, iprot, oprot): args = setBuddyOnAirAsync_args() args.read(iprot) iprot.readMessageEnd() result = setBuddyOnAirAsync_result() try: result.success = self._handler.setBuddyOnAirAsync(args.requestId, args.onAir) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("setBuddyOnAirAsync", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_storeMessage(self, seqid, iprot, oprot): args = storeMessage_args() args.read(iprot) iprot.readMessageEnd() result = storeMessage_result() try: result.success = self._handler.storeMessage(args.requestId, args.messageRequest) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("storeMessage", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_unblockBuddyMember(self, seqid, iprot, oprot): args = unblockBuddyMember_args() args.read(iprot) iprot.readMessageEnd() result = unblockBuddyMember_result() try: self._handler.unblockBuddyMember(args.requestId, args.mid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("unblockBuddyMember", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_unregisterBuddy(self, seqid, iprot, oprot): args = unregisterBuddy_args() args.read(iprot) iprot.readMessageEnd() result = unregisterBuddy_result() try: self._handler.unregisterBuddy(args.requestId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("unregisterBuddy", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_unregisterBuddyAdmin(self, seqid, iprot, oprot): args = unregisterBuddyAdmin_args() args.read(iprot) iprot.readMessageEnd() result = unregisterBuddyAdmin_result() try: self._handler.unregisterBuddyAdmin(args.requestId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("unregisterBuddyAdmin", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateBuddyAdminProfileAttribute(self, seqid, iprot, oprot): args = updateBuddyAdminProfileAttribute_args() args.read(iprot) iprot.readMessageEnd() result = updateBuddyAdminProfileAttribute_result() try: self._handler.updateBuddyAdminProfileAttribute(args.requestId, args.attributes) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateBuddyAdminProfileAttribute", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateBuddyAdminProfileImage(self, seqid, iprot, oprot): args = updateBuddyAdminProfileImage_args() args.read(iprot) iprot.readMessageEnd() result = updateBuddyAdminProfileImage_result() try: self._handler.updateBuddyAdminProfileImage(args.requestId, args.picture) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateBuddyAdminProfileImage", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateBuddyProfileAttributes(self, seqid, iprot, oprot): args = updateBuddyProfileAttributes_args() args.read(iprot) iprot.readMessageEnd() result = updateBuddyProfileAttributes_result() try: result.success = self._handler.updateBuddyProfileAttributes(args.requestId, args.attributes) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateBuddyProfileAttributes", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateBuddyProfileAttributesAsync(self, seqid, iprot, oprot): args = updateBuddyProfileAttributesAsync_args() args.read(iprot) iprot.readMessageEnd() result = updateBuddyProfileAttributesAsync_result() try: result.success = self._handler.updateBuddyProfileAttributesAsync(args.requestId, args.attributes) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateBuddyProfileAttributesAsync", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateBuddyProfileImage(self, seqid, iprot, oprot): args = updateBuddyProfileImage_args() args.read(iprot) iprot.readMessageEnd() result = updateBuddyProfileImage_result() try: result.success = self._handler.updateBuddyProfileImage(args.requestId, args.image) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateBuddyProfileImage", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateBuddyProfileImageAsync(self, seqid, iprot, oprot): args = updateBuddyProfileImageAsync_args() args.read(iprot) iprot.readMessageEnd() result = updateBuddyProfileImageAsync_result() try: result.success = self._handler.updateBuddyProfileImageAsync(args.requestId, args.image) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateBuddyProfileImageAsync", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateBuddySearchId(self, seqid, iprot, oprot): args = updateBuddySearchId_args() args.read(iprot) iprot.readMessageEnd() result = updateBuddySearchId_result() try: self._handler.updateBuddySearchId(args.requestId, args.searchId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateBuddySearchId", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateBuddySettings(self, seqid, iprot, oprot): args = updateBuddySettings_args() args.read(iprot) iprot.readMessageEnd() result = updateBuddySettings_result() try: self._handler.updateBuddySettings(args.settings) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateBuddySettings", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_uploadBuddyContent(self, seqid, iprot, oprot): args = uploadBuddyContent_args() args.read(iprot) iprot.readMessageEnd() result = uploadBuddyContent_result() try: result.success = self._handler.uploadBuddyContent(args.contentType, args.content) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("uploadBuddyContent", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findBuddyContactsByQuery(self, seqid, iprot, oprot): args = findBuddyContactsByQuery_args() args.read(iprot) iprot.readMessageEnd() result = findBuddyContactsByQuery_result() try: result.success = self._handler.findBuddyContactsByQuery(args.language, args.country, args.query, args.fromIndex, args.count, args.requestSource) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findBuddyContactsByQuery", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBuddyContacts(self, seqid, iprot, oprot): args = getBuddyContacts_args() args.read(iprot) iprot.readMessageEnd() result = getBuddyContacts_result() try: result.success = self._handler.getBuddyContacts(args.language, args.country, args.classification, args.fromIndex, args.count) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBuddyContacts", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBuddyDetail(self, seqid, iprot, oprot): args = getBuddyDetail_args() args.read(iprot) iprot.readMessageEnd() result = getBuddyDetail_result() try: result.success = self._handler.getBuddyDetail(args.buddyMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBuddyDetail", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBuddyOnAir(self, seqid, iprot, oprot): args = getBuddyOnAir_args() args.read(iprot) iprot.readMessageEnd() result = getBuddyOnAir_result() try: result.success = self._handler.getBuddyOnAir(args.buddyMid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBuddyOnAir", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getCountriesHavingBuddy(self, seqid, iprot, oprot): args = getCountriesHavingBuddy_args() args.read(iprot) iprot.readMessageEnd() result = getCountriesHavingBuddy_result() try: result.success = self._handler.getCountriesHavingBuddy() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCountriesHavingBuddy", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getNewlyReleasedBuddyIds(self, seqid, iprot, oprot): args = getNewlyReleasedBuddyIds_args() args.read(iprot) iprot.readMessageEnd() result = getNewlyReleasedBuddyIds_result() try: result.success = self._handler.getNewlyReleasedBuddyIds(args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getNewlyReleasedBuddyIds", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getPopularBuddyBanner(self, seqid, iprot, oprot): args = getPopularBuddyBanner_args() args.read(iprot) iprot.readMessageEnd() result = getPopularBuddyBanner_result() try: result.success = self._handler.getPopularBuddyBanner(args.language, args.country, args.applicationType, args.resourceSpecification) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getPopularBuddyBanner", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getPopularBuddyLists(self, seqid, iprot, oprot): args = getPopularBuddyLists_args() args.read(iprot) iprot.readMessageEnd() result = getPopularBuddyLists_result() try: result.success = self._handler.getPopularBuddyLists(args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getPopularBuddyLists", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getPromotedBuddyContacts(self, seqid, iprot, oprot): args = getPromotedBuddyContacts_args() args.read(iprot) iprot.readMessageEnd() result = getPromotedBuddyContacts_result() try: result.success = self._handler.getPromotedBuddyContacts(args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getPromotedBuddyContacts", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_activeBuddySubscriberCount(self, seqid, iprot, oprot): args = activeBuddySubscriberCount_args() args.read(iprot) iprot.readMessageEnd() result = activeBuddySubscriberCount_result() try: result.success = self._handler.activeBuddySubscriberCount() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("activeBuddySubscriberCount", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_addOperationForChannel(self, seqid, iprot, oprot): args = addOperationForChannel_args() args.read(iprot) iprot.readMessageEnd() result = addOperationForChannel_result() try: self._handler.addOperationForChannel(args.opType, args.param1, args.param2, args.param3) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("addOperationForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_displayBuddySubscriberCount(self, seqid, iprot, oprot): args = displayBuddySubscriberCount_args() args.read(iprot) iprot.readMessageEnd() result = displayBuddySubscriberCount_result() try: result.success = self._handler.displayBuddySubscriberCount() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("displayBuddySubscriberCount", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findContactByUseridWithoutAbuseBlockForChannel(self, seqid, iprot, oprot): args = findContactByUseridWithoutAbuseBlockForChannel_args() args.read(iprot) iprot.readMessageEnd() result = findContactByUseridWithoutAbuseBlockForChannel_result() try: result.success = self._handler.findContactByUseridWithoutAbuseBlockForChannel(args.userid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findContactByUseridWithoutAbuseBlockForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getAllContactIdsForChannel(self, seqid, iprot, oprot): args = getAllContactIdsForChannel_args() args.read(iprot) iprot.readMessageEnd() result = getAllContactIdsForChannel_result() try: result.success = self._handler.getAllContactIdsForChannel() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getAllContactIdsForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getCompactContacts(self, seqid, iprot, oprot): args = getCompactContacts_args() args.read(iprot) iprot.readMessageEnd() result = getCompactContacts_result() try: result.success = self._handler.getCompactContacts(args.lastModifiedTimestamp) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCompactContacts", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getContactsForChannel(self, seqid, iprot, oprot): args = getContactsForChannel_args() args.read(iprot) iprot.readMessageEnd() result = getContactsForChannel_result() try: result.success = self._handler.getContactsForChannel(args.ids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getContactsForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getDisplayName(self, seqid, iprot, oprot): args = getDisplayName_args() args.read(iprot) iprot.readMessageEnd() result = getDisplayName_result() try: result.success = self._handler.getDisplayName(args.mid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getDisplayName", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getFavoriteMidsForChannel(self, seqid, iprot, oprot): args = getFavoriteMidsForChannel_args() args.read(iprot) iprot.readMessageEnd() result = getFavoriteMidsForChannel_result() try: result.success = self._handler.getFavoriteMidsForChannel() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getFavoriteMidsForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getFriendMids(self, seqid, iprot, oprot): args = getFriendMids_args() args.read(iprot) iprot.readMessageEnd() result = getFriendMids_result() try: result.success = self._handler.getFriendMids() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getFriendMids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getGroupMemberMids(self, seqid, iprot, oprot): args = getGroupMemberMids_args() args.read(iprot) iprot.readMessageEnd() result = getGroupMemberMids_result() try: result.success = self._handler.getGroupMemberMids(args.groupId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getGroupMemberMids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getGroupsForChannel(self, seqid, iprot, oprot): args = getGroupsForChannel_args() args.read(iprot) iprot.readMessageEnd() result = getGroupsForChannel_result() try: result.success = self._handler.getGroupsForChannel(args.groupIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getGroupsForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getIdentityCredential(self, seqid, iprot, oprot): args = getIdentityCredential_args() args.read(iprot) iprot.readMessageEnd() result = getIdentityCredential_result() try: result.success = self._handler.getIdentityCredential() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getIdentityCredential", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getJoinedGroupIdsForChannel(self, seqid, iprot, oprot): args = getJoinedGroupIdsForChannel_args() args.read(iprot) iprot.readMessageEnd() result = getJoinedGroupIdsForChannel_result() try: result.success = self._handler.getJoinedGroupIdsForChannel() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getJoinedGroupIdsForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMetaProfile(self, seqid, iprot, oprot): args = getMetaProfile_args() args.read(iprot) iprot.readMessageEnd() result = getMetaProfile_result() try: result.success = self._handler.getMetaProfile() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMetaProfile", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMid(self, seqid, iprot, oprot): args = getMid_args() args.read(iprot) iprot.readMessageEnd() result = getMid_result() try: result.success = self._handler.getMid() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getPrimaryClientForChannel(self, seqid, iprot, oprot): args = getPrimaryClientForChannel_args() args.read(iprot) iprot.readMessageEnd() result = getPrimaryClientForChannel_result() try: result.success = self._handler.getPrimaryClientForChannel() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getPrimaryClientForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getProfileForChannel(self, seqid, iprot, oprot): args = getProfileForChannel_args() args.read(iprot) iprot.readMessageEnd() result = getProfileForChannel_result() try: result.success = self._handler.getProfileForChannel() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getProfileForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getSimpleChannelContacts(self, seqid, iprot, oprot): args = getSimpleChannelContacts_args() args.read(iprot) iprot.readMessageEnd() result = getSimpleChannelContacts_result() try: result.success = self._handler.getSimpleChannelContacts(args.ids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getSimpleChannelContacts", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getUserCountryForBilling(self, seqid, iprot, oprot): args = getUserCountryForBilling_args() args.read(iprot) iprot.readMessageEnd() result = getUserCountryForBilling_result() try: result.success = self._handler.getUserCountryForBilling(args.country, args.remoteIp) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getUserCountryForBilling", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getUserCreateTime(self, seqid, iprot, oprot): args = getUserCreateTime_args() args.read(iprot) iprot.readMessageEnd() result = getUserCreateTime_result() try: result.success = self._handler.getUserCreateTime() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getUserCreateTime", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getUserIdentities(self, seqid, iprot, oprot): args = getUserIdentities_args() args.read(iprot) iprot.readMessageEnd() result = getUserIdentities_result() try: result.success = self._handler.getUserIdentities() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getUserIdentities", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getUserLanguage(self, seqid, iprot, oprot): args = getUserLanguage_args() args.read(iprot) iprot.readMessageEnd() result = getUserLanguage_result() try: result.success = self._handler.getUserLanguage() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getUserLanguage", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getUserMidsWhoAddedMe(self, seqid, iprot, oprot): args = getUserMidsWhoAddedMe_args() args.read(iprot) iprot.readMessageEnd() result = getUserMidsWhoAddedMe_result() try: result.success = self._handler.getUserMidsWhoAddedMe() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getUserMidsWhoAddedMe", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_isGroupMember(self, seqid, iprot, oprot): args = isGroupMember_args() args.read(iprot) iprot.readMessageEnd() result = isGroupMember_result() try: result.success = self._handler.isGroupMember(args.groupId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("isGroupMember", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_isInContact(self, seqid, iprot, oprot): args = isInContact_args() args.read(iprot) iprot.readMessageEnd() result = isInContact_result() try: result.success = self._handler.isInContact(args.mid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("isInContact", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerChannelCP(self, seqid, iprot, oprot): args = registerChannelCP_args() args.read(iprot) iprot.readMessageEnd() result = registerChannelCP_result() try: result.success = self._handler.registerChannelCP(args.cpId, args.registerPassword) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerChannelCP", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_removeNotificationStatus(self, seqid, iprot, oprot): args = removeNotificationStatus_args() args.read(iprot) iprot.readMessageEnd() result = removeNotificationStatus_result() try: self._handler.removeNotificationStatus(args.notificationStatus) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("removeNotificationStatus", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendMessageForChannel(self, seqid, iprot, oprot): args = sendMessageForChannel_args() args.read(iprot) iprot.readMessageEnd() result = sendMessageForChannel_result() try: result.success = self._handler.sendMessageForChannel(args.message) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendMessageForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendPinCodeOperation(self, seqid, iprot, oprot): args = sendPinCodeOperation_args() args.read(iprot) iprot.readMessageEnd() result = sendPinCodeOperation_result() try: self._handler.sendPinCodeOperation(args.verifier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendPinCodeOperation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateProfileAttributeForChannel(self, seqid, iprot, oprot): args = updateProfileAttributeForChannel_args() args.read(iprot) iprot.readMessageEnd() result = updateProfileAttributeForChannel_result() try: self._handler.updateProfileAttributeForChannel(args.profileAttribute, args.value) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateProfileAttributeForChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_approveChannelAndIssueChannelToken(self, seqid, iprot, oprot): args = approveChannelAndIssueChannelToken_args() args.read(iprot) iprot.readMessageEnd() result = approveChannelAndIssueChannelToken_result() try: result.success = self._handler.approveChannelAndIssueChannelToken(args.channelId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("approveChannelAndIssueChannelToken", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_approveChannelAndIssueRequestToken(self, seqid, iprot, oprot): args = approveChannelAndIssueRequestToken_args() args.read(iprot) iprot.readMessageEnd() result = approveChannelAndIssueRequestToken_result() try: result.success = self._handler.approveChannelAndIssueRequestToken(args.channelId, args.otpId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("approveChannelAndIssueRequestToken", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_fetchNotificationItems(self, seqid, iprot, oprot): args = fetchNotificationItems_args() args.read(iprot) iprot.readMessageEnd() result = fetchNotificationItems_result() try: result.success = self._handler.fetchNotificationItems(args.localRev) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("fetchNotificationItems", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getApprovedChannels(self, seqid, iprot, oprot): args = getApprovedChannels_args() args.read(iprot) iprot.readMessageEnd() result = getApprovedChannels_result() try: result.success = self._handler.getApprovedChannels(args.lastSynced, args.locale) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getApprovedChannels", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getChannelInfo(self, seqid, iprot, oprot): args = getChannelInfo_args() args.read(iprot) iprot.readMessageEnd() result = getChannelInfo_result() try: result.success = self._handler.getChannelInfo(args.channelId, args.locale) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getChannelInfo", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getChannelNotificationSetting(self, seqid, iprot, oprot): args = getChannelNotificationSetting_args() args.read(iprot) iprot.readMessageEnd() result = getChannelNotificationSetting_result() try: result.success = self._handler.getChannelNotificationSetting(args.channelId, args.locale) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getChannelNotificationSetting", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getChannelNotificationSettings(self, seqid, iprot, oprot): args = getChannelNotificationSettings_args() args.read(iprot) iprot.readMessageEnd() result = getChannelNotificationSettings_result() try: result.success = self._handler.getChannelNotificationSettings(args.locale) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getChannelNotificationSettings", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getChannels(self, seqid, iprot, oprot): args = getChannels_args() args.read(iprot) iprot.readMessageEnd() result = getChannels_result() try: result.success = self._handler.getChannels(args.lastSynced, args.locale) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getChannels", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getDomains(self, seqid, iprot, oprot): args = getDomains_args() args.read(iprot) iprot.readMessageEnd() result = getDomains_result() try: result.success = self._handler.getDomains(args.lastSynced) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getDomains", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getFriendChannelMatrices(self, seqid, iprot, oprot): args = getFriendChannelMatrices_args() args.read(iprot) iprot.readMessageEnd() result = getFriendChannelMatrices_result() try: result.success = self._handler.getFriendChannelMatrices(args.channelIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getFriendChannelMatrices", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getNotificationBadgeCount(self, seqid, iprot, oprot): args = getNotificationBadgeCount_args() args.read(iprot) iprot.readMessageEnd() result = getNotificationBadgeCount_result() try: result.success = self._handler.getNotificationBadgeCount(args.localRev) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getNotificationBadgeCount", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_issueChannelToken(self, seqid, iprot, oprot): args = issueChannelToken_args() args.read(iprot) iprot.readMessageEnd() result = issueChannelToken_result() try: result.success = self._handler.issueChannelToken(args.channelId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("issueChannelToken", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_issueRequestToken(self, seqid, iprot, oprot): args = issueRequestToken_args() args.read(iprot) iprot.readMessageEnd() result = issueRequestToken_result() try: result.success = self._handler.issueRequestToken(args.channelId, args.otpId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("issueRequestToken", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_issueRequestTokenWithAuthScheme(self, seqid, iprot, oprot): args = issueRequestTokenWithAuthScheme_args() args.read(iprot) iprot.readMessageEnd() result = issueRequestTokenWithAuthScheme_result() try: result.success = self._handler.issueRequestTokenWithAuthScheme(args.channelId, args.otpId, args.authScheme, args.returnUrl) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("issueRequestTokenWithAuthScheme", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reserveCoinUse(self, seqid, iprot, oprot): args = reserveCoinUse_args() args.read(iprot) iprot.readMessageEnd() result = reserveCoinUse_result() try: result.success = self._handler.reserveCoinUse(args.request, args.locale) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reserveCoinUse", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_revokeChannel(self, seqid, iprot, oprot): args = revokeChannel_args() args.read(iprot) iprot.readMessageEnd() result = revokeChannel_result() try: self._handler.revokeChannel(args.channelId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("revokeChannel", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_syncChannelData(self, seqid, iprot, oprot): args = syncChannelData_args() args.read(iprot) iprot.readMessageEnd() result = syncChannelData_result() try: result.success = self._handler.syncChannelData(args.lastSynced, args.locale) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("syncChannelData", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateChannelNotificationSetting(self, seqid, iprot, oprot): args = updateChannelNotificationSetting_args() args.read(iprot) iprot.readMessageEnd() result = updateChannelNotificationSetting_result() try: self._handler.updateChannelNotificationSetting(args.setting) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except ChannelException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateChannelNotificationSetting", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_fetchMessageOperations(self, seqid, iprot, oprot): args = fetchMessageOperations_args() args.read(iprot) iprot.readMessageEnd() result = fetchMessageOperations_result() try: result.success = self._handler.fetchMessageOperations(args.localRevision, args.lastOpTimestamp, args.count) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("fetchMessageOperations", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getLastReadMessageIds(self, seqid, iprot, oprot): args = getLastReadMessageIds_args() args.read(iprot) iprot.readMessageEnd() result = getLastReadMessageIds_result() try: result.success = self._handler.getLastReadMessageIds(args.chatId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getLastReadMessageIds", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_multiGetLastReadMessageIds(self, seqid, iprot, oprot): args = multiGetLastReadMessageIds_args() args.read(iprot) iprot.readMessageEnd() result = multiGetLastReadMessageIds_result() try: result.success = self._handler.multiGetLastReadMessageIds(args.chatIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("multiGetLastReadMessageIds", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_buyCoinProduct(self, seqid, iprot, oprot): args = buyCoinProduct_args() args.read(iprot) iprot.readMessageEnd() result = buyCoinProduct_result() try: self._handler.buyCoinProduct(args.paymentReservation) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("buyCoinProduct", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_buyFreeProduct(self, seqid, iprot, oprot): args = buyFreeProduct_args() args.read(iprot) iprot.readMessageEnd() result = buyFreeProduct_result() try: self._handler.buyFreeProduct(args.receiverMid, args.productId, args.messageTemplate, args.language, args.country, args.packageId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("buyFreeProduct", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_buyMustbuyProduct(self, seqid, iprot, oprot): args = buyMustbuyProduct_args() args.read(iprot) iprot.readMessageEnd() result = buyMustbuyProduct_result() try: self._handler.buyMustbuyProduct(args.receiverMid, args.productId, args.messageTemplate, args.language, args.country, args.packageId, args.serialNumber) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("buyMustbuyProduct", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_checkCanReceivePresent(self, seqid, iprot, oprot): args = checkCanReceivePresent_args() args.read(iprot) iprot.readMessageEnd() result = checkCanReceivePresent_result() try: self._handler.checkCanReceivePresent(args.recipientMid, args.packageId, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("checkCanReceivePresent", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getActivePurchases(self, seqid, iprot, oprot): args = getActivePurchases_args() args.read(iprot) iprot.readMessageEnd() result = getActivePurchases_result() try: result.success = self._handler.getActivePurchases(args.start, args.size, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getActivePurchases", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getActivePurchaseVersions(self, seqid, iprot, oprot): args = getActivePurchaseVersions_args() args.read(iprot) iprot.readMessageEnd() result = getActivePurchaseVersions_result() try: result.success = self._handler.getActivePurchaseVersions(args.start, args.size, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getActivePurchaseVersions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getCoinProducts(self, seqid, iprot, oprot): args = getCoinProducts_args() args.read(iprot) iprot.readMessageEnd() result = getCoinProducts_result() try: result.success = self._handler.getCoinProducts(args.appStoreCode, args.country, args.language) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCoinProducts", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getCoinProductsByPgCode(self, seqid, iprot, oprot): args = getCoinProductsByPgCode_args() args.read(iprot) iprot.readMessageEnd() result = getCoinProductsByPgCode_result() try: result.success = self._handler.getCoinProductsByPgCode(args.appStoreCode, args.pgCode, args.country, args.language) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCoinProductsByPgCode", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getCoinPurchaseHistory(self, seqid, iprot, oprot): args = getCoinPurchaseHistory_args() args.read(iprot) iprot.readMessageEnd() result = getCoinPurchaseHistory_result() try: result.success = self._handler.getCoinPurchaseHistory(args.request) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCoinPurchaseHistory", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getCoinUseAndRefundHistory(self, seqid, iprot, oprot): args = getCoinUseAndRefundHistory_args() args.read(iprot) iprot.readMessageEnd() result = getCoinUseAndRefundHistory_result() try: result.success = self._handler.getCoinUseAndRefundHistory(args.request) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCoinUseAndRefundHistory", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getDownloads(self, seqid, iprot, oprot): args = getDownloads_args() args.read(iprot) iprot.readMessageEnd() result = getDownloads_result() try: result.success = self._handler.getDownloads(args.start, args.size, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getDownloads", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getEventPackages(self, seqid, iprot, oprot): args = getEventPackages_args() args.read(iprot) iprot.readMessageEnd() result = getEventPackages_result() try: result.success = self._handler.getEventPackages(args.start, args.size, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getEventPackages", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getNewlyReleasedPackages(self, seqid, iprot, oprot): args = getNewlyReleasedPackages_args() args.read(iprot) iprot.readMessageEnd() result = getNewlyReleasedPackages_result() try: result.success = self._handler.getNewlyReleasedPackages(args.start, args.size, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getNewlyReleasedPackages", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getPopularPackages(self, seqid, iprot, oprot): args = getPopularPackages_args() args.read(iprot) iprot.readMessageEnd() result = getPopularPackages_result() try: result.success = self._handler.getPopularPackages(args.start, args.size, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getPopularPackages", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getPresentsReceived(self, seqid, iprot, oprot): args = getPresentsReceived_args() args.read(iprot) iprot.readMessageEnd() result = getPresentsReceived_result() try: result.success = self._handler.getPresentsReceived(args.start, args.size, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getPresentsReceived", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getPresentsSent(self, seqid, iprot, oprot): args = getPresentsSent_args() args.read(iprot) iprot.readMessageEnd() result = getPresentsSent_result() try: result.success = self._handler.getPresentsSent(args.start, args.size, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getPresentsSent", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getProduct(self, seqid, iprot, oprot): args = getProduct_args() args.read(iprot) iprot.readMessageEnd() result = getProduct_result() try: result.success = self._handler.getProduct(args.packageID, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getProduct", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getProductList(self, seqid, iprot, oprot): args = getProductList_args() args.read(iprot) iprot.readMessageEnd() result = getProductList_result() try: result.success = self._handler.getProductList(args.productIdList, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getProductList", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getProductListWithCarrier(self, seqid, iprot, oprot): args = getProductListWithCarrier_args() args.read(iprot) iprot.readMessageEnd() result = getProductListWithCarrier_result() try: result.success = self._handler.getProductListWithCarrier(args.productIdList, args.language, args.country, args.carrierCode) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getProductListWithCarrier", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getProductWithCarrier(self, seqid, iprot, oprot): args = getProductWithCarrier_args() args.read(iprot) iprot.readMessageEnd() result = getProductWithCarrier_result() try: result.success = self._handler.getProductWithCarrier(args.packageID, args.language, args.country, args.carrierCode) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getProductWithCarrier", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getPurchaseHistory(self, seqid, iprot, oprot): args = getPurchaseHistory_args() args.read(iprot) iprot.readMessageEnd() result = getPurchaseHistory_result() try: result.success = self._handler.getPurchaseHistory(args.start, args.size, args.language, args.country) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getPurchaseHistory", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getTotalBalance(self, seqid, iprot, oprot): args = getTotalBalance_args() args.read(iprot) iprot.readMessageEnd() result = getTotalBalance_result() try: result.success = self._handler.getTotalBalance(args.appStoreCode) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getTotalBalance", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifyDownloaded(self, seqid, iprot, oprot): args = notifyDownloaded_args() args.read(iprot) iprot.readMessageEnd() result = notifyDownloaded_result() try: result.success = self._handler.notifyDownloaded(args.packageId, args.language) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifyDownloaded", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reserveCoinPurchase(self, seqid, iprot, oprot): args = reserveCoinPurchase_args() args.read(iprot) iprot.readMessageEnd() result = reserveCoinPurchase_result() try: result.success = self._handler.reserveCoinPurchase(args.request) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reserveCoinPurchase", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reservePayment(self, seqid, iprot, oprot): args = reservePayment_args() args.read(iprot) iprot.readMessageEnd() result = reservePayment_result() try: result.success = self._handler.reservePayment(args.paymentReservation) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reservePayment", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getSnsFriends(self, seqid, iprot, oprot): args = getSnsFriends_args() args.read(iprot) iprot.readMessageEnd() result = getSnsFriends_result() try: result.success = self._handler.getSnsFriends(args.snsIdType, args.snsAccessToken, args.startIdx, args.limit) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getSnsFriends", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getSnsMyProfile(self, seqid, iprot, oprot): args = getSnsMyProfile_args() args.read(iprot) iprot.readMessageEnd() result = getSnsMyProfile_result() try: result.success = self._handler.getSnsMyProfile(args.snsIdType, args.snsAccessToken) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getSnsMyProfile", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_postSnsInvitationMessage(self, seqid, iprot, oprot): args = postSnsInvitationMessage_args() args.read(iprot) iprot.readMessageEnd() result = postSnsInvitationMessage_result() try: self._handler.postSnsInvitationMessage(args.snsIdType, args.snsAccessToken, args.toSnsUserId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("postSnsInvitationMessage", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_acceptGroupInvitation(self, seqid, iprot, oprot): args = acceptGroupInvitation_args() args.read(iprot) iprot.readMessageEnd() result = acceptGroupInvitation_result() try: self._handler.acceptGroupInvitation(args.reqSeq, args.groupId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("acceptGroupInvitation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_acceptGroupInvitationByTicket(self, seqid, iprot, oprot): args = acceptGroupInvitationByTicket_args() args.read(iprot) iprot.readMessageEnd() result = acceptGroupInvitationByTicket_result() try: self._handler.acceptGroupInvitationByTicket(args.reqSeq, args.groupId, args.ticketId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("acceptGroupInvitationByTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_acceptProximityMatches(self, seqid, iprot, oprot): args = acceptProximityMatches_args() args.read(iprot) iprot.readMessageEnd() result = acceptProximityMatches_result() try: self._handler.acceptProximityMatches(args.sessionId, args.ids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("acceptProximityMatches", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_acquireCallRoute(self, seqid, iprot, oprot): args = acquireCallRoute_args() args.read(iprot) iprot.readMessageEnd() result = acquireCallRoute_result() try: result.success = self._handler.acquireCallRoute(args.to) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("acquireCallRoute", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_acquireCallTicket(self, seqid, iprot, oprot): args = acquireCallTicket_args() args.read(iprot) iprot.readMessageEnd() result = acquireCallTicket_result() try: result.success = self._handler.acquireCallTicket(args.to) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("acquireCallTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_acquireEncryptedAccessToken(self, seqid, iprot, oprot): args = acquireEncryptedAccessToken_args() args.read(iprot) iprot.readMessageEnd() result = acquireEncryptedAccessToken_result() try: result.success = self._handler.acquireEncryptedAccessToken(args.featureType) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("acquireEncryptedAccessToken", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_addSnsId(self, seqid, iprot, oprot): args = addSnsId_args() args.read(iprot) iprot.readMessageEnd() result = addSnsId_result() try: result.success = self._handler.addSnsId(args.snsIdType, args.snsAccessToken) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("addSnsId", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_blockContact(self, seqid, iprot, oprot): args = blockContact_args() args.read(iprot) iprot.readMessageEnd() result = blockContact_result() try: self._handler.blockContact(args.reqSeq, args.id) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("blockContact", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_blockRecommendation(self, seqid, iprot, oprot): args = blockRecommendation_args() args.read(iprot) iprot.readMessageEnd() result = blockRecommendation_result() try: self._handler.blockRecommendation(args.reqSeq, args.id) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("blockRecommendation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_cancelGroupInvitation(self, seqid, iprot, oprot): args = cancelGroupInvitation_args() args.read(iprot) iprot.readMessageEnd() result = cancelGroupInvitation_result() try: self._handler.cancelGroupInvitation(args.reqSeq, args.groupId, args.contactIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("cancelGroupInvitation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_changeVerificationMethod(self, seqid, iprot, oprot): args = changeVerificationMethod_args() args.read(iprot) iprot.readMessageEnd() result = changeVerificationMethod_result() try: result.success = self._handler.changeVerificationMethod(args.sessionId, args.method) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("changeVerificationMethod", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_clearIdentityCredential(self, seqid, iprot, oprot): args = clearIdentityCredential_args() args.read(iprot) iprot.readMessageEnd() result = clearIdentityCredential_result() try: self._handler.clearIdentityCredential() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("clearIdentityCredential", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_clearMessageBox(self, seqid, iprot, oprot): args = clearMessageBox_args() args.read(iprot) iprot.readMessageEnd() result = clearMessageBox_result() try: self._handler.clearMessageBox(args.channelId, args.messageBoxId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("clearMessageBox", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_closeProximityMatch(self, seqid, iprot, oprot): args = closeProximityMatch_args() args.read(iprot) iprot.readMessageEnd() result = closeProximityMatch_result() try: self._handler.closeProximityMatch(args.sessionId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("closeProximityMatch", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_commitSendMessage(self, seqid, iprot, oprot): args = commitSendMessage_args() args.read(iprot) iprot.readMessageEnd() result = commitSendMessage_result() try: result.success = self._handler.commitSendMessage(args.seq, args.messageId, args.receiverMids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("commitSendMessage", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_commitSendMessages(self, seqid, iprot, oprot): args = commitSendMessages_args() args.read(iprot) iprot.readMessageEnd() result = commitSendMessages_result() try: result.success = self._handler.commitSendMessages(args.seq, args.messageIds, args.receiverMids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("commitSendMessages", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_commitUpdateProfile(self, seqid, iprot, oprot): args = commitUpdateProfile_args() args.read(iprot) iprot.readMessageEnd() result = commitUpdateProfile_result() try: result.success = self._handler.commitUpdateProfile(args.seq, args.attrs, args.receiverMids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("commitUpdateProfile", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_confirmEmail(self, seqid, iprot, oprot): args = confirmEmail_args() args.read(iprot) iprot.readMessageEnd() result = confirmEmail_result() try: self._handler.confirmEmail(args.verifier, args.pinCode) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("confirmEmail", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_createGroup(self, seqid, iprot, oprot): args = createGroup_args() args.read(iprot) iprot.readMessageEnd() result = createGroup_result() try: result.success = self._handler.createGroup(args.seq, args.name, args.contactIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("createGroup", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_createQrcodeBase64Image(self, seqid, iprot, oprot): args = createQrcodeBase64Image_args() args.read(iprot) iprot.readMessageEnd() result = createQrcodeBase64Image_result() try: result.success = self._handler.createQrcodeBase64Image(args.url, args.characterSet, args.imageSize, args.x, args.y, args.width, args.height) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("createQrcodeBase64Image", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_createRoom(self, seqid, iprot, oprot): args = createRoom_args() args.read(iprot) iprot.readMessageEnd() result = createRoom_result() try: result.success = self._handler.createRoom(args.reqSeq, args.contactIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("createRoom", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_createSession(self, seqid, iprot, oprot): args = createSession_args() args.read(iprot) iprot.readMessageEnd() result = createSession_result() try: result.success = self._handler.createSession() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("createSession", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_fetchAnnouncements(self, seqid, iprot, oprot): args = fetchAnnouncements_args() args.read(iprot) iprot.readMessageEnd() result = fetchAnnouncements_result() try: result.success = self._handler.fetchAnnouncements(args.lastFetchedIndex) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("fetchAnnouncements", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_fetchMessages(self, seqid, iprot, oprot): args = fetchMessages_args() args.read(iprot) iprot.readMessageEnd() result = fetchMessages_result() try: result.success = self._handler.fetchMessages(args.localTs, args.count) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("fetchMessages", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_fetchOperations(self, seqid, iprot, oprot): args = fetchOperations_args() args.read(iprot) iprot.readMessageEnd() result = fetchOperations_result() try: result.success = self._handler.fetchOperations(args.localRev, args.count) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("fetchOperations", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_fetchOps(self, seqid, iprot, oprot): args = fetchOps_args() args.read(iprot) iprot.readMessageEnd() result = fetchOps_result() try: result.success = self._handler.fetchOps(args.localRev, args.count, args.globalRev, args.individualRev) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("fetchOps", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findAndAddContactsByEmail(self, seqid, iprot, oprot): args = findAndAddContactsByEmail_args() args.read(iprot) iprot.readMessageEnd() result = findAndAddContactsByEmail_result() try: result.success = self._handler.findAndAddContactsByEmail(args.reqSeq, args.emails) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findAndAddContactsByEmail", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findAndAddContactsByMid(self, seqid, iprot, oprot): args = findAndAddContactsByMid_args() args.read(iprot) iprot.readMessageEnd() result = findAndAddContactsByMid_result() try: result.success = self._handler.findAndAddContactsByMid(args.reqSeq, args.mid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findAndAddContactsByMid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findAndAddContactsByPhone(self, seqid, iprot, oprot): args = findAndAddContactsByPhone_args() args.read(iprot) iprot.readMessageEnd() result = findAndAddContactsByPhone_result() try: result.success = self._handler.findAndAddContactsByPhone(args.reqSeq, args.phones) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findAndAddContactsByPhone", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findAndAddContactsByUserid(self, seqid, iprot, oprot): args = findAndAddContactsByUserid_args() args.read(iprot) iprot.readMessageEnd() result = findAndAddContactsByUserid_result() try: result.success = self._handler.findAndAddContactsByUserid(args.reqSeq, args.userid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findAndAddContactsByUserid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findContactByUserid(self, seqid, iprot, oprot): args = findContactByUserid_args() args.read(iprot) iprot.readMessageEnd() result = findContactByUserid_result() try: result.success = self._handler.findContactByUserid(args.userid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findContactByUserid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findContactByUserTicket(self, seqid, iprot, oprot): args = findContactByUserTicket_args() args.read(iprot) iprot.readMessageEnd() result = findContactByUserTicket_result() try: result.success = self._handler.findContactByUserTicket(args.ticketId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findContactByUserTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findGroupByTicket(self, seqid, iprot, oprot): args = findGroupByTicket_args() args.read(iprot) iprot.readMessageEnd() result = findGroupByTicket_result() try: result.success = self._handler.findGroupByTicket(args.ticketId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findGroupByTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findContactsByEmail(self, seqid, iprot, oprot): args = findContactsByEmail_args() args.read(iprot) iprot.readMessageEnd() result = findContactsByEmail_result() try: result.success = self._handler.findContactsByEmail(args.emails) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findContactsByEmail", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findContactsByPhone(self, seqid, iprot, oprot): args = findContactsByPhone_args() args.read(iprot) iprot.readMessageEnd() result = findContactsByPhone_result() try: result.success = self._handler.findContactsByPhone(args.phones) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findContactsByPhone", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_findSnsIdUserStatus(self, seqid, iprot, oprot): args = findSnsIdUserStatus_args() args.read(iprot) iprot.readMessageEnd() result = findSnsIdUserStatus_result() try: result.success = self._handler.findSnsIdUserStatus(args.snsIdType, args.snsAccessToken, args.udidHash) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("findSnsIdUserStatus", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_finishUpdateVerification(self, seqid, iprot, oprot): args = finishUpdateVerification_args() args.read(iprot) iprot.readMessageEnd() result = finishUpdateVerification_result() try: self._handler.finishUpdateVerification(args.sessionId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("finishUpdateVerification", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_generateUserTicket(self, seqid, iprot, oprot): args = generateUserTicket_args() args.read(iprot) iprot.readMessageEnd() result = generateUserTicket_result() try: result.success = self._handler.generateUserTicket(args.expirationTime, args.maxUseCount) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("generateUserTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getAcceptedProximityMatches(self, seqid, iprot, oprot): args = getAcceptedProximityMatches_args() args.read(iprot) iprot.readMessageEnd() result = getAcceptedProximityMatches_result() try: result.success = self._handler.getAcceptedProximityMatches(args.sessionId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getAcceptedProximityMatches", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getActiveBuddySubscriberIds(self, seqid, iprot, oprot): args = getActiveBuddySubscriberIds_args() args.read(iprot) iprot.readMessageEnd() result = getActiveBuddySubscriberIds_result() try: result.success = self._handler.getActiveBuddySubscriberIds() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getActiveBuddySubscriberIds", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getAllContactIds(self, seqid, iprot, oprot): args = getAllContactIds_args() args.read(iprot) iprot.readMessageEnd() result = getAllContactIds_result() try: result.success = self._handler.getAllContactIds() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getAllContactIds", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getAuthQrcode(self, seqid, iprot, oprot): args = getAuthQrcode_args() args.read(iprot) iprot.readMessageEnd() result = getAuthQrcode_result() try: result.success = self._handler.getAuthQrcode(args.keepLoggedIn, args.systemName) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getAuthQrcode", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBlockedContactIds(self, seqid, iprot, oprot): args = getBlockedContactIds_args() args.read(iprot) iprot.readMessageEnd() result = getBlockedContactIds_result() try: result.success = self._handler.getBlockedContactIds() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBlockedContactIds", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBlockedContactIdsByRange(self, seqid, iprot, oprot): args = getBlockedContactIdsByRange_args() args.read(iprot) iprot.readMessageEnd() result = getBlockedContactIdsByRange_result() try: result.success = self._handler.getBlockedContactIdsByRange(args.start, args.count) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBlockedContactIdsByRange", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBlockedRecommendationIds(self, seqid, iprot, oprot): args = getBlockedRecommendationIds_args() args.read(iprot) iprot.readMessageEnd() result = getBlockedRecommendationIds_result() try: result.success = self._handler.getBlockedRecommendationIds() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBlockedRecommendationIds", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBuddyBlockerIds(self, seqid, iprot, oprot): args = getBuddyBlockerIds_args() args.read(iprot) iprot.readMessageEnd() result = getBuddyBlockerIds_result() try: result.success = self._handler.getBuddyBlockerIds() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBuddyBlockerIds", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getBuddyLocation(self, seqid, iprot, oprot): args = getBuddyLocation_args() args.read(iprot) iprot.readMessageEnd() result = getBuddyLocation_result() try: result.success = self._handler.getBuddyLocation(args.mid, args.index) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getBuddyLocation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getCompactContactsModifiedSince(self, seqid, iprot, oprot): args = getCompactContactsModifiedSince_args() args.read(iprot) iprot.readMessageEnd() result = getCompactContactsModifiedSince_result() try: result.success = self._handler.getCompactContactsModifiedSince(args.timestamp) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCompactContactsModifiedSince", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getCompactGroup(self, seqid, iprot, oprot): args = getCompactGroup_args() args.read(iprot) iprot.readMessageEnd() result = getCompactGroup_result() try: result.success = self._handler.getCompactGroup(args.groupId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCompactGroup", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getCompactRoom(self, seqid, iprot, oprot): args = getCompactRoom_args() args.read(iprot) iprot.readMessageEnd() result = getCompactRoom_result() try: result.success = self._handler.getCompactRoom(args.roomId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCompactRoom", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getContact(self, seqid, iprot, oprot): args = getContact_args() args.read(iprot) iprot.readMessageEnd() result = getContact_result() try: result.success = self._handler.getContact(args.id) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getContact", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getContacts(self, seqid, iprot, oprot): args = getContacts_args() args.read(iprot) iprot.readMessageEnd() result = getContacts_result() try: result.success = self._handler.getContacts(args.ids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getContacts", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getCountryWithRequestIp(self, seqid, iprot, oprot): args = getCountryWithRequestIp_args() args.read(iprot) iprot.readMessageEnd() result = getCountryWithRequestIp_result() try: result.success = self._handler.getCountryWithRequestIp() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCountryWithRequestIp", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getFavoriteMids(self, seqid, iprot, oprot): args = getFavoriteMids_args() args.read(iprot) iprot.readMessageEnd() result = getFavoriteMids_result() try: result.success = self._handler.getFavoriteMids() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getFavoriteMids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getGroup(self, seqid, iprot, oprot): args = getGroup_args() args.read(iprot) iprot.readMessageEnd() result = getGroup_result() try: result.success = self._handler.getGroup(args.groupId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getGroup", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getGroupIdsInvited(self, seqid, iprot, oprot): args = getGroupIdsInvited_args() args.read(iprot) iprot.readMessageEnd() result = getGroupIdsInvited_result() try: result.success = self._handler.getGroupIdsInvited() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getGroupIdsInvited", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getGroupIdsJoined(self, seqid, iprot, oprot): args = getGroupIdsJoined_args() args.read(iprot) iprot.readMessageEnd() result = getGroupIdsJoined_result() try: result.success = self._handler.getGroupIdsJoined() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getGroupIdsJoined", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getGroups(self, seqid, iprot, oprot): args = getGroups_args() args.read(iprot) iprot.readMessageEnd() result = getGroups_result() try: result.success = self._handler.getGroups(args.groupIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getGroups", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getHiddenContactMids(self, seqid, iprot, oprot): args = getHiddenContactMids_args() args.read(iprot) iprot.readMessageEnd() result = getHiddenContactMids_result() try: result.success = self._handler.getHiddenContactMids() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getHiddenContactMids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getIdentityIdentifier(self, seqid, iprot, oprot): args = getIdentityIdentifier_args() args.read(iprot) iprot.readMessageEnd() result = getIdentityIdentifier_result() try: result.success = self._handler.getIdentityIdentifier() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getIdentityIdentifier", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getLastAnnouncementIndex(self, seqid, iprot, oprot): args = getLastAnnouncementIndex_args() args.read(iprot) iprot.readMessageEnd() result = getLastAnnouncementIndex_result() try: result.success = self._handler.getLastAnnouncementIndex() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getLastAnnouncementIndex", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getLastOpRevision(self, seqid, iprot, oprot): args = getLastOpRevision_args() args.read(iprot) iprot.readMessageEnd() result = getLastOpRevision_result() try: result.success = self._handler.getLastOpRevision() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getLastOpRevision", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMessageBox(self, seqid, iprot, oprot): args = getMessageBox_args() args.read(iprot) iprot.readMessageEnd() result = getMessageBox_result() try: result.success = self._handler.getMessageBox(args.channelId, args.messageBoxId, args.lastMessagesCount) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMessageBox", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMessageBoxCompactWrapUp(self, seqid, iprot, oprot): args = getMessageBoxCompactWrapUp_args() args.read(iprot) iprot.readMessageEnd() result = getMessageBoxCompactWrapUp_result() try: result.success = self._handler.getMessageBoxCompactWrapUp(args.mid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMessageBoxCompactWrapUp", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMessageBoxCompactWrapUpList(self, seqid, iprot, oprot): args = getMessageBoxCompactWrapUpList_args() args.read(iprot) iprot.readMessageEnd() result = getMessageBoxCompactWrapUpList_result() try: result.success = self._handler.getMessageBoxCompactWrapUpList(args.start, args.messageBoxCount) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMessageBoxCompactWrapUpList", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMessageBoxList(self, seqid, iprot, oprot): args = getMessageBoxList_args() args.read(iprot) iprot.readMessageEnd() result = getMessageBoxList_result() try: result.success = self._handler.getMessageBoxList(args.channelId, args.lastMessagesCount) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMessageBoxList", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMessageBoxListByStatus(self, seqid, iprot, oprot): args = getMessageBoxListByStatus_args() args.read(iprot) iprot.readMessageEnd() result = getMessageBoxListByStatus_result() try: result.success = self._handler.getMessageBoxListByStatus(args.channelId, args.lastMessagesCount, args.status) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMessageBoxListByStatus", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMessageBoxWrapUp(self, seqid, iprot, oprot): args = getMessageBoxWrapUp_args() args.read(iprot) iprot.readMessageEnd() result = getMessageBoxWrapUp_result() try: result.success = self._handler.getMessageBoxWrapUp(args.mid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMessageBoxWrapUp", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMessageBoxWrapUpList(self, seqid, iprot, oprot): args = getMessageBoxWrapUpList_args() args.read(iprot) iprot.readMessageEnd() result = getMessageBoxWrapUpList_result() try: result.success = self._handler.getMessageBoxWrapUpList(args.start, args.messageBoxCount) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMessageBoxWrapUpList", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getMessagesBySequenceNumber(self, seqid, iprot, oprot): args = getMessagesBySequenceNumber_args() args.read(iprot) iprot.readMessageEnd() result = getMessagesBySequenceNumber_result() try: result.success = self._handler.getMessagesBySequenceNumber(args.channelId, args.messageBoxId, args.startSeq, args.endSeq) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMessagesBySequenceNumber", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getNextMessages(self, seqid, iprot, oprot): args = getNextMessages_args() args.read(iprot) iprot.readMessageEnd() result = getNextMessages_result() try: result.success = self._handler.getNextMessages(args.messageBoxId, args.startSeq, args.messagesCount) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getNextMessages", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getNotificationPolicy(self, seqid, iprot, oprot): args = getNotificationPolicy_args() args.read(iprot) iprot.readMessageEnd() result = getNotificationPolicy_result() try: result.success = self._handler.getNotificationPolicy(args.carrier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getNotificationPolicy", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getPreviousMessages(self, seqid, iprot, oprot): args = getPreviousMessages_args() args.read(iprot) iprot.readMessageEnd() result = getPreviousMessages_result() try: result.success = self._handler.getPreviousMessages(args.messageBoxId, args.endSeq, args.messagesCount) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getPreviousMessages", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getProfile(self, seqid, iprot, oprot): args = getProfile_args() args.read(iprot) iprot.readMessageEnd() result = getProfile_result() try: result.success = self._handler.getProfile() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getProfile", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getProximityMatchCandidateList(self, seqid, iprot, oprot): args = getProximityMatchCandidateList_args() args.read(iprot) iprot.readMessageEnd() result = getProximityMatchCandidateList_result() try: result.success = self._handler.getProximityMatchCandidateList(args.sessionId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getProximityMatchCandidateList", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getProximityMatchCandidates(self, seqid, iprot, oprot): args = getProximityMatchCandidates_args() args.read(iprot) iprot.readMessageEnd() result = getProximityMatchCandidates_result() try: result.success = self._handler.getProximityMatchCandidates(args.sessionId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getProximityMatchCandidates", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getRecentMessages(self, seqid, iprot, oprot): args = getRecentMessages_args() args.read(iprot) iprot.readMessageEnd() result = getRecentMessages_result() try: result.success = self._handler.getRecentMessages(args.messageBoxId, args.messagesCount) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getRecentMessages", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getRecommendationIds(self, seqid, iprot, oprot): args = getRecommendationIds_args() args.read(iprot) iprot.readMessageEnd() result = getRecommendationIds_result() try: result.success = self._handler.getRecommendationIds() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getRecommendationIds", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getRoom(self, seqid, iprot, oprot): args = getRoom_args() args.read(iprot) iprot.readMessageEnd() result = getRoom_result() try: result.success = self._handler.getRoom(args.roomId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getRoom", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getRSAKeyInfo(self, seqid, iprot, oprot): args = getRSAKeyInfo_args() args.read(iprot) iprot.readMessageEnd() result = getRSAKeyInfo_result() try: result.success = self._handler.getRSAKeyInfo(args.provider) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getRSAKeyInfo", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getServerTime(self, seqid, iprot, oprot): args = getServerTime_args() args.read(iprot) iprot.readMessageEnd() result = getServerTime_result() try: result.success = self._handler.getServerTime() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getServerTime", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getSessions(self, seqid, iprot, oprot): args = getSessions_args() args.read(iprot) iprot.readMessageEnd() result = getSessions_result() try: result.success = self._handler.getSessions() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getSessions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getSettings(self, seqid, iprot, oprot): args = getSettings_args() args.read(iprot) iprot.readMessageEnd() result = getSettings_result() try: result.success = self._handler.getSettings() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getSettings", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getSettingsAttributes(self, seqid, iprot, oprot): args = getSettingsAttributes_args() args.read(iprot) iprot.readMessageEnd() result = getSettingsAttributes_result() try: result.success = self._handler.getSettingsAttributes(args.attrBitset) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getSettingsAttributes", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getSystemConfiguration(self, seqid, iprot, oprot): args = getSystemConfiguration_args() args.read(iprot) iprot.readMessageEnd() result = getSystemConfiguration_result() try: result.success = self._handler.getSystemConfiguration() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getSystemConfiguration", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getUserTicket(self, seqid, iprot, oprot): args = getUserTicket_args() args.read(iprot) iprot.readMessageEnd() result = getUserTicket_result() try: result.success = self._handler.getUserTicket() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getUserTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_getWapInvitation(self, seqid, iprot, oprot): args = getWapInvitation_args() args.read(iprot) iprot.readMessageEnd() result = getWapInvitation_result() try: result.success = self._handler.getWapInvitation(args.invitationHash) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getWapInvitation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_invalidateUserTicket(self, seqid, iprot, oprot): args = invalidateUserTicket_args() args.read(iprot) iprot.readMessageEnd() result = invalidateUserTicket_result() try: self._handler.invalidateUserTicket() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("invalidateUserTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_inviteFriendsBySms(self, seqid, iprot, oprot): args = inviteFriendsBySms_args() args.read(iprot) iprot.readMessageEnd() result = inviteFriendsBySms_result() try: self._handler.inviteFriendsBySms(args.phoneNumberList) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("inviteFriendsBySms", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_inviteIntoGroup(self, seqid, iprot, oprot): args = inviteIntoGroup_args() args.read(iprot) iprot.readMessageEnd() result = inviteIntoGroup_result() try: self._handler.inviteIntoGroup(args.reqSeq, args.groupId, args.contactIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("inviteIntoGroup", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_inviteIntoRoom(self, seqid, iprot, oprot): args = inviteIntoRoom_args() args.read(iprot) iprot.readMessageEnd() result = inviteIntoRoom_result() try: self._handler.inviteIntoRoom(args.reqSeq, args.roomId, args.contactIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("inviteIntoRoom", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_inviteViaEmail(self, seqid, iprot, oprot): args = inviteViaEmail_args() args.read(iprot) iprot.readMessageEnd() result = inviteViaEmail_result() try: self._handler.inviteViaEmail(args.reqSeq, args.email, args.name) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("inviteViaEmail", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_isIdentityIdentifierAvailable(self, seqid, iprot, oprot): args = isIdentityIdentifierAvailable_args() args.read(iprot) iprot.readMessageEnd() result = isIdentityIdentifierAvailable_result() try: result.success = self._handler.isIdentityIdentifierAvailable(args.provider, args.identifier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("isIdentityIdentifierAvailable", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_isUseridAvailable(self, seqid, iprot, oprot): args = isUseridAvailable_args() args.read(iprot) iprot.readMessageEnd() result = isUseridAvailable_result() try: result.success = self._handler.isUseridAvailable(args.userid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("isUseridAvailable", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_kickoutFromGroup(self, seqid, iprot, oprot): args = kickoutFromGroup_args() args.read(iprot) iprot.readMessageEnd() result = kickoutFromGroup_result() try: self._handler.kickoutFromGroup(args.reqSeq, args.groupId, args.contactIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("kickoutFromGroup", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_leaveGroup(self, seqid, iprot, oprot): args = leaveGroup_args() args.read(iprot) iprot.readMessageEnd() result = leaveGroup_result() try: self._handler.leaveGroup(args.reqSeq, args.groupId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("leaveGroup", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_leaveRoom(self, seqid, iprot, oprot): args = leaveRoom_args() args.read(iprot) iprot.readMessageEnd() result = leaveRoom_result() try: self._handler.leaveRoom(args.reqSeq, args.roomId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("leaveRoom", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_loginWithIdentityCredential(self, seqid, iprot, oprot): args = loginWithIdentityCredential_args() args.read(iprot) iprot.readMessageEnd() result = loginWithIdentityCredential_result() try: result.success = self._handler.loginWithIdentityCredential(args.identityProvider, args.identifier, args.password, args.keepLoggedIn, args.accessLocation, args.systemName, args.certificate) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("loginWithIdentityCredential", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_loginWithIdentityCredentialForCertificate(self, seqid, iprot, oprot): args = loginWithIdentityCredentialForCertificate_args() args.read(iprot) iprot.readMessageEnd() result = loginWithIdentityCredentialForCertificate_result() try: result.success = self._handler.loginWithIdentityCredentialForCertificate(args.identityProvider, args.identifier, args.password, args.keepLoggedIn, args.accessLocation, args.systemName, args.certificate) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("loginWithIdentityCredentialForCertificate", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_loginWithVerifier(self, seqid, iprot, oprot): args = loginWithVerifier_args() args.read(iprot) iprot.readMessageEnd() result = loginWithVerifier_result() try: result.success = self._handler.loginWithVerifier(args.verifier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("loginWithVerifier", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_loginWithVerifierForCerificate(self, seqid, iprot, oprot): args = loginWithVerifierForCerificate_args() args.read(iprot) iprot.readMessageEnd() result = loginWithVerifierForCerificate_result() try: result.success = self._handler.loginWithVerifierForCerificate(args.verifier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("loginWithVerifierForCerificate", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_loginWithVerifierForCertificate(self, seqid, iprot, oprot): args = loginWithVerifierForCertificate_args() args.read(iprot) iprot.readMessageEnd() result = loginWithVerifierForCertificate_result() try: result.success = self._handler.loginWithVerifierForCertificate(args.verifier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("loginWithVerifierForCertificate", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_logout(self, seqid, iprot, oprot): args = logout_args() args.read(iprot) iprot.readMessageEnd() result = logout_result() try: self._handler.logout() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("logout", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_logoutSession(self, seqid, iprot, oprot): args = logoutSession_args() args.read(iprot) iprot.readMessageEnd() result = logoutSession_result() try: self._handler.logoutSession(args.tokenKey) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("logoutSession", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_noop(self, seqid, iprot, oprot): args = noop_args() args.read(iprot) iprot.readMessageEnd() result = noop_result() try: self._handler.noop() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("noop", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifiedRedirect(self, seqid, iprot, oprot): args = notifiedRedirect_args() args.read(iprot) iprot.readMessageEnd() result = notifiedRedirect_result() try: self._handler.notifiedRedirect(args.paramMap) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifiedRedirect", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifyBuddyOnAir(self, seqid, iprot, oprot): args = notifyBuddyOnAir_args() args.read(iprot) iprot.readMessageEnd() result = notifyBuddyOnAir_result() try: result.success = self._handler.notifyBuddyOnAir(args.seq, args.receiverMids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifyBuddyOnAir", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifyIndividualEvent(self, seqid, iprot, oprot): args = notifyIndividualEvent_args() args.read(iprot) iprot.readMessageEnd() result = notifyIndividualEvent_result() try: self._handler.notifyIndividualEvent(args.notificationStatus, args.receiverMids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifyIndividualEvent", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifyInstalled(self, seqid, iprot, oprot): args = notifyInstalled_args() args.read(iprot) iprot.readMessageEnd() result = notifyInstalled_result() try: self._handler.notifyInstalled(args.udidHash, args.applicationTypeWithExtensions) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifyInstalled", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifyRegistrationComplete(self, seqid, iprot, oprot): args = notifyRegistrationComplete_args() args.read(iprot) iprot.readMessageEnd() result = notifyRegistrationComplete_result() try: self._handler.notifyRegistrationComplete(args.udidHash, args.applicationTypeWithExtensions) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifyRegistrationComplete", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifySleep(self, seqid, iprot, oprot): args = notifySleep_args() args.read(iprot) iprot.readMessageEnd() result = notifySleep_result() try: self._handler.notifySleep(args.lastRev, args.badge) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifySleep", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notifyUpdated(self, seqid, iprot, oprot): args = notifyUpdated_args() args.read(iprot) iprot.readMessageEnd() result = notifyUpdated_result() try: self._handler.notifyUpdated(args.lastRev, args.deviceInfo) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notifyUpdated", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_openProximityMatch(self, seqid, iprot, oprot): args = openProximityMatch_args() args.read(iprot) iprot.readMessageEnd() result = openProximityMatch_result() try: result.success = self._handler.openProximityMatch(args.location) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("openProximityMatch", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerBuddyUser(self, seqid, iprot, oprot): args = registerBuddyUser_args() args.read(iprot) iprot.readMessageEnd() result = registerBuddyUser_result() try: result.success = self._handler.registerBuddyUser(args.buddyId, args.registrarPassword) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerBuddyUser", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerBuddyUserid(self, seqid, iprot, oprot): args = registerBuddyUserid_args() args.read(iprot) iprot.readMessageEnd() result = registerBuddyUserid_result() try: self._handler.registerBuddyUserid(args.seq, args.userid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerBuddyUserid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerDevice(self, seqid, iprot, oprot): args = registerDevice_args() args.read(iprot) iprot.readMessageEnd() result = registerDevice_result() try: result.success = self._handler.registerDevice(args.sessionId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerDevice", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerDeviceWithIdentityCredential(self, seqid, iprot, oprot): args = registerDeviceWithIdentityCredential_args() args.read(iprot) iprot.readMessageEnd() result = registerDeviceWithIdentityCredential_result() try: result.success = self._handler.registerDeviceWithIdentityCredential(args.sessionId, args.provider, args.identifier, args.verifier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerDeviceWithIdentityCredential", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerDeviceWithoutPhoneNumber(self, seqid, iprot, oprot): args = registerDeviceWithoutPhoneNumber_args() args.read(iprot) iprot.readMessageEnd() result = registerDeviceWithoutPhoneNumber_result() try: result.success = self._handler.registerDeviceWithoutPhoneNumber(args.region, args.udidHash, args.deviceInfo) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerDeviceWithoutPhoneNumber", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerDeviceWithoutPhoneNumberWithIdentityCredential(self, seqid, iprot, oprot): args = registerDeviceWithoutPhoneNumberWithIdentityCredential_args() args.read(iprot) iprot.readMessageEnd() result = registerDeviceWithoutPhoneNumberWithIdentityCredential_result() try: result.success = self._handler.registerDeviceWithoutPhoneNumberWithIdentityCredential(args.region, args.udidHash, args.deviceInfo, args.provider, args.identifier, args.verifier, args.mid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerDeviceWithoutPhoneNumberWithIdentityCredential", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerUserid(self, seqid, iprot, oprot): args = registerUserid_args() args.read(iprot) iprot.readMessageEnd() result = registerUserid_result() try: result.success = self._handler.registerUserid(args.reqSeq, args.userid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerUserid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerWapDevice(self, seqid, iprot, oprot): args = registerWapDevice_args() args.read(iprot) iprot.readMessageEnd() result = registerWapDevice_result() try: result.success = self._handler.registerWapDevice(args.invitationHash, args.guidHash, args.email, args.deviceInfo) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerWapDevice", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerWithExistingSnsIdAndIdentityCredential(self, seqid, iprot, oprot): args = registerWithExistingSnsIdAndIdentityCredential_args() args.read(iprot) iprot.readMessageEnd() result = registerWithExistingSnsIdAndIdentityCredential_result() try: result.success = self._handler.registerWithExistingSnsIdAndIdentityCredential(args.identityCredential, args.region, args.udidHash, args.deviceInfo) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerWithExistingSnsIdAndIdentityCredential", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerWithSnsId(self, seqid, iprot, oprot): args = registerWithSnsId_args() args.read(iprot) iprot.readMessageEnd() result = registerWithSnsId_result() try: result.success = self._handler.registerWithSnsId(args.snsIdType, args.snsAccessToken, args.region, args.udidHash, args.deviceInfo, args.mid) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerWithSnsId", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_registerWithSnsIdAndIdentityCredential(self, seqid, iprot, oprot): args = registerWithSnsIdAndIdentityCredential_args() args.read(iprot) iprot.readMessageEnd() result = registerWithSnsIdAndIdentityCredential_result() try: result.success = self._handler.registerWithSnsIdAndIdentityCredential(args.snsIdType, args.snsAccessToken, args.identityCredential, args.region, args.udidHash, args.deviceInfo) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("registerWithSnsIdAndIdentityCredential", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reissueDeviceCredential(self, seqid, iprot, oprot): args = reissueDeviceCredential_args() args.read(iprot) iprot.readMessageEnd() result = reissueDeviceCredential_result() try: result.success = self._handler.reissueDeviceCredential() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reissueDeviceCredential", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reissueUserTicket(self, seqid, iprot, oprot): args = reissueUserTicket_args() args.read(iprot) iprot.readMessageEnd() result = reissueUserTicket_result() try: result.success = self._handler.reissueUserTicket(args.expirationTime, args.maxUseCount) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reissueUserTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reissueGroupTicket(self, seqid, iprot, oprot): args = reissueGroupTicket_args() args.read(iprot) iprot.readMessageEnd() result = reissueGroupTicket_result() try: result.success = self._handler.reissueGroupTicket(args.groupId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reissueGroupTicket", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_rejectGroupInvitation(self, seqid, iprot, oprot): args = rejectGroupInvitation_args() args.read(iprot) iprot.readMessageEnd() result = rejectGroupInvitation_result() try: self._handler.rejectGroupInvitation(args.reqSeq, args.groupId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("rejectGroupInvitation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_releaseSession(self, seqid, iprot, oprot): args = releaseSession_args() args.read(iprot) iprot.readMessageEnd() result = releaseSession_result() try: self._handler.releaseSession() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("releaseSession", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_removeAllMessages(self, seqid, iprot, oprot): args = removeAllMessages_args() args.read(iprot) iprot.readMessageEnd() result = removeAllMessages_result() try: self._handler.removeAllMessages(args.seq, args.lastMessageId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("removeAllMessages", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_removeBuddyLocation(self, seqid, iprot, oprot): args = removeBuddyLocation_args() args.read(iprot) iprot.readMessageEnd() result = removeBuddyLocation_result() try: self._handler.removeBuddyLocation(args.mid, args.index) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("removeBuddyLocation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_removeMessage(self, seqid, iprot, oprot): args = removeMessage_args() args.read(iprot) iprot.readMessageEnd() result = removeMessage_result() try: result.success = self._handler.removeMessage(args.messageId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("removeMessage", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_removeMessageFromMyHome(self, seqid, iprot, oprot): args = removeMessageFromMyHome_args() args.read(iprot) iprot.readMessageEnd() result = removeMessageFromMyHome_result() try: result.success = self._handler.removeMessageFromMyHome(args.messageId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("removeMessageFromMyHome", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_removeSnsId(self, seqid, iprot, oprot): args = removeSnsId_args() args.read(iprot) iprot.readMessageEnd() result = removeSnsId_result() try: result.success = self._handler.removeSnsId(args.snsIdType) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("removeSnsId", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_report(self, seqid, iprot, oprot): args = report_args() args.read(iprot) iprot.readMessageEnd() result = report_result() try: self._handler.report(args.syncOpRevision, args.category, args.report) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("report", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reportContacts(self, seqid, iprot, oprot): args = reportContacts_args() args.read(iprot) iprot.readMessageEnd() result = reportContacts_result() try: result.success = self._handler.reportContacts(args.syncOpRevision, args.category, args.contactReports, args.actionType) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reportContacts", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reportGroups(self, seqid, iprot, oprot): args = reportGroups_args() args.read(iprot) iprot.readMessageEnd() result = reportGroups_result() try: self._handler.reportGroups(args.syncOpRevision, args.groups) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reportGroups", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reportProfile(self, seqid, iprot, oprot): args = reportProfile_args() args.read(iprot) iprot.readMessageEnd() result = reportProfile_result() try: self._handler.reportProfile(args.syncOpRevision, args.profile) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reportProfile", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reportRooms(self, seqid, iprot, oprot): args = reportRooms_args() args.read(iprot) iprot.readMessageEnd() result = reportRooms_result() try: self._handler.reportRooms(args.syncOpRevision, args.rooms) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reportRooms", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reportSettings(self, seqid, iprot, oprot): args = reportSettings_args() args.read(iprot) iprot.readMessageEnd() result = reportSettings_result() try: self._handler.reportSettings(args.syncOpRevision, args.settings) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reportSettings", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_reportSpammer(self, seqid, iprot, oprot): args = reportSpammer_args() args.read(iprot) iprot.readMessageEnd() result = reportSpammer_result() try: self._handler.reportSpammer(args.spammerMid, args.spammerReasons, args.spamMessageIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reportSpammer", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_requestAccountPasswordReset(self, seqid, iprot, oprot): args = requestAccountPasswordReset_args() args.read(iprot) iprot.readMessageEnd() result = requestAccountPasswordReset_result() try: self._handler.requestAccountPasswordReset(args.provider, args.identifier, args.locale) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("requestAccountPasswordReset", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_requestEmailConfirmation(self, seqid, iprot, oprot): args = requestEmailConfirmation_args() args.read(iprot) iprot.readMessageEnd() result = requestEmailConfirmation_result() try: result.success = self._handler.requestEmailConfirmation(args.emailConfirmation) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("requestEmailConfirmation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_requestIdentityUnbind(self, seqid, iprot, oprot): args = requestIdentityUnbind_args() args.read(iprot) iprot.readMessageEnd() result = requestIdentityUnbind_result() try: self._handler.requestIdentityUnbind(args.provider, args.identifier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("requestIdentityUnbind", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_resendEmailConfirmation(self, seqid, iprot, oprot): args = resendEmailConfirmation_args() args.read(iprot) iprot.readMessageEnd() result = resendEmailConfirmation_result() try: result.success = self._handler.resendEmailConfirmation(args.verifier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("resendEmailConfirmation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_resendPinCode(self, seqid, iprot, oprot): args = resendPinCode_args() args.read(iprot) iprot.readMessageEnd() result = resendPinCode_result() try: self._handler.resendPinCode(args.sessionId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("resendPinCode", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_resendPinCodeBySMS(self, seqid, iprot, oprot): args = resendPinCodeBySMS_args() args.read(iprot) iprot.readMessageEnd() result = resendPinCodeBySMS_result() try: self._handler.resendPinCodeBySMS(args.sessionId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("resendPinCodeBySMS", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendChatChecked(self, seqid, iprot, oprot): args = sendChatChecked_args() args.read(iprot) iprot.readMessageEnd() result = sendChatChecked_result() try: self._handler.sendChatChecked(args.seq, args.consumer, args.lastMessageId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendChatChecked", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendChatRemoved(self, seqid, iprot, oprot): args = sendChatRemoved_args() args.read(iprot) iprot.readMessageEnd() result = sendChatRemoved_result() try: self._handler.sendChatRemoved(args.seq, args.consumer, args.lastMessageId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendChatRemoved", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendContentPreviewUpdated(self, seqid, iprot, oprot): args = sendContentPreviewUpdated_args() args.read(iprot) iprot.readMessageEnd() result = sendContentPreviewUpdated_result() try: result.success = self._handler.sendContentPreviewUpdated(args.esq, args.messageId, args.receiverMids) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendContentPreviewUpdated", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendContentReceipt(self, seqid, iprot, oprot): args = sendContentReceipt_args() args.read(iprot) iprot.readMessageEnd() result = sendContentReceipt_result() try: self._handler.sendContentReceipt(args.seq, args.consumer, args.messageId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendContentReceipt", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendDummyPush(self, seqid, iprot, oprot): args = sendDummyPush_args() args.read(iprot) iprot.readMessageEnd() result = sendDummyPush_result() try: self._handler.sendDummyPush() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendDummyPush", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendEvent(self, seqid, iprot, oprot): args = sendEvent_args() args.read(iprot) iprot.readMessageEnd() result = sendEvent_result() try: result.success = self._handler.sendEvent(args.seq, args.message) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendEvent", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendMessage(self, seqid, iprot, oprot): args = sendMessage_args() args.read(iprot) iprot.readMessageEnd() result = sendMessage_result() try: result.success = self._handler.sendMessage(args.seq, args.message) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendMessage", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendMessageIgnored(self, seqid, iprot, oprot): args = sendMessageIgnored_args() args.read(iprot) iprot.readMessageEnd() result = sendMessageIgnored_result() try: self._handler.sendMessageIgnored(args.seq, args.consumer, args.messageIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendMessageIgnored", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendMessageReceipt(self, seqid, iprot, oprot): args = sendMessageReceipt_args() args.read(iprot) iprot.readMessageEnd() result = sendMessageReceipt_result() try: self._handler.sendMessageReceipt(args.seq, args.consumer, args.messageIds) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendMessageReceipt", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_sendMessageToMyHome(self, seqid, iprot, oprot): args = sendMessageToMyHome_args() args.read(iprot) iprot.readMessageEnd() result = sendMessageToMyHome_result() try: result.success = self._handler.sendMessageToMyHome(args.seq, args.message) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("sendMessageToMyHome", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_setBuddyLocation(self, seqid, iprot, oprot): args = setBuddyLocation_args() args.read(iprot) iprot.readMessageEnd() result = setBuddyLocation_result() try: self._handler.setBuddyLocation(args.mid, args.index, args.location) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("setBuddyLocation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_setIdentityCredential(self, seqid, iprot, oprot): args = setIdentityCredential_args() args.read(iprot) iprot.readMessageEnd() result = setIdentityCredential_result() try: self._handler.setIdentityCredential(args.provider, args.identifier, args.verifier) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("setIdentityCredential", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_setNotificationsEnabled(self, seqid, iprot, oprot): args = setNotificationsEnabled_args() args.read(iprot) iprot.readMessageEnd() result = setNotificationsEnabled_result() try: self._handler.setNotificationsEnabled(args.reqSeq, args.type, args.target, args.enablement) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("setNotificationsEnabled", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_startUpdateVerification(self, seqid, iprot, oprot): args = startUpdateVerification_args() args.read(iprot) iprot.readMessageEnd() result = startUpdateVerification_result() try: result.success = self._handler.startUpdateVerification(args.region, args.carrier, args.phone, args.udidHash, args.deviceInfo, args.networkCode, args.locale) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("startUpdateVerification", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_startVerification(self, seqid, iprot, oprot): args = startVerification_args() args.read(iprot) iprot.readMessageEnd() result = startVerification_result() try: result.success = self._handler.startVerification(args.region, args.carrier, args.phone, args.udidHash, args.deviceInfo, args.networkCode, args.mid, args.locale) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("startVerification", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_storeUpdateProfileAttribute(self, seqid, iprot, oprot): args = storeUpdateProfileAttribute_args() args.read(iprot) iprot.readMessageEnd() result = storeUpdateProfileAttribute_result() try: self._handler.storeUpdateProfileAttribute(args.seq, args.profileAttribute, args.value) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("storeUpdateProfileAttribute", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_syncContactBySnsIds(self, seqid, iprot, oprot): args = syncContactBySnsIds_args() args.read(iprot) iprot.readMessageEnd() result = syncContactBySnsIds_result() try: result.success = self._handler.syncContactBySnsIds(args.reqSeq, args.modifications) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("syncContactBySnsIds", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_syncContacts(self, seqid, iprot, oprot): args = syncContacts_args() args.read(iprot) iprot.readMessageEnd() result = syncContacts_result() try: result.success = self._handler.syncContacts(args.reqSeq, args.localContacts) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("syncContacts", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_trySendMessage(self, seqid, iprot, oprot): args = trySendMessage_args() args.read(iprot) iprot.readMessageEnd() result = trySendMessage_result() try: result.success = self._handler.trySendMessage(args.seq, args.message) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("trySendMessage", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_unblockContact(self, seqid, iprot, oprot): args = unblockContact_args() args.read(iprot) iprot.readMessageEnd() result = unblockContact_result() try: self._handler.unblockContact(args.reqSeq, args.id) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("unblockContact", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_unblockRecommendation(self, seqid, iprot, oprot): args = unblockRecommendation_args() args.read(iprot) iprot.readMessageEnd() result = unblockRecommendation_result() try: self._handler.unblockRecommendation(args.reqSeq, args.id) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("unblockRecommendation", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_unregisterUserAndDevice(self, seqid, iprot, oprot): args = unregisterUserAndDevice_args() args.read(iprot) iprot.readMessageEnd() result = unregisterUserAndDevice_result() try: result.success = self._handler.unregisterUserAndDevice() msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("unregisterUserAndDevice", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateApnsDeviceToken(self, seqid, iprot, oprot): args = updateApnsDeviceToken_args() args.read(iprot) iprot.readMessageEnd() result = updateApnsDeviceToken_result() try: self._handler.updateApnsDeviceToken(args.apnsDeviceToken) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateApnsDeviceToken", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateBuddySetting(self, seqid, iprot, oprot): args = updateBuddySetting_args() args.read(iprot) iprot.readMessageEnd() result = updateBuddySetting_result() try: self._handler.updateBuddySetting(args.key, args.value) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateBuddySetting", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateC2DMRegistrationId(self, seqid, iprot, oprot): args = updateC2DMRegistrationId_args() args.read(iprot) iprot.readMessageEnd() result = updateC2DMRegistrationId_result() try: self._handler.updateC2DMRegistrationId(args.registrationId) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateC2DMRegistrationId", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateContactSetting(self, seqid, iprot, oprot): args = updateContactSetting_args() args.read(iprot) iprot.readMessageEnd() result = updateContactSetting_result() try: self._handler.updateContactSetting(args.reqSeq, args.mid, args.flag, args.value) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateContactSetting", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateCustomModeSettings(self, seqid, iprot, oprot): args = updateCustomModeSettings_args() args.read(iprot) iprot.readMessageEnd() result = updateCustomModeSettings_result() try: self._handler.updateCustomModeSettings(args.customMode, args.paramMap) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateCustomModeSettings", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateDeviceInfo(self, seqid, iprot, oprot): args = updateDeviceInfo_args() args.read(iprot) iprot.readMessageEnd() result = updateDeviceInfo_result() try: self._handler.updateDeviceInfo(args.deviceUid, args.deviceInfo) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateDeviceInfo", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateGroup(self, seqid, iprot, oprot): args = updateGroup_args() args.read(iprot) iprot.readMessageEnd() result = updateGroup_result() try: self._handler.updateGroup(args.reqSeq, args.group) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateGroup", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateNotificationToken(self, seqid, iprot, oprot): args = updateNotificationToken_args() args.read(iprot) iprot.readMessageEnd() result = updateNotificationToken_result() try: self._handler.updateNotificationToken(args.type, args.token) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateNotificationToken", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateNotificationTokenWithBytes(self, seqid, iprot, oprot): args = updateNotificationTokenWithBytes_args() args.read(iprot) iprot.readMessageEnd() result = updateNotificationTokenWithBytes_result() try: self._handler.updateNotificationTokenWithBytes(args.type, args.token) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateNotificationTokenWithBytes", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateProfile(self, seqid, iprot, oprot): args = updateProfile_args() args.read(iprot) iprot.readMessageEnd() result = updateProfile_result() try: self._handler.updateProfile(args.reqSeq, args.profile) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateProfile", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateProfileAttribute(self, seqid, iprot, oprot): args = updateProfileAttribute_args() args.read(iprot) iprot.readMessageEnd() result = updateProfileAttribute_result() try: self._handler.updateProfileAttribute(args.reqSeq, args.attr, args.value) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateProfileAttribute", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateRegion(self, seqid, iprot, oprot): args = updateRegion_args() args.read(iprot) iprot.readMessageEnd() result = updateRegion_result() try: self._handler.updateRegion(args.region) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateRegion", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateSettings(self, seqid, iprot, oprot): args = updateSettings_args() args.read(iprot) iprot.readMessageEnd() result = updateSettings_result() try: self._handler.updateSettings(args.reqSeq, args.settings) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateSettings", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateSettings2(self, seqid, iprot, oprot): args = updateSettings2_args() args.read(iprot) iprot.readMessageEnd() result = updateSettings2_result() try: result.success = self._handler.updateSettings2(args.reqSeq, args.settings) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateSettings2", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateSettingsAttribute(self, seqid, iprot, oprot): args = updateSettingsAttribute_args() args.read(iprot) iprot.readMessageEnd() result = updateSettingsAttribute_result() try: self._handler.updateSettingsAttribute(args.reqSeq, args.attr, args.value) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateSettingsAttribute", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_updateSettingsAttributes(self, seqid, iprot, oprot): args = updateSettingsAttributes_args() args.read(iprot) iprot.readMessageEnd() result = updateSettingsAttributes_result() try: result.success = self._handler.updateSettingsAttributes(args.reqSeq, args.attrBitset, args.settings) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("updateSettingsAttributes", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_verifyIdentityCredential(self, seqid, iprot, oprot): args = verifyIdentityCredential_args() args.read(iprot) iprot.readMessageEnd() result = verifyIdentityCredential_result() try: self._handler.verifyIdentityCredential(args.identityProvider, args.identifier, args.password) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("verifyIdentityCredential", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_verifyIdentityCredentialWithResult(self, seqid, iprot, oprot): args = verifyIdentityCredentialWithResult_args() args.read(iprot) iprot.readMessageEnd() result = verifyIdentityCredentialWithResult_result() try: result.success = self._handler.verifyIdentityCredentialWithResult(args.identityCredential) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("verifyIdentityCredentialWithResult", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_verifyPhone(self, seqid, iprot, oprot): args = verifyPhone_args() args.read(iprot) iprot.readMessageEnd() result = verifyPhone_result() try: result.success = self._handler.verifyPhone(args.sessionId, args.pinCode, args.udidHash) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("verifyPhone", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_verifyQrcode(self, seqid, iprot, oprot): args = verifyQrcode_args() args.read(iprot) iprot.readMessageEnd() result = verifyQrcode_result() try: result.success = self._handler.verifyQrcode(args.verifier, args.pinCode) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except TalkException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("verifyQrcode", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_notify(self, seqid, iprot, oprot): args = notify_args() args.read(iprot) iprot.readMessageEnd() result = notify_result() try: self._handler.notify(args.event) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise except UniversalNotificationServiceException as e: msg_type = TMessageType.REPLY result.e = e except Exception as ex: msg_type = TMessageType.EXCEPTION logging.exception(ex) result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("notify", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() # HELPER FUNCTIONS AND STRUCTURES class getRSAKey_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getRSAKey_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getRSAKey_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (RSAKey, RSAKey.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = RSAKey() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getRSAKey_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyEmailConfirmationResult_args: """ Attributes: - parameterMap """ thrift_spec = ( None, # 0 None, # 1 (2, TType.MAP, 'parameterMap', (TType.STRING,None,TType.STRING,None), None, ), # 2 ) def __init__(self, parameterMap=None,): self.parameterMap = parameterMap 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 == 2: if ftype == TType.MAP: self.parameterMap = {} (_ktype333, _vtype334, _size332 ) = iprot.readMapBegin() for _i336 in xrange(_size332): _key337 = iprot.readString() _val338 = iprot.readString() self.parameterMap[_key337] = _val338 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyEmailConfirmationResult_args') if self.parameterMap is not None: oprot.writeFieldBegin('parameterMap', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameterMap)) for kiter339,viter340 in self.parameterMap.items(): oprot.writeString(kiter339) oprot.writeString(viter340) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.parameterMap) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyEmailConfirmationResult_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyEmailConfirmationResult_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerVirtualAccount_args: """ Attributes: - locale - encryptedVirtualUserId - encryptedPassword """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'locale', None, None, ), # 2 (3, TType.STRING, 'encryptedVirtualUserId', None, None, ), # 3 (4, TType.STRING, 'encryptedPassword', None, None, ), # 4 ) def __init__(self, locale=None, encryptedVirtualUserId=None, encryptedPassword=None,): self.locale = locale self.encryptedVirtualUserId = encryptedVirtualUserId self.encryptedPassword = encryptedPassword 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 == 2: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.encryptedVirtualUserId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.encryptedPassword = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerVirtualAccount_args') if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 2) oprot.writeString(self.locale) oprot.writeFieldEnd() if self.encryptedVirtualUserId is not None: oprot.writeFieldBegin('encryptedVirtualUserId', TType.STRING, 3) oprot.writeString(self.encryptedVirtualUserId) oprot.writeFieldEnd() if self.encryptedPassword is not None: oprot.writeFieldBegin('encryptedPassword', TType.STRING, 4) oprot.writeString(self.encryptedPassword) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.locale) value = (value * 31) ^ hash(self.encryptedVirtualUserId) value = (value * 31) ^ hash(self.encryptedPassword) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerVirtualAccount_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerVirtualAccount_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class requestVirtualAccountPasswordChange_args: """ Attributes: - virtualMid - encryptedVirtualUserId - encryptedOldPassword - encryptedNewPassword """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'virtualMid', None, None, ), # 2 (3, TType.STRING, 'encryptedVirtualUserId', None, None, ), # 3 (4, TType.STRING, 'encryptedOldPassword', None, None, ), # 4 (5, TType.STRING, 'encryptedNewPassword', None, None, ), # 5 ) def __init__(self, virtualMid=None, encryptedVirtualUserId=None, encryptedOldPassword=None, encryptedNewPassword=None,): self.virtualMid = virtualMid self.encryptedVirtualUserId = encryptedVirtualUserId self.encryptedOldPassword = encryptedOldPassword self.encryptedNewPassword = encryptedNewPassword 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 == 2: if ftype == TType.STRING: self.virtualMid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.encryptedVirtualUserId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.encryptedOldPassword = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.encryptedNewPassword = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('requestVirtualAccountPasswordChange_args') if self.virtualMid is not None: oprot.writeFieldBegin('virtualMid', TType.STRING, 2) oprot.writeString(self.virtualMid) oprot.writeFieldEnd() if self.encryptedVirtualUserId is not None: oprot.writeFieldBegin('encryptedVirtualUserId', TType.STRING, 3) oprot.writeString(self.encryptedVirtualUserId) oprot.writeFieldEnd() if self.encryptedOldPassword is not None: oprot.writeFieldBegin('encryptedOldPassword', TType.STRING, 4) oprot.writeString(self.encryptedOldPassword) oprot.writeFieldEnd() if self.encryptedNewPassword is not None: oprot.writeFieldBegin('encryptedNewPassword', TType.STRING, 5) oprot.writeString(self.encryptedNewPassword) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.virtualMid) value = (value * 31) ^ hash(self.encryptedVirtualUserId) value = (value * 31) ^ hash(self.encryptedOldPassword) value = (value * 31) ^ hash(self.encryptedNewPassword) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class requestVirtualAccountPasswordChange_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('requestVirtualAccountPasswordChange_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class requestVirtualAccountPasswordSet_args: """ Attributes: - virtualMid - encryptedVirtualUserId - encryptedNewPassword """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'virtualMid', None, None, ), # 2 (3, TType.STRING, 'encryptedVirtualUserId', None, None, ), # 3 (4, TType.STRING, 'encryptedNewPassword', None, None, ), # 4 ) def __init__(self, virtualMid=None, encryptedVirtualUserId=None, encryptedNewPassword=None,): self.virtualMid = virtualMid self.encryptedVirtualUserId = encryptedVirtualUserId self.encryptedNewPassword = encryptedNewPassword 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 == 2: if ftype == TType.STRING: self.virtualMid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.encryptedVirtualUserId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.encryptedNewPassword = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('requestVirtualAccountPasswordSet_args') if self.virtualMid is not None: oprot.writeFieldBegin('virtualMid', TType.STRING, 2) oprot.writeString(self.virtualMid) oprot.writeFieldEnd() if self.encryptedVirtualUserId is not None: oprot.writeFieldBegin('encryptedVirtualUserId', TType.STRING, 3) oprot.writeString(self.encryptedVirtualUserId) oprot.writeFieldEnd() if self.encryptedNewPassword is not None: oprot.writeFieldBegin('encryptedNewPassword', TType.STRING, 4) oprot.writeString(self.encryptedNewPassword) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.virtualMid) value = (value * 31) ^ hash(self.encryptedVirtualUserId) value = (value * 31) ^ hash(self.encryptedNewPassword) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class requestVirtualAccountPasswordSet_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('requestVirtualAccountPasswordSet_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unregisterVirtualAccount_args: """ Attributes: - virtualMid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'virtualMid', None, None, ), # 2 ) def __init__(self, virtualMid=None,): self.virtualMid = virtualMid 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 == 2: if ftype == TType.STRING: self.virtualMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unregisterVirtualAccount_args') if self.virtualMid is not None: oprot.writeFieldBegin('virtualMid', TType.STRING, 2) oprot.writeString(self.virtualMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.virtualMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unregisterVirtualAccount_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unregisterVirtualAccount_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class checkUserAge_args: """ Attributes: - carrier - sessionId - verifier - standardAge """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'carrier', None, None, ), # 2 (3, TType.STRING, 'sessionId', None, None, ), # 3 (4, TType.STRING, 'verifier', None, None, ), # 4 (5, TType.I32, 'standardAge', None, None, ), # 5 ) def __init__(self, carrier=None, sessionId=None, verifier=None, standardAge=None,): self.carrier = carrier self.sessionId = sessionId self.verifier = verifier self.standardAge = standardAge 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 == 2: if ftype == TType.I32: self.carrier = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.standardAge = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('checkUserAge_args') if self.carrier is not None: oprot.writeFieldBegin('carrier', TType.I32, 2) oprot.writeI32(self.carrier) oprot.writeFieldEnd() if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 3) oprot.writeString(self.sessionId) oprot.writeFieldEnd() if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 4) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.standardAge is not None: oprot.writeFieldBegin('standardAge', TType.I32, 5) oprot.writeI32(self.standardAge) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.carrier) value = (value * 31) ^ hash(self.sessionId) value = (value * 31) ^ hash(self.verifier) value = (value * 31) ^ hash(self.standardAge) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class checkUserAge_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I32, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I32: self.success = iprot.readI32() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('checkUserAge_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class checkUserAgeWithDocomo_args: """ Attributes: - openIdRedirectUrl - standardAge - verifier """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'openIdRedirectUrl', None, None, ), # 2 (3, TType.I32, 'standardAge', None, None, ), # 3 (4, TType.STRING, 'verifier', None, None, ), # 4 ) def __init__(self, openIdRedirectUrl=None, standardAge=None, verifier=None,): self.openIdRedirectUrl = openIdRedirectUrl self.standardAge = standardAge self.verifier = verifier 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 == 2: if ftype == TType.STRING: self.openIdRedirectUrl = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.standardAge = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('checkUserAgeWithDocomo_args') if self.openIdRedirectUrl is not None: oprot.writeFieldBegin('openIdRedirectUrl', TType.STRING, 2) oprot.writeString(self.openIdRedirectUrl) oprot.writeFieldEnd() if self.standardAge is not None: oprot.writeFieldBegin('standardAge', TType.I32, 3) oprot.writeI32(self.standardAge) oprot.writeFieldEnd() if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 4) oprot.writeString(self.verifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.openIdRedirectUrl) value = (value * 31) ^ hash(self.standardAge) value = (value * 31) ^ hash(self.verifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class checkUserAgeWithDocomo_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (AgeCheckDocomoResult, AgeCheckDocomoResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = AgeCheckDocomoResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('checkUserAgeWithDocomo_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class retrieveOpenIdAuthUrlWithDocomo_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('retrieveOpenIdAuthUrlWithDocomo_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class retrieveOpenIdAuthUrlWithDocomo_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('retrieveOpenIdAuthUrlWithDocomo_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class retrieveRequestToken_args: """ Attributes: - carrier """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'carrier', None, None, ), # 2 ) def __init__(self, carrier=None,): self.carrier = carrier 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 == 2: if ftype == TType.I32: self.carrier = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('retrieveRequestToken_args') if self.carrier is not None: oprot.writeFieldBegin('carrier', TType.I32, 2) oprot.writeI32(self.carrier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.carrier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class retrieveRequestToken_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (AgeCheckRequestResult, AgeCheckRequestResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = AgeCheckRequestResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('retrieveRequestToken_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class addBuddyMember_args: """ Attributes: - requestId - userMid """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'userMid', None, None, ), # 2 ) def __init__(self, requestId=None, userMid=None,): self.requestId = requestId self.userMid = userMid 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.userMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('addBuddyMember_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.userMid is not None: oprot.writeFieldBegin('userMid', TType.STRING, 2) oprot.writeString(self.userMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.userMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class addBuddyMember_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('addBuddyMember_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class addBuddyMembers_args: """ Attributes: - requestId - userMids """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.LIST, 'userMids', (TType.STRING,None), None, ), # 2 ) def __init__(self, requestId=None, userMids=None,): self.requestId = requestId self.userMids = userMids 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.userMids = [] (_etype344, _size341) = iprot.readListBegin() for _i345 in xrange(_size341): _elem346 = iprot.readString() self.userMids.append(_elem346) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('addBuddyMembers_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.userMids is not None: oprot.writeFieldBegin('userMids', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.userMids)) for iter347 in self.userMids: oprot.writeString(iter347) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.userMids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class addBuddyMembers_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('addBuddyMembers_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class blockBuddyMember_args: """ Attributes: - requestId - mid """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'mid', None, None, ), # 2 ) def __init__(self, requestId=None, mid=None,): self.requestId = requestId self.mid = mid 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('blockBuddyMember_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.mid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class blockBuddyMember_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('blockBuddyMember_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class commitSendMessagesToAll_args: """ Attributes: - requestIdList """ thrift_spec = ( None, # 0 (1, TType.LIST, 'requestIdList', (TType.STRING,None), None, ), # 1 ) def __init__(self, requestIdList=None,): self.requestIdList = requestIdList 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.requestIdList = [] (_etype351, _size348) = iprot.readListBegin() for _i352 in xrange(_size348): _elem353 = iprot.readString() self.requestIdList.append(_elem353) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('commitSendMessagesToAll_args') if self.requestIdList is not None: oprot.writeFieldBegin('requestIdList', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.requestIdList)) for iter354 in self.requestIdList: oprot.writeString(iter354) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestIdList) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class commitSendMessagesToAll_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(SendBuddyMessageResult, SendBuddyMessageResult.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype358, _size355) = iprot.readListBegin() for _i359 in xrange(_size355): _elem360 = SendBuddyMessageResult() _elem360.read(iprot) self.success.append(_elem360) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('commitSendMessagesToAll_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter361 in self.success: iter361.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class commitSendMessagesTomids_args: """ Attributes: - requestIdList - mids """ thrift_spec = ( None, # 0 (1, TType.LIST, 'requestIdList', (TType.STRING,None), None, ), # 1 (2, TType.LIST, 'mids', (TType.STRING,None), None, ), # 2 ) def __init__(self, requestIdList=None, mids=None,): self.requestIdList = requestIdList self.mids = mids 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.requestIdList = [] (_etype365, _size362) = iprot.readListBegin() for _i366 in xrange(_size362): _elem367 = iprot.readString() self.requestIdList.append(_elem367) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.mids = [] (_etype371, _size368) = iprot.readListBegin() for _i372 in xrange(_size368): _elem373 = iprot.readString() self.mids.append(_elem373) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('commitSendMessagesTomids_args') if self.requestIdList is not None: oprot.writeFieldBegin('requestIdList', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.requestIdList)) for iter374 in self.requestIdList: oprot.writeString(iter374) oprot.writeListEnd() oprot.writeFieldEnd() if self.mids is not None: oprot.writeFieldBegin('mids', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.mids)) for iter375 in self.mids: oprot.writeString(iter375) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestIdList) value = (value * 31) ^ hash(self.mids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class commitSendMessagesTomids_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(SendBuddyMessageResult, SendBuddyMessageResult.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype379, _size376) = iprot.readListBegin() for _i380 in xrange(_size376): _elem381 = SendBuddyMessageResult() _elem381.read(iprot) self.success.append(_elem381) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('commitSendMessagesTomids_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter382 in self.success: iter382.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class containsBuddyMember_args: """ Attributes: - requestId - userMid """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'userMid', None, None, ), # 2 ) def __init__(self, requestId=None, userMid=None,): self.requestId = requestId self.userMid = userMid 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.userMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('containsBuddyMember_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.userMid is not None: oprot.writeFieldBegin('userMid', TType.STRING, 2) oprot.writeString(self.userMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.userMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class containsBuddyMember_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.BOOL: self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('containsBuddyMember_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class downloadMessageContent_args: """ Attributes: - requestId - messageId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'messageId', None, None, ), # 2 ) def __init__(self, requestId=None, messageId=None,): self.requestId = requestId self.messageId = messageId 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.messageId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('downloadMessageContent_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.messageId is not None: oprot.writeFieldBegin('messageId', TType.STRING, 2) oprot.writeString(self.messageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.messageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class downloadMessageContent_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('downloadMessageContent_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class downloadMessageContentPreview_args: """ Attributes: - requestId - messageId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'messageId', None, None, ), # 2 ) def __init__(self, requestId=None, messageId=None,): self.requestId = requestId self.messageId = messageId 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.messageId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('downloadMessageContentPreview_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.messageId is not None: oprot.writeFieldBegin('messageId', TType.STRING, 2) oprot.writeString(self.messageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.messageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class downloadMessageContentPreview_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('downloadMessageContentPreview_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class downloadProfileImage_args: """ Attributes: - requestId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 ) def __init__(self, requestId=None,): self.requestId = requestId 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.requestId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('downloadProfileImage_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class downloadProfileImage_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('downloadProfileImage_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class downloadProfileImagePreview_args: """ Attributes: - requestId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 ) def __init__(self, requestId=None,): self.requestId = requestId 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.requestId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('downloadProfileImagePreview_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class downloadProfileImagePreview_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('downloadProfileImagePreview_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getActiveMemberCountByBuddyMid_args: """ Attributes: - buddyMid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'buddyMid', None, None, ), # 2 ) def __init__(self, buddyMid=None,): self.buddyMid = buddyMid 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 == 2: if ftype == TType.STRING: self.buddyMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getActiveMemberCountByBuddyMid_args') if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 2) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getActiveMemberCountByBuddyMid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I64, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I64: self.success = iprot.readI64() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getActiveMemberCountByBuddyMid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getActiveMemberMidsByBuddyMid_args: """ Attributes: - buddyMid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'buddyMid', None, None, ), # 2 ) def __init__(self, buddyMid=None,): self.buddyMid = buddyMid 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 == 2: if ftype == TType.STRING: self.buddyMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getActiveMemberMidsByBuddyMid_args') if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 2) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getActiveMemberMidsByBuddyMid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype386, _size383) = iprot.readListBegin() for _i387 in xrange(_size383): _elem388 = iprot.readString() self.success.append(_elem388) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getActiveMemberMidsByBuddyMid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter389 in self.success: oprot.writeString(iter389) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getAllBuddyMembers_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getAllBuddyMembers_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getAllBuddyMembers_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype393, _size390) = iprot.readListBegin() for _i394 in xrange(_size390): _elem395 = iprot.readString() self.success.append(_elem395) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getAllBuddyMembers_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter396 in self.success: oprot.writeString(iter396) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBlockedBuddyMembers_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBlockedBuddyMembers_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBlockedBuddyMembers_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype400, _size397) = iprot.readListBegin() for _i401 in xrange(_size397): _elem402 = iprot.readString() self.success.append(_elem402) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBlockedBuddyMembers_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter403 in self.success: oprot.writeString(iter403) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBlockerCountByBuddyMid_args: """ Attributes: - buddyMid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'buddyMid', None, None, ), # 2 ) def __init__(self, buddyMid=None,): self.buddyMid = buddyMid 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 == 2: if ftype == TType.STRING: self.buddyMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBlockerCountByBuddyMid_args') if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 2) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBlockerCountByBuddyMid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I64, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I64: self.success = iprot.readI64() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBlockerCountByBuddyMid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyDetailByMid_args: """ Attributes: - buddyMid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'buddyMid', None, None, ), # 2 ) def __init__(self, buddyMid=None,): self.buddyMid = buddyMid 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 == 2: if ftype == TType.STRING: self.buddyMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyDetailByMid_args') if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 2) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyDetailByMid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (BuddyDetail, BuddyDetail.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = BuddyDetail() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyDetailByMid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyProfile_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyProfile_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyProfile_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (BuddyProfile, BuddyProfile.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = BuddyProfile() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyProfile_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getContactTicket_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getContactTicket_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getContactTicket_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Ticket, Ticket.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Ticket() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getContactTicket_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMemberCountByBuddyMid_args: """ Attributes: - buddyMid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'buddyMid', None, None, ), # 2 ) def __init__(self, buddyMid=None,): self.buddyMid = buddyMid 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 == 2: if ftype == TType.STRING: self.buddyMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMemberCountByBuddyMid_args') if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 2) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMemberCountByBuddyMid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I64, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I64: self.success = iprot.readI64() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMemberCountByBuddyMid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSendBuddyMessageResult_args: """ Attributes: - sendBuddyMessageRequestId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'sendBuddyMessageRequestId', None, None, ), # 1 ) def __init__(self, sendBuddyMessageRequestId=None,): self.sendBuddyMessageRequestId = sendBuddyMessageRequestId 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.sendBuddyMessageRequestId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSendBuddyMessageResult_args') if self.sendBuddyMessageRequestId is not None: oprot.writeFieldBegin('sendBuddyMessageRequestId', TType.STRING, 1) oprot.writeString(self.sendBuddyMessageRequestId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sendBuddyMessageRequestId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSendBuddyMessageResult_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SendBuddyMessageResult, SendBuddyMessageResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SendBuddyMessageResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSendBuddyMessageResult_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSetBuddyOnAirResult_args: """ Attributes: - setBuddyOnAirRequestId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'setBuddyOnAirRequestId', None, None, ), # 1 ) def __init__(self, setBuddyOnAirRequestId=None,): self.setBuddyOnAirRequestId = setBuddyOnAirRequestId 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.setBuddyOnAirRequestId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSetBuddyOnAirResult_args') if self.setBuddyOnAirRequestId is not None: oprot.writeFieldBegin('setBuddyOnAirRequestId', TType.STRING, 1) oprot.writeString(self.setBuddyOnAirRequestId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.setBuddyOnAirRequestId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSetBuddyOnAirResult_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SetBuddyOnAirResult, SetBuddyOnAirResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SetBuddyOnAirResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSetBuddyOnAirResult_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUpdateBuddyProfileResult_args: """ Attributes: - updateBuddyProfileRequestId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'updateBuddyProfileRequestId', None, None, ), # 1 ) def __init__(self, updateBuddyProfileRequestId=None,): self.updateBuddyProfileRequestId = updateBuddyProfileRequestId 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.updateBuddyProfileRequestId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUpdateBuddyProfileResult_args') if self.updateBuddyProfileRequestId is not None: oprot.writeFieldBegin('updateBuddyProfileRequestId', TType.STRING, 1) oprot.writeString(self.updateBuddyProfileRequestId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.updateBuddyProfileRequestId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUpdateBuddyProfileResult_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (UpdateBuddyProfileResult, UpdateBuddyProfileResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = UpdateBuddyProfileResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUpdateBuddyProfileResult_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class isBuddyOnAirByMid_args: """ Attributes: - buddyMid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'buddyMid', None, None, ), # 2 ) def __init__(self, buddyMid=None,): self.buddyMid = buddyMid 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 == 2: if ftype == TType.STRING: self.buddyMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('isBuddyOnAirByMid_args') if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 2) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class isBuddyOnAirByMid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.BOOL: self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('isBuddyOnAirByMid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class linkAndSendBuddyContentMessageToAllAsync_args: """ Attributes: - requestId - msg - sourceContentId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'msg', (Message, Message.thrift_spec), None, ), # 2 (3, TType.STRING, 'sourceContentId', None, None, ), # 3 ) def __init__(self, requestId=None, msg=None, sourceContentId=None,): self.requestId = requestId self.msg = msg self.sourceContentId = sourceContentId 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.msg = Message() self.msg.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.sourceContentId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('linkAndSendBuddyContentMessageToAllAsync_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.msg is not None: oprot.writeFieldBegin('msg', TType.STRUCT, 2) self.msg.write(oprot) oprot.writeFieldEnd() if self.sourceContentId is not None: oprot.writeFieldBegin('sourceContentId', TType.STRING, 3) oprot.writeString(self.sourceContentId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.msg) value = (value * 31) ^ hash(self.sourceContentId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class linkAndSendBuddyContentMessageToAllAsync_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('linkAndSendBuddyContentMessageToAllAsync_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class linkAndSendBuddyContentMessageTomids_args: """ Attributes: - requestId - msg - sourceContentId - mids """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'msg', (Message, Message.thrift_spec), None, ), # 2 (3, TType.STRING, 'sourceContentId', None, None, ), # 3 (4, TType.LIST, 'mids', (TType.STRING,None), None, ), # 4 ) def __init__(self, requestId=None, msg=None, sourceContentId=None, mids=None,): self.requestId = requestId self.msg = msg self.sourceContentId = sourceContentId self.mids = mids 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.msg = Message() self.msg.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.sourceContentId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.mids = [] (_etype407, _size404) = iprot.readListBegin() for _i408 in xrange(_size404): _elem409 = iprot.readString() self.mids.append(_elem409) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('linkAndSendBuddyContentMessageTomids_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.msg is not None: oprot.writeFieldBegin('msg', TType.STRUCT, 2) self.msg.write(oprot) oprot.writeFieldEnd() if self.sourceContentId is not None: oprot.writeFieldBegin('sourceContentId', TType.STRING, 3) oprot.writeString(self.sourceContentId) oprot.writeFieldEnd() if self.mids is not None: oprot.writeFieldBegin('mids', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.mids)) for iter410 in self.mids: oprot.writeString(iter410) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.msg) value = (value * 31) ^ hash(self.sourceContentId) value = (value * 31) ^ hash(self.mids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class linkAndSendBuddyContentMessageTomids_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SendBuddyMessageResult, SendBuddyMessageResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SendBuddyMessageResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('linkAndSendBuddyContentMessageTomids_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyBuddyBlocked_args: """ Attributes: - buddyMid - blockerMid """ thrift_spec = ( None, # 0 (1, TType.STRING, 'buddyMid', None, None, ), # 1 (2, TType.STRING, 'blockerMid', None, None, ), # 2 ) def __init__(self, buddyMid=None, blockerMid=None,): self.buddyMid = buddyMid self.blockerMid = blockerMid 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.buddyMid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.blockerMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyBuddyBlocked_args') if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 1) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() if self.blockerMid is not None: oprot.writeFieldBegin('blockerMid', TType.STRING, 2) oprot.writeString(self.blockerMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyMid) value = (value * 31) ^ hash(self.blockerMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyBuddyBlocked_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyBuddyBlocked_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyBuddyUnblocked_args: """ Attributes: - buddyMid - blockerMid """ thrift_spec = ( None, # 0 (1, TType.STRING, 'buddyMid', None, None, ), # 1 (2, TType.STRING, 'blockerMid', None, None, ), # 2 ) def __init__(self, buddyMid=None, blockerMid=None,): self.buddyMid = buddyMid self.blockerMid = blockerMid 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.buddyMid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.blockerMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyBuddyUnblocked_args') if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 1) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() if self.blockerMid is not None: oprot.writeFieldBegin('blockerMid', TType.STRING, 2) oprot.writeString(self.blockerMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyMid) value = (value * 31) ^ hash(self.blockerMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyBuddyUnblocked_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyBuddyUnblocked_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerBuddy_args: """ Attributes: - buddyId - searchId - displayName - statusMeessage - picture - settings """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'buddyId', None, None, ), # 2 (3, TType.STRING, 'searchId', None, None, ), # 3 (4, TType.STRING, 'displayName', None, None, ), # 4 (5, TType.STRING, 'statusMeessage', None, None, ), # 5 (6, TType.STRING, 'picture', None, None, ), # 6 (7, TType.MAP, 'settings', (TType.STRING,None,TType.STRING,None), None, ), # 7 ) def __init__(self, buddyId=None, searchId=None, displayName=None, statusMeessage=None, picture=None, settings=None,): self.buddyId = buddyId self.searchId = searchId self.displayName = displayName self.statusMeessage = statusMeessage self.picture = picture self.settings = settings 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 == 2: if ftype == TType.STRING: self.buddyId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.searchId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.displayName = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.statusMeessage = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.picture = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.MAP: self.settings = {} (_ktype412, _vtype413, _size411 ) = iprot.readMapBegin() for _i415 in xrange(_size411): _key416 = iprot.readString() _val417 = iprot.readString() self.settings[_key416] = _val417 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerBuddy_args') if self.buddyId is not None: oprot.writeFieldBegin('buddyId', TType.STRING, 2) oprot.writeString(self.buddyId) oprot.writeFieldEnd() if self.searchId is not None: oprot.writeFieldBegin('searchId', TType.STRING, 3) oprot.writeString(self.searchId) oprot.writeFieldEnd() if self.displayName is not None: oprot.writeFieldBegin('displayName', TType.STRING, 4) oprot.writeString(self.displayName) oprot.writeFieldEnd() if self.statusMeessage is not None: oprot.writeFieldBegin('statusMeessage', TType.STRING, 5) oprot.writeString(self.statusMeessage) oprot.writeFieldEnd() if self.picture is not None: oprot.writeFieldBegin('picture', TType.STRING, 6) oprot.writeString(self.picture) oprot.writeFieldEnd() if self.settings is not None: oprot.writeFieldBegin('settings', TType.MAP, 7) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.settings)) for kiter418,viter419 in self.settings.items(): oprot.writeString(kiter418) oprot.writeString(viter419) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyId) value = (value * 31) ^ hash(self.searchId) value = (value * 31) ^ hash(self.displayName) value = (value * 31) ^ hash(self.statusMeessage) value = (value * 31) ^ hash(self.picture) value = (value * 31) ^ hash(self.settings) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerBuddy_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerBuddy_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerBuddyAdmin_args: """ Attributes: - buddyId - searchId - displayName - statusMessage - picture """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'buddyId', None, None, ), # 2 (3, TType.STRING, 'searchId', None, None, ), # 3 (4, TType.STRING, 'displayName', None, None, ), # 4 (5, TType.STRING, 'statusMessage', None, None, ), # 5 (6, TType.STRING, 'picture', None, None, ), # 6 ) def __init__(self, buddyId=None, searchId=None, displayName=None, statusMessage=None, picture=None,): self.buddyId = buddyId self.searchId = searchId self.displayName = displayName self.statusMessage = statusMessage self.picture = picture 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 == 2: if ftype == TType.STRING: self.buddyId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.searchId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.displayName = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.statusMessage = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.picture = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerBuddyAdmin_args') if self.buddyId is not None: oprot.writeFieldBegin('buddyId', TType.STRING, 2) oprot.writeString(self.buddyId) oprot.writeFieldEnd() if self.searchId is not None: oprot.writeFieldBegin('searchId', TType.STRING, 3) oprot.writeString(self.searchId) oprot.writeFieldEnd() if self.displayName is not None: oprot.writeFieldBegin('displayName', TType.STRING, 4) oprot.writeString(self.displayName) oprot.writeFieldEnd() if self.statusMessage is not None: oprot.writeFieldBegin('statusMessage', TType.STRING, 5) oprot.writeString(self.statusMessage) oprot.writeFieldEnd() if self.picture is not None: oprot.writeFieldBegin('picture', TType.STRING, 6) oprot.writeString(self.picture) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyId) value = (value * 31) ^ hash(self.searchId) value = (value * 31) ^ hash(self.displayName) value = (value * 31) ^ hash(self.statusMessage) value = (value * 31) ^ hash(self.picture) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerBuddyAdmin_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerBuddyAdmin_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reissueContactTicket_args: """ Attributes: - expirationTime - maxUseCount """ thrift_spec = ( None, # 0 None, # 1 None, # 2 (3, TType.I64, 'expirationTime', None, None, ), # 3 (4, TType.I32, 'maxUseCount', None, None, ), # 4 ) def __init__(self, expirationTime=None, maxUseCount=None,): self.expirationTime = expirationTime self.maxUseCount = maxUseCount 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 == 3: if ftype == TType.I64: self.expirationTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.maxUseCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reissueContactTicket_args') if self.expirationTime is not None: oprot.writeFieldBegin('expirationTime', TType.I64, 3) oprot.writeI64(self.expirationTime) oprot.writeFieldEnd() if self.maxUseCount is not None: oprot.writeFieldBegin('maxUseCount', TType.I32, 4) oprot.writeI32(self.maxUseCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.expirationTime) value = (value * 31) ^ hash(self.maxUseCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reissueContactTicket_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reissueContactTicket_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeBuddyMember_args: """ Attributes: - requestId - userMid """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'userMid', None, None, ), # 2 ) def __init__(self, requestId=None, userMid=None,): self.requestId = requestId self.userMid = userMid 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.userMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeBuddyMember_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.userMid is not None: oprot.writeFieldBegin('userMid', TType.STRING, 2) oprot.writeString(self.userMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.userMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeBuddyMember_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeBuddyMember_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeBuddyMembers_args: """ Attributes: - requestId - userMids """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.LIST, 'userMids', (TType.STRING,None), None, ), # 2 ) def __init__(self, requestId=None, userMids=None,): self.requestId = requestId self.userMids = userMids 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.userMids = [] (_etype423, _size420) = iprot.readListBegin() for _i424 in xrange(_size420): _elem425 = iprot.readString() self.userMids.append(_elem425) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeBuddyMembers_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.userMids is not None: oprot.writeFieldBegin('userMids', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.userMids)) for iter426 in self.userMids: oprot.writeString(iter426) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.userMids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeBuddyMembers_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeBuddyMembers_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyContentMessageToAll_args: """ Attributes: - requestId - msg - content """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'msg', (Message, Message.thrift_spec), None, ), # 2 (3, TType.STRING, 'content', None, None, ), # 3 ) def __init__(self, requestId=None, msg=None, content=None,): self.requestId = requestId self.msg = msg self.content = content 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.msg = Message() self.msg.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.content = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyContentMessageToAll_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.msg is not None: oprot.writeFieldBegin('msg', TType.STRUCT, 2) self.msg.write(oprot) oprot.writeFieldEnd() if self.content is not None: oprot.writeFieldBegin('content', TType.STRING, 3) oprot.writeString(self.content) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.msg) value = (value * 31) ^ hash(self.content) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyContentMessageToAll_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SendBuddyMessageResult, SendBuddyMessageResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SendBuddyMessageResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyContentMessageToAll_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyContentMessageToAllAsync_args: """ Attributes: - requestId - msg - content """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'msg', (Message, Message.thrift_spec), None, ), # 2 (3, TType.STRING, 'content', None, None, ), # 3 ) def __init__(self, requestId=None, msg=None, content=None,): self.requestId = requestId self.msg = msg self.content = content 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.msg = Message() self.msg.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.content = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyContentMessageToAllAsync_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.msg is not None: oprot.writeFieldBegin('msg', TType.STRUCT, 2) self.msg.write(oprot) oprot.writeFieldEnd() if self.content is not None: oprot.writeFieldBegin('content', TType.STRING, 3) oprot.writeString(self.content) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.msg) value = (value * 31) ^ hash(self.content) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyContentMessageToAllAsync_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyContentMessageToAllAsync_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyContentMessageTomids_args: """ Attributes: - requestId - msg - content - mids """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'msg', (Message, Message.thrift_spec), None, ), # 2 (3, TType.STRING, 'content', None, None, ), # 3 (4, TType.LIST, 'mids', (TType.STRING,None), None, ), # 4 ) def __init__(self, requestId=None, msg=None, content=None, mids=None,): self.requestId = requestId self.msg = msg self.content = content self.mids = mids 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.msg = Message() self.msg.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.content = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.mids = [] (_etype430, _size427) = iprot.readListBegin() for _i431 in xrange(_size427): _elem432 = iprot.readString() self.mids.append(_elem432) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyContentMessageTomids_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.msg is not None: oprot.writeFieldBegin('msg', TType.STRUCT, 2) self.msg.write(oprot) oprot.writeFieldEnd() if self.content is not None: oprot.writeFieldBegin('content', TType.STRING, 3) oprot.writeString(self.content) oprot.writeFieldEnd() if self.mids is not None: oprot.writeFieldBegin('mids', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.mids)) for iter433 in self.mids: oprot.writeString(iter433) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.msg) value = (value * 31) ^ hash(self.content) value = (value * 31) ^ hash(self.mids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyContentMessageTomids_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SendBuddyMessageResult, SendBuddyMessageResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SendBuddyMessageResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyContentMessageTomids_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyContentMessageTomidsAsync_args: """ Attributes: - requestId - msg - content - mids """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'msg', (Message, Message.thrift_spec), None, ), # 2 (3, TType.STRING, 'content', None, None, ), # 3 (4, TType.LIST, 'mids', (TType.STRING,None), None, ), # 4 ) def __init__(self, requestId=None, msg=None, content=None, mids=None,): self.requestId = requestId self.msg = msg self.content = content self.mids = mids 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.msg = Message() self.msg.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.content = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.mids = [] (_etype437, _size434) = iprot.readListBegin() for _i438 in xrange(_size434): _elem439 = iprot.readString() self.mids.append(_elem439) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyContentMessageTomidsAsync_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.msg is not None: oprot.writeFieldBegin('msg', TType.STRUCT, 2) self.msg.write(oprot) oprot.writeFieldEnd() if self.content is not None: oprot.writeFieldBegin('content', TType.STRING, 3) oprot.writeString(self.content) oprot.writeFieldEnd() if self.mids is not None: oprot.writeFieldBegin('mids', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.mids)) for iter440 in self.mids: oprot.writeString(iter440) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.msg) value = (value * 31) ^ hash(self.content) value = (value * 31) ^ hash(self.mids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyContentMessageTomidsAsync_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyContentMessageTomidsAsync_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyMessageToAll_args: """ Attributes: - requestId - msg """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'msg', (Message, Message.thrift_spec), None, ), # 2 ) def __init__(self, requestId=None, msg=None,): self.requestId = requestId self.msg = msg 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.msg = Message() self.msg.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyMessageToAll_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.msg is not None: oprot.writeFieldBegin('msg', TType.STRUCT, 2) self.msg.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.msg) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyMessageToAll_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SendBuddyMessageResult, SendBuddyMessageResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SendBuddyMessageResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyMessageToAll_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyMessageToAllAsync_args: """ Attributes: - requestId - msg """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'msg', (Message, Message.thrift_spec), None, ), # 2 ) def __init__(self, requestId=None, msg=None,): self.requestId = requestId self.msg = msg 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.msg = Message() self.msg.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyMessageToAllAsync_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.msg is not None: oprot.writeFieldBegin('msg', TType.STRUCT, 2) self.msg.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.msg) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyMessageToAllAsync_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyMessageToAllAsync_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyMessageTomids_args: """ Attributes: - requestId - msg - mids """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'msg', (Message, Message.thrift_spec), None, ), # 2 (3, TType.LIST, 'mids', (TType.STRING,None), None, ), # 3 ) def __init__(self, requestId=None, msg=None, mids=None,): self.requestId = requestId self.msg = msg self.mids = mids 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.msg = Message() self.msg.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mids = [] (_etype444, _size441) = iprot.readListBegin() for _i445 in xrange(_size441): _elem446 = iprot.readString() self.mids.append(_elem446) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyMessageTomids_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.msg is not None: oprot.writeFieldBegin('msg', TType.STRUCT, 2) self.msg.write(oprot) oprot.writeFieldEnd() if self.mids is not None: oprot.writeFieldBegin('mids', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.mids)) for iter447 in self.mids: oprot.writeString(iter447) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.msg) value = (value * 31) ^ hash(self.mids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyMessageTomids_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SendBuddyMessageResult, SendBuddyMessageResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SendBuddyMessageResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyMessageTomids_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyMessageTomidsAsync_args: """ Attributes: - requestId - msg - mids """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'msg', (Message, Message.thrift_spec), None, ), # 2 (3, TType.LIST, 'mids', (TType.STRING,None), None, ), # 3 ) def __init__(self, requestId=None, msg=None, mids=None,): self.requestId = requestId self.msg = msg self.mids = mids 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.msg = Message() self.msg.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mids = [] (_etype451, _size448) = iprot.readListBegin() for _i452 in xrange(_size448): _elem453 = iprot.readString() self.mids.append(_elem453) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyMessageTomidsAsync_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.msg is not None: oprot.writeFieldBegin('msg', TType.STRUCT, 2) self.msg.write(oprot) oprot.writeFieldEnd() if self.mids is not None: oprot.writeFieldBegin('mids', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.mids)) for iter454 in self.mids: oprot.writeString(iter454) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.msg) value = (value * 31) ^ hash(self.mids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendBuddyMessageTomidsAsync_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendBuddyMessageTomidsAsync_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendIndividualEventToAllAsync_args: """ Attributes: - requestId - buddyMid - notificationStatus """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'buddyMid', None, None, ), # 2 (3, TType.I32, 'notificationStatus', None, None, ), # 3 ) def __init__(self, requestId=None, buddyMid=None, notificationStatus=None,): self.requestId = requestId self.buddyMid = buddyMid self.notificationStatus = notificationStatus 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.buddyMid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.notificationStatus = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendIndividualEventToAllAsync_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 2) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() if self.notificationStatus is not None: oprot.writeFieldBegin('notificationStatus', TType.I32, 3) oprot.writeI32(self.notificationStatus) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.buddyMid) value = (value * 31) ^ hash(self.notificationStatus) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendIndividualEventToAllAsync_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendIndividualEventToAllAsync_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class setBuddyOnAir_args: """ Attributes: - requestId - onAir """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.BOOL, 'onAir', None, None, ), # 2 ) def __init__(self, requestId=None, onAir=None,): self.requestId = requestId self.onAir = onAir 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: self.onAir = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('setBuddyOnAir_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.onAir is not None: oprot.writeFieldBegin('onAir', TType.BOOL, 2) oprot.writeBool(self.onAir) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.onAir) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class setBuddyOnAir_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SetBuddyOnAirResult, SetBuddyOnAirResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SetBuddyOnAirResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('setBuddyOnAir_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class setBuddyOnAirAsync_args: """ Attributes: - requestId - onAir """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.BOOL, 'onAir', None, None, ), # 2 ) def __init__(self, requestId=None, onAir=None,): self.requestId = requestId self.onAir = onAir 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: self.onAir = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('setBuddyOnAirAsync_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.onAir is not None: oprot.writeFieldBegin('onAir', TType.BOOL, 2) oprot.writeBool(self.onAir) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.onAir) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class setBuddyOnAirAsync_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('setBuddyOnAirAsync_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class storeMessage_args: """ Attributes: - requestId - messageRequest """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRUCT, 'messageRequest', (BuddyMessageRequest, BuddyMessageRequest.thrift_spec), None, ), # 2 ) def __init__(self, requestId=None, messageRequest=None,): self.requestId = requestId self.messageRequest = messageRequest 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.messageRequest = BuddyMessageRequest() self.messageRequest.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('storeMessage_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.messageRequest is not None: oprot.writeFieldBegin('messageRequest', TType.STRUCT, 2) self.messageRequest.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.messageRequest) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class storeMessage_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SendBuddyMessageResult, SendBuddyMessageResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SendBuddyMessageResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('storeMessage_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unblockBuddyMember_args: """ Attributes: - requestId - mid """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'mid', None, None, ), # 2 ) def __init__(self, requestId=None, mid=None,): self.requestId = requestId self.mid = mid 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unblockBuddyMember_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.mid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unblockBuddyMember_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unblockBuddyMember_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unregisterBuddy_args: """ Attributes: - requestId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 ) def __init__(self, requestId=None,): self.requestId = requestId 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.requestId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unregisterBuddy_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unregisterBuddy_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unregisterBuddy_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unregisterBuddyAdmin_args: """ Attributes: - requestId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 ) def __init__(self, requestId=None,): self.requestId = requestId 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.requestId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unregisterBuddyAdmin_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unregisterBuddyAdmin_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unregisterBuddyAdmin_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyAdminProfileAttribute_args: """ Attributes: - requestId - attributes """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 2 ) def __init__(self, requestId=None, attributes=None,): self.requestId = requestId self.attributes = attributes 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.attributes = {} (_ktype456, _vtype457, _size455 ) = iprot.readMapBegin() for _i459 in xrange(_size455): _key460 = iprot.readString() _val461 = iprot.readString() self.attributes[_key460] = _val461 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyAdminProfileAttribute_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) for kiter462,viter463 in self.attributes.items(): oprot.writeString(kiter462) oprot.writeString(viter463) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.attributes) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyAdminProfileAttribute_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyAdminProfileAttribute_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyAdminProfileImage_args: """ Attributes: - requestId - picture """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'picture', None, None, ), # 2 ) def __init__(self, requestId=None, picture=None,): self.requestId = requestId self.picture = picture 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.picture = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyAdminProfileImage_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.picture is not None: oprot.writeFieldBegin('picture', TType.STRING, 2) oprot.writeString(self.picture) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.picture) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyAdminProfileImage_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyAdminProfileImage_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyProfileAttributes_args: """ Attributes: - requestId - attributes """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 2 ) def __init__(self, requestId=None, attributes=None,): self.requestId = requestId self.attributes = attributes 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.attributes = {} (_ktype465, _vtype466, _size464 ) = iprot.readMapBegin() for _i468 in xrange(_size464): _key469 = iprot.readString() _val470 = iprot.readString() self.attributes[_key469] = _val470 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyProfileAttributes_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) for kiter471,viter472 in self.attributes.items(): oprot.writeString(kiter471) oprot.writeString(viter472) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.attributes) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyProfileAttributes_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (UpdateBuddyProfileResult, UpdateBuddyProfileResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = UpdateBuddyProfileResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyProfileAttributes_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyProfileAttributesAsync_args: """ Attributes: - requestId - attributes """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.MAP, 'attributes', (TType.STRING,None,TType.STRING,None), None, ), # 2 ) def __init__(self, requestId=None, attributes=None,): self.requestId = requestId self.attributes = attributes 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.attributes = {} (_ktype474, _vtype475, _size473 ) = iprot.readMapBegin() for _i477 in xrange(_size473): _key478 = iprot.readString() _val479 = iprot.readString() self.attributes[_key478] = _val479 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyProfileAttributesAsync_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) for kiter480,viter481 in self.attributes.items(): oprot.writeString(kiter480) oprot.writeString(viter481) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.attributes) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyProfileAttributesAsync_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyProfileAttributesAsync_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyProfileImage_args: """ Attributes: - requestId - image """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'image', None, None, ), # 2 ) def __init__(self, requestId=None, image=None,): self.requestId = requestId self.image = image 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.image = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyProfileImage_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.image is not None: oprot.writeFieldBegin('image', TType.STRING, 2) oprot.writeString(self.image) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.image) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyProfileImage_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (UpdateBuddyProfileResult, UpdateBuddyProfileResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = UpdateBuddyProfileResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyProfileImage_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyProfileImageAsync_args: """ Attributes: - requestId - image """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'image', None, None, ), # 2 ) def __init__(self, requestId=None, image=None,): self.requestId = requestId self.image = image 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.image = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyProfileImageAsync_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.image is not None: oprot.writeFieldBegin('image', TType.STRING, 2) oprot.writeString(self.image) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.image) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddyProfileImageAsync_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddyProfileImageAsync_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddySearchId_args: """ Attributes: - requestId - searchId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.STRING, 'searchId', None, None, ), # 2 ) def __init__(self, requestId=None, searchId=None,): self.requestId = requestId self.searchId = searchId 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.searchId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddySearchId_args') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.searchId is not None: oprot.writeFieldBegin('searchId', TType.STRING, 2) oprot.writeString(self.searchId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.searchId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddySearchId_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddySearchId_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddySettings_args: """ Attributes: - settings """ thrift_spec = ( None, # 0 None, # 1 (2, TType.MAP, 'settings', (TType.STRING,None,TType.STRING,None), None, ), # 2 ) def __init__(self, settings=None,): self.settings = settings 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 == 2: if ftype == TType.MAP: self.settings = {} (_ktype483, _vtype484, _size482 ) = iprot.readMapBegin() for _i486 in xrange(_size482): _key487 = iprot.readString() _val488 = iprot.readString() self.settings[_key487] = _val488 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddySettings_args') if self.settings is not None: oprot.writeFieldBegin('settings', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.settings)) for kiter489,viter490 in self.settings.items(): oprot.writeString(kiter489) oprot.writeString(viter490) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.settings) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddySettings_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddySettings_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class uploadBuddyContent_args: """ Attributes: - contentType - content """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'contentType', None, None, ), # 2 (3, TType.STRING, 'content', None, None, ), # 3 ) def __init__(self, contentType=None, content=None,): self.contentType = contentType self.content = content 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 == 2: if ftype == TType.I32: self.contentType = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.content = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('uploadBuddyContent_args') if self.contentType is not None: oprot.writeFieldBegin('contentType', TType.I32, 2) oprot.writeI32(self.contentType) oprot.writeFieldEnd() if self.content is not None: oprot.writeFieldBegin('content', TType.STRING, 3) oprot.writeString(self.content) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.contentType) value = (value * 31) ^ hash(self.content) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class uploadBuddyContent_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('uploadBuddyContent_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findBuddyContactsByQuery_args: """ Attributes: - language - country - query - fromIndex - count - requestSource """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'language', None, None, ), # 2 (3, TType.STRING, 'country', None, None, ), # 3 (4, TType.STRING, 'query', None, None, ), # 4 (5, TType.I32, 'fromIndex', None, None, ), # 5 (6, TType.I32, 'count', None, None, ), # 6 (7, TType.I32, 'requestSource', None, None, ), # 7 ) def __init__(self, language=None, country=None, query=None, fromIndex=None, count=None, requestSource=None,): self.language = language self.country = country self.query = query self.fromIndex = fromIndex self.count = count self.requestSource = requestSource 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 == 2: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.query = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.fromIndex = iprot.readI32() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I32: self.count = iprot.readI32() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I32: self.requestSource = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findBuddyContactsByQuery_args') if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 2) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 3) oprot.writeString(self.country) oprot.writeFieldEnd() if self.query is not None: oprot.writeFieldBegin('query', TType.STRING, 4) oprot.writeString(self.query) oprot.writeFieldEnd() if self.fromIndex is not None: oprot.writeFieldBegin('fromIndex', TType.I32, 5) oprot.writeI32(self.fromIndex) oprot.writeFieldEnd() if self.count is not None: oprot.writeFieldBegin('count', TType.I32, 6) oprot.writeI32(self.count) oprot.writeFieldEnd() if self.requestSource is not None: oprot.writeFieldBegin('requestSource', TType.I32, 7) oprot.writeI32(self.requestSource) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.query) value = (value * 31) ^ hash(self.fromIndex) value = (value * 31) ^ hash(self.count) value = (value * 31) ^ hash(self.requestSource) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findBuddyContactsByQuery_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(BuddySearchResult, BuddySearchResult.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype494, _size491) = iprot.readListBegin() for _i495 in xrange(_size491): _elem496 = BuddySearchResult() _elem496.read(iprot) self.success.append(_elem496) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findBuddyContactsByQuery_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter497 in self.success: iter497.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyContacts_args: """ Attributes: - language - country - classification - fromIndex - count """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'language', None, None, ), # 2 (3, TType.STRING, 'country', None, None, ), # 3 (4, TType.STRING, 'classification', None, None, ), # 4 (5, TType.I32, 'fromIndex', None, None, ), # 5 (6, TType.I32, 'count', None, None, ), # 6 ) def __init__(self, language=None, country=None, classification=None, fromIndex=None, count=None,): self.language = language self.country = country self.classification = classification self.fromIndex = fromIndex self.count = count 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 == 2: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.classification = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.fromIndex = iprot.readI32() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I32: self.count = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyContacts_args') if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 2) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 3) oprot.writeString(self.country) oprot.writeFieldEnd() if self.classification is not None: oprot.writeFieldBegin('classification', TType.STRING, 4) oprot.writeString(self.classification) oprot.writeFieldEnd() if self.fromIndex is not None: oprot.writeFieldBegin('fromIndex', TType.I32, 5) oprot.writeI32(self.fromIndex) oprot.writeFieldEnd() if self.count is not None: oprot.writeFieldBegin('count', TType.I32, 6) oprot.writeI32(self.count) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.classification) value = (value * 31) ^ hash(self.fromIndex) value = (value * 31) ^ hash(self.count) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyContacts_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype501, _size498) = iprot.readListBegin() for _i502 in xrange(_size498): _elem503 = Contact() _elem503.read(iprot) self.success.append(_elem503) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyContacts_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter504 in self.success: iter504.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyDetail_args: """ Attributes: - buddyMid """ thrift_spec = ( None, # 0 None, # 1 None, # 2 None, # 3 (4, TType.STRING, 'buddyMid', None, None, ), # 4 ) def __init__(self, buddyMid=None,): self.buddyMid = buddyMid 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 == 4: if ftype == TType.STRING: self.buddyMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyDetail_args') if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 4) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyDetail_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (BuddyDetail, BuddyDetail.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = BuddyDetail() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyDetail_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyOnAir_args: """ Attributes: - buddyMid """ thrift_spec = ( None, # 0 None, # 1 None, # 2 None, # 3 (4, TType.STRING, 'buddyMid', None, None, ), # 4 ) def __init__(self, buddyMid=None,): self.buddyMid = buddyMid 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 == 4: if ftype == TType.STRING: self.buddyMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyOnAir_args') if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 4) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyOnAir_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (BuddyOnAir, BuddyOnAir.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = BuddyOnAir() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyOnAir_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCountriesHavingBuddy_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCountriesHavingBuddy_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCountriesHavingBuddy_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype508, _size505) = iprot.readListBegin() for _i509 in xrange(_size505): _elem510 = iprot.readString() self.success.append(_elem510) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCountriesHavingBuddy_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter511 in self.success: oprot.writeString(iter511) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNewlyReleasedBuddyIds_args: """ Attributes: - country """ thrift_spec = ( None, # 0 None, # 1 None, # 2 (3, TType.STRING, 'country', None, None, ), # 3 ) def __init__(self, country=None,): self.country = country 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 == 3: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getNewlyReleasedBuddyIds_args') if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 3) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNewlyReleasedBuddyIds_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.I64,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype513, _vtype514, _size512 ) = iprot.readMapBegin() for _i516 in xrange(_size512): _key517 = iprot.readString() _val518 = iprot.readI64() self.success[_key517] = _val518 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getNewlyReleasedBuddyIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.I64, len(self.success)) for kiter519,viter520 in self.success.items(): oprot.writeString(kiter519) oprot.writeI64(viter520) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPopularBuddyBanner_args: """ Attributes: - language - country - applicationType - resourceSpecification """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'language', None, None, ), # 2 (3, TType.STRING, 'country', None, None, ), # 3 (4, TType.I32, 'applicationType', None, None, ), # 4 (5, TType.STRING, 'resourceSpecification', None, None, ), # 5 ) def __init__(self, language=None, country=None, applicationType=None, resourceSpecification=None,): self.language = language self.country = country self.applicationType = applicationType self.resourceSpecification = resourceSpecification 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 == 2: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.applicationType = iprot.readI32() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.resourceSpecification = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPopularBuddyBanner_args') if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 2) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 3) oprot.writeString(self.country) oprot.writeFieldEnd() if self.applicationType is not None: oprot.writeFieldBegin('applicationType', TType.I32, 4) oprot.writeI32(self.applicationType) oprot.writeFieldEnd() if self.resourceSpecification is not None: oprot.writeFieldBegin('resourceSpecification', TType.STRING, 5) oprot.writeString(self.resourceSpecification) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.applicationType) value = (value * 31) ^ hash(self.resourceSpecification) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPopularBuddyBanner_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (BuddyBanner, BuddyBanner.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = BuddyBanner() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPopularBuddyBanner_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPopularBuddyLists_args: """ Attributes: - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'language', None, None, ), # 2 (3, TType.STRING, 'country', None, None, ), # 3 ) def __init__(self, language=None, country=None,): self.language = language self.country = country 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 == 2: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPopularBuddyLists_args') if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 2) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 3) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPopularBuddyLists_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(BuddyList, BuddyList.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype524, _size521) = iprot.readListBegin() for _i525 in xrange(_size521): _elem526 = BuddyList() _elem526.read(iprot) self.success.append(_elem526) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPopularBuddyLists_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter527 in self.success: iter527.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPromotedBuddyContacts_args: """ Attributes: - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'language', None, None, ), # 2 (3, TType.STRING, 'country', None, None, ), # 3 ) def __init__(self, language=None, country=None,): self.language = language self.country = country 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 == 2: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPromotedBuddyContacts_args') if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 2) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 3) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPromotedBuddyContacts_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype531, _size528) = iprot.readListBegin() for _i532 in xrange(_size528): _elem533 = Contact() _elem533.read(iprot) self.success.append(_elem533) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPromotedBuddyContacts_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter534 in self.success: iter534.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class activeBuddySubscriberCount_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('activeBuddySubscriberCount_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class activeBuddySubscriberCount_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I64, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I64: self.success = iprot.readI64() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('activeBuddySubscriberCount_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class addOperationForChannel_args: """ Attributes: - opType - param1 - param2 - param3 """ thrift_spec = ( None, # 0 (1, TType.I32, 'opType', None, None, ), # 1 (2, TType.STRING, 'param1', None, None, ), # 2 (3, TType.STRING, 'param2', None, None, ), # 3 (4, TType.STRING, 'param3', None, None, ), # 4 ) def __init__(self, opType=None, param1=None, param2=None, param3=None,): self.opType = opType self.param1 = param1 self.param2 = param2 self.param3 = param3 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.opType = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.param1 = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.param2 = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.param3 = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('addOperationForChannel_args') if self.opType is not None: oprot.writeFieldBegin('opType', TType.I32, 1) oprot.writeI32(self.opType) oprot.writeFieldEnd() if self.param1 is not None: oprot.writeFieldBegin('param1', TType.STRING, 2) oprot.writeString(self.param1) oprot.writeFieldEnd() if self.param2 is not None: oprot.writeFieldBegin('param2', TType.STRING, 3) oprot.writeString(self.param2) oprot.writeFieldEnd() if self.param3 is not None: oprot.writeFieldBegin('param3', TType.STRING, 4) oprot.writeString(self.param3) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.opType) value = (value * 31) ^ hash(self.param1) value = (value * 31) ^ hash(self.param2) value = (value * 31) ^ hash(self.param3) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class addOperationForChannel_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('addOperationForChannel_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class displayBuddySubscriberCount_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('displayBuddySubscriberCount_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class displayBuddySubscriberCount_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I64, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I64: self.success = iprot.readI64() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('displayBuddySubscriberCount_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findContactByUseridWithoutAbuseBlockForChannel_args: """ Attributes: - userid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'userid', None, None, ), # 2 ) def __init__(self, userid=None,): self.userid = userid 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 == 2: if ftype == TType.STRING: self.userid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findContactByUseridWithoutAbuseBlockForChannel_args') if self.userid is not None: oprot.writeFieldBegin('userid', TType.STRING, 2) oprot.writeString(self.userid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.userid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findContactByUseridWithoutAbuseBlockForChannel_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Contact, Contact.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Contact() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findContactByUseridWithoutAbuseBlockForChannel_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getAllContactIdsForChannel_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getAllContactIdsForChannel_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getAllContactIdsForChannel_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype538, _size535) = iprot.readListBegin() for _i539 in xrange(_size535): _elem540 = iprot.readString() self.success.append(_elem540) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getAllContactIdsForChannel_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter541 in self.success: oprot.writeString(iter541) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCompactContacts_args: """ Attributes: - lastModifiedTimestamp """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'lastModifiedTimestamp', None, None, ), # 2 ) def __init__(self, lastModifiedTimestamp=None,): self.lastModifiedTimestamp = lastModifiedTimestamp 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 == 2: if ftype == TType.I64: self.lastModifiedTimestamp = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCompactContacts_args') if self.lastModifiedTimestamp is not None: oprot.writeFieldBegin('lastModifiedTimestamp', TType.I64, 2) oprot.writeI64(self.lastModifiedTimestamp) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.lastModifiedTimestamp) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCompactContacts_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(CompactContact, CompactContact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype545, _size542) = iprot.readListBegin() for _i546 in xrange(_size542): _elem547 = CompactContact() _elem547.read(iprot) self.success.append(_elem547) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCompactContacts_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter548 in self.success: iter548.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getContactsForChannel_args: """ Attributes: - ids """ thrift_spec = ( None, # 0 None, # 1 (2, TType.LIST, 'ids', (TType.STRING,None), None, ), # 2 ) def __init__(self, ids=None,): self.ids = ids 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 == 2: if ftype == TType.LIST: self.ids = [] (_etype552, _size549) = iprot.readListBegin() for _i553 in xrange(_size549): _elem554 = iprot.readString() self.ids.append(_elem554) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getContactsForChannel_args') if self.ids is not None: oprot.writeFieldBegin('ids', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.ids)) for iter555 in self.ids: oprot.writeString(iter555) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.ids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getContactsForChannel_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype559, _size556) = iprot.readListBegin() for _i560 in xrange(_size556): _elem561 = Contact() _elem561.read(iprot) self.success.append(_elem561) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getContactsForChannel_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter562 in self.success: iter562.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getDisplayName_args: """ Attributes: - mid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'mid', None, None, ), # 2 ) def __init__(self, mid=None,): self.mid = mid 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 == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getDisplayName_args') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getDisplayName_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getDisplayName_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getFavoriteMidsForChannel_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getFavoriteMidsForChannel_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getFavoriteMidsForChannel_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype566, _size563) = iprot.readListBegin() for _i567 in xrange(_size563): _elem568 = iprot.readString() self.success.append(_elem568) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getFavoriteMidsForChannel_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter569 in self.success: oprot.writeString(iter569) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getFriendMids_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getFriendMids_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getFriendMids_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype573, _size570) = iprot.readListBegin() for _i574 in xrange(_size570): _elem575 = iprot.readString() self.success.append(_elem575) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getFriendMids_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter576 in self.success: oprot.writeString(iter576) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroupMemberMids_args: """ Attributes: - groupId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'groupId', None, None, ), # 1 ) def __init__(self, groupId=None,): self.groupId = groupId 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.groupId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroupMemberMids_args') if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 1) oprot.writeString(self.groupId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.groupId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroupMemberMids_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype580, _size577) = iprot.readListBegin() for _i581 in xrange(_size577): _elem582 = iprot.readString() self.success.append(_elem582) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroupMemberMids_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter583 in self.success: oprot.writeString(iter583) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroupsForChannel_args: """ Attributes: - groupIds """ thrift_spec = ( None, # 0 (1, TType.LIST, 'groupIds', (TType.STRING,None), None, ), # 1 ) def __init__(self, groupIds=None,): self.groupIds = groupIds 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.groupIds = [] (_etype587, _size584) = iprot.readListBegin() for _i588 in xrange(_size584): _elem589 = iprot.readString() self.groupIds.append(_elem589) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroupsForChannel_args') if self.groupIds is not None: oprot.writeFieldBegin('groupIds', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.groupIds)) for iter590 in self.groupIds: oprot.writeString(iter590) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.groupIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroupsForChannel_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Group, Group.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype594, _size591) = iprot.readListBegin() for _i595 in xrange(_size591): _elem596 = Group() _elem596.read(iprot) self.success.append(_elem596) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroupsForChannel_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter597 in self.success: iter597.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getIdentityCredential_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getIdentityCredential_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getIdentityCredential_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (IdentityCredential, IdentityCredential.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = IdentityCredential() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getIdentityCredential_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getJoinedGroupIdsForChannel_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getJoinedGroupIdsForChannel_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getJoinedGroupIdsForChannel_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype601, _size598) = iprot.readListBegin() for _i602 in xrange(_size598): _elem603 = iprot.readString() self.success.append(_elem603) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getJoinedGroupIdsForChannel_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter604 in self.success: oprot.writeString(iter604) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMetaProfile_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMetaProfile_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMetaProfile_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (MetaProfile, MetaProfile.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = MetaProfile() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMetaProfile_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMid_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMid_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPrimaryClientForChannel_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPrimaryClientForChannel_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPrimaryClientForChannel_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SimpleChannelClient, SimpleChannelClient.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SimpleChannelClient() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPrimaryClientForChannel_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProfileForChannel_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProfileForChannel_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProfileForChannel_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Profile, Profile.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Profile() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProfileForChannel_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSimpleChannelContacts_args: """ Attributes: - ids """ thrift_spec = ( None, # 0 (1, TType.LIST, 'ids', (TType.STRING,None), None, ), # 1 ) def __init__(self, ids=None,): self.ids = ids 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.ids = [] (_etype608, _size605) = iprot.readListBegin() for _i609 in xrange(_size605): _elem610 = iprot.readString() self.ids.append(_elem610) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSimpleChannelContacts_args') if self.ids is not None: oprot.writeFieldBegin('ids', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.ids)) for iter611 in self.ids: oprot.writeString(iter611) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.ids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSimpleChannelContacts_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(SimpleChannelContact, SimpleChannelContact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype615, _size612) = iprot.readListBegin() for _i616 in xrange(_size612): _elem617 = SimpleChannelContact() _elem617.read(iprot) self.success.append(_elem617) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSimpleChannelContacts_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter618 in self.success: iter618.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserCountryForBilling_args: """ Attributes: - country - remoteIp """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'country', None, None, ), # 2 (3, TType.STRING, 'remoteIp', None, None, ), # 3 ) def __init__(self, country=None, remoteIp=None,): self.country = country self.remoteIp = remoteIp 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 == 2: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.remoteIp = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserCountryForBilling_args') if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 2) oprot.writeString(self.country) oprot.writeFieldEnd() if self.remoteIp is not None: oprot.writeFieldBegin('remoteIp', TType.STRING, 3) oprot.writeString(self.remoteIp) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.remoteIp) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserCountryForBilling_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserCountryForBilling_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserCreateTime_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserCreateTime_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserCreateTime_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I64, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I64: self.success = iprot.readI64() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserCreateTime_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserIdentities_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserIdentities_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserIdentities_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.I32,None,TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype620, _vtype621, _size619 ) = iprot.readMapBegin() for _i623 in xrange(_size619): _key624 = iprot.readI32() _val625 = iprot.readString() self.success[_key624] = _val625 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserIdentities_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.I32, TType.STRING, len(self.success)) for kiter626,viter627 in self.success.items(): oprot.writeI32(kiter626) oprot.writeString(viter627) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserLanguage_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserLanguage_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserLanguage_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserLanguage_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserMidsWhoAddedMe_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserMidsWhoAddedMe_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserMidsWhoAddedMe_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype631, _size628) = iprot.readListBegin() for _i632 in xrange(_size628): _elem633 = iprot.readString() self.success.append(_elem633) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserMidsWhoAddedMe_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter634 in self.success: oprot.writeString(iter634) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class isGroupMember_args: """ Attributes: - groupId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'groupId', None, None, ), # 1 ) def __init__(self, groupId=None,): self.groupId = groupId 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.groupId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('isGroupMember_args') if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 1) oprot.writeString(self.groupId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.groupId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class isGroupMember_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.BOOL: self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('isGroupMember_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class isInContact_args: """ Attributes: - mid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'mid', None, None, ), # 2 ) def __init__(self, mid=None,): self.mid = mid 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 == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('isInContact_args') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class isInContact_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.BOOL: self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('isInContact_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerChannelCP_args: """ Attributes: - cpId - registerPassword """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'cpId', None, None, ), # 2 (3, TType.STRING, 'registerPassword', None, None, ), # 3 ) def __init__(self, cpId=None, registerPassword=None,): self.cpId = cpId self.registerPassword = registerPassword 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 == 2: if ftype == TType.STRING: self.cpId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.registerPassword = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerChannelCP_args') if self.cpId is not None: oprot.writeFieldBegin('cpId', TType.STRING, 2) oprot.writeString(self.cpId) oprot.writeFieldEnd() if self.registerPassword is not None: oprot.writeFieldBegin('registerPassword', TType.STRING, 3) oprot.writeString(self.registerPassword) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.cpId) value = (value * 31) ^ hash(self.registerPassword) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerChannelCP_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerChannelCP_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeNotificationStatus_args: """ Attributes: - notificationStatus """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'notificationStatus', None, None, ), # 2 ) def __init__(self, notificationStatus=None,): self.notificationStatus = notificationStatus 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 == 2: if ftype == TType.I32: self.notificationStatus = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeNotificationStatus_args') if self.notificationStatus is not None: oprot.writeFieldBegin('notificationStatus', TType.I32, 2) oprot.writeI32(self.notificationStatus) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.notificationStatus) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeNotificationStatus_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeNotificationStatus_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendMessageForChannel_args: """ Attributes: - message """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 2 ) def __init__(self, message=None,): self.message = message 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 == 2: if ftype == TType.STRUCT: self.message = Message() self.message.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendMessageForChannel_args') if self.message is not None: oprot.writeFieldBegin('message', TType.STRUCT, 2) self.message.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.message) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendMessageForChannel_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Message() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendMessageForChannel_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendPinCodeOperation_args: """ Attributes: - verifier """ thrift_spec = ( None, # 0 (1, TType.STRING, 'verifier', None, None, ), # 1 ) def __init__(self, verifier=None,): self.verifier = verifier 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.verifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendPinCodeOperation_args') if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 1) oprot.writeString(self.verifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.verifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendPinCodeOperation_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendPinCodeOperation_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateProfileAttributeForChannel_args: """ Attributes: - profileAttribute - value """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'profileAttribute', None, None, ), # 2 (3, TType.STRING, 'value', None, None, ), # 3 ) def __init__(self, profileAttribute=None, value=None,): self.profileAttribute = profileAttribute self.value = value 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 == 2: if ftype == TType.I32: self.profileAttribute = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.value = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateProfileAttributeForChannel_args') if self.profileAttribute is not None: oprot.writeFieldBegin('profileAttribute', TType.I32, 2) oprot.writeI32(self.profileAttribute) oprot.writeFieldEnd() if self.value is not None: oprot.writeFieldBegin('value', TType.STRING, 3) oprot.writeString(self.value) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.profileAttribute) value = (value * 31) ^ hash(self.value) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateProfileAttributeForChannel_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateProfileAttributeForChannel_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class approveChannelAndIssueChannelToken_args: """ Attributes: - channelId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 ) def __init__(self, channelId=None,): self.channelId = channelId 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.channelId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('approveChannelAndIssueChannelToken_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class approveChannelAndIssueChannelToken_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ChannelToken, ChannelToken.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ChannelToken() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('approveChannelAndIssueChannelToken_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class approveChannelAndIssueRequestToken_args: """ Attributes: - channelId - otpId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 (2, TType.STRING, 'otpId', None, None, ), # 2 ) def __init__(self, channelId=None, otpId=None,): self.channelId = channelId self.otpId = otpId 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.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.otpId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('approveChannelAndIssueRequestToken_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.otpId is not None: oprot.writeFieldBegin('otpId', TType.STRING, 2) oprot.writeString(self.otpId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.otpId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class approveChannelAndIssueRequestToken_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('approveChannelAndIssueRequestToken_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchNotificationItems_args: """ Attributes: - localRev """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'localRev', None, None, ), # 2 ) def __init__(self, localRev=None,): self.localRev = localRev 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 == 2: if ftype == TType.I64: self.localRev = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchNotificationItems_args') if self.localRev is not None: oprot.writeFieldBegin('localRev', TType.I64, 2) oprot.writeI64(self.localRev) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.localRev) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchNotificationItems_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (NotificationFetchResult, NotificationFetchResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = NotificationFetchResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchNotificationItems_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getApprovedChannels_args: """ Attributes: - lastSynced - locale """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'lastSynced', None, None, ), # 2 (3, TType.STRING, 'locale', None, None, ), # 3 ) def __init__(self, lastSynced=None, locale=None,): self.lastSynced = lastSynced self.locale = locale 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 == 2: if ftype == TType.I64: self.lastSynced = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getApprovedChannels_args') if self.lastSynced is not None: oprot.writeFieldBegin('lastSynced', TType.I64, 2) oprot.writeI64(self.lastSynced) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.lastSynced) value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getApprovedChannels_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ApprovedChannelInfos, ApprovedChannelInfos.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ApprovedChannelInfos() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getApprovedChannels_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelInfo_args: """ Attributes: - channelId - locale """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'channelId', None, None, ), # 2 (3, TType.STRING, 'locale', None, None, ), # 3 ) def __init__(self, channelId=None, locale=None,): self.channelId = channelId self.locale = locale 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 == 2: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getChannelInfo_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 2) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelInfo_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ChannelInfo, ChannelInfo.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ChannelInfo() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getChannelInfo_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelNotificationSetting_args: """ Attributes: - channelId - locale """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 (2, TType.STRING, 'locale', None, None, ), # 2 ) def __init__(self, channelId=None, locale=None,): self.channelId = channelId self.locale = locale 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.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getChannelNotificationSetting_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 2) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelNotificationSetting_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ChannelNotificationSetting, ChannelNotificationSetting.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ChannelNotificationSetting() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getChannelNotificationSetting_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelNotificationSettings_args: """ Attributes: - locale """ thrift_spec = ( None, # 0 (1, TType.STRING, 'locale', None, None, ), # 1 ) def __init__(self, locale=None,): self.locale = locale 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.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getChannelNotificationSettings_args') if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 1) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannelNotificationSettings_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(ChannelNotificationSetting, ChannelNotificationSetting.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype638, _size635) = iprot.readListBegin() for _i639 in xrange(_size635): _elem640 = ChannelNotificationSetting() _elem640.read(iprot) self.success.append(_elem640) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getChannelNotificationSettings_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter641 in self.success: iter641.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannels_args: """ Attributes: - lastSynced - locale """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'lastSynced', None, None, ), # 2 (3, TType.STRING, 'locale', None, None, ), # 3 ) def __init__(self, lastSynced=None, locale=None,): self.lastSynced = lastSynced self.locale = locale 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 == 2: if ftype == TType.I64: self.lastSynced = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getChannels_args') if self.lastSynced is not None: oprot.writeFieldBegin('lastSynced', TType.I64, 2) oprot.writeI64(self.lastSynced) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.lastSynced) value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getChannels_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ChannelInfos, ChannelInfos.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ChannelInfos() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getChannels_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getDomains_args: """ Attributes: - lastSynced """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'lastSynced', None, None, ), # 2 ) def __init__(self, lastSynced=None,): self.lastSynced = lastSynced 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 == 2: if ftype == TType.I64: self.lastSynced = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getDomains_args') if self.lastSynced is not None: oprot.writeFieldBegin('lastSynced', TType.I64, 2) oprot.writeI64(self.lastSynced) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.lastSynced) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getDomains_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ChannelDomains, ChannelDomains.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ChannelDomains() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getDomains_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getFriendChannelMatrices_args: """ Attributes: - channelIds """ thrift_spec = ( None, # 0 (1, TType.LIST, 'channelIds', (TType.STRING,None), None, ), # 1 ) def __init__(self, channelIds=None,): self.channelIds = channelIds 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.channelIds = [] (_etype645, _size642) = iprot.readListBegin() for _i646 in xrange(_size642): _elem647 = iprot.readString() self.channelIds.append(_elem647) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getFriendChannelMatrices_args') if self.channelIds is not None: oprot.writeFieldBegin('channelIds', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.channelIds)) for iter648 in self.channelIds: oprot.writeString(iter648) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getFriendChannelMatrices_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (FriendChannelMatricesResponse, FriendChannelMatricesResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = FriendChannelMatricesResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getFriendChannelMatrices_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNotificationBadgeCount_args: """ Attributes: - localRev """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'localRev', None, None, ), # 2 ) def __init__(self, localRev=None,): self.localRev = localRev 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 == 2: if ftype == TType.I64: self.localRev = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getNotificationBadgeCount_args') if self.localRev is not None: oprot.writeFieldBegin('localRev', TType.I64, 2) oprot.writeI64(self.localRev) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.localRev) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNotificationBadgeCount_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I32, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I32: self.success = iprot.readI32() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getNotificationBadgeCount_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueChannelToken_args: """ Attributes: - channelId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 ) def __init__(self, channelId=None,): self.channelId = channelId 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.channelId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('issueChannelToken_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueChannelToken_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ChannelToken, ChannelToken.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ChannelToken() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('issueChannelToken_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueRequestToken_args: """ Attributes: - channelId - otpId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 (2, TType.STRING, 'otpId', None, None, ), # 2 ) def __init__(self, channelId=None, otpId=None,): self.channelId = channelId self.otpId = otpId 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.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.otpId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('issueRequestToken_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.otpId is not None: oprot.writeFieldBegin('otpId', TType.STRING, 2) oprot.writeString(self.otpId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.otpId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueRequestToken_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('issueRequestToken_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueRequestTokenWithAuthScheme_args: """ Attributes: - channelId - otpId - authScheme - returnUrl """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 (2, TType.STRING, 'otpId', None, None, ), # 2 (3, TType.LIST, 'authScheme', (TType.STRING,None), None, ), # 3 (4, TType.STRING, 'returnUrl', None, None, ), # 4 ) def __init__(self, channelId=None, otpId=None, authScheme=None, returnUrl=None,): self.channelId = channelId self.otpId = otpId self.authScheme = authScheme self.returnUrl = returnUrl 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.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.otpId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.authScheme = [] (_etype652, _size649) = iprot.readListBegin() for _i653 in xrange(_size649): _elem654 = iprot.readString() self.authScheme.append(_elem654) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.returnUrl = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('issueRequestTokenWithAuthScheme_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.otpId is not None: oprot.writeFieldBegin('otpId', TType.STRING, 2) oprot.writeString(self.otpId) oprot.writeFieldEnd() if self.authScheme is not None: oprot.writeFieldBegin('authScheme', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.authScheme)) for iter655 in self.authScheme: oprot.writeString(iter655) oprot.writeListEnd() oprot.writeFieldEnd() if self.returnUrl is not None: oprot.writeFieldBegin('returnUrl', TType.STRING, 4) oprot.writeString(self.returnUrl) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.otpId) value = (value * 31) ^ hash(self.authScheme) value = (value * 31) ^ hash(self.returnUrl) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class issueRequestTokenWithAuthScheme_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (RequestTokenResponse, RequestTokenResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = RequestTokenResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('issueRequestTokenWithAuthScheme_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reserveCoinUse_args: """ Attributes: - request - locale """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'request', (CoinUseReservation, CoinUseReservation.thrift_spec), None, ), # 2 (3, TType.STRING, 'locale', None, None, ), # 3 ) def __init__(self, request=None, locale=None,): self.request = request self.locale = locale 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 == 2: if ftype == TType.STRUCT: self.request = CoinUseReservation() self.request.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reserveCoinUse_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 2) self.request.write(oprot) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.request) value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reserveCoinUse_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reserveCoinUse_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class revokeChannel_args: """ Attributes: - channelId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 ) def __init__(self, channelId=None,): self.channelId = channelId 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.channelId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('revokeChannel_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class revokeChannel_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('revokeChannel_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class syncChannelData_args: """ Attributes: - lastSynced - locale """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'lastSynced', None, None, ), # 2 (3, TType.STRING, 'locale', None, None, ), # 3 ) def __init__(self, lastSynced=None, locale=None,): self.lastSynced = lastSynced self.locale = locale 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 == 2: if ftype == TType.I64: self.lastSynced = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('syncChannelData_args') if self.lastSynced is not None: oprot.writeFieldBegin('lastSynced', TType.I64, 2) oprot.writeI64(self.lastSynced) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.lastSynced) value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class syncChannelData_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ChannelSyncDatas, ChannelSyncDatas.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ChannelSyncDatas() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('syncChannelData_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateChannelNotificationSetting_args: """ Attributes: - setting """ thrift_spec = ( None, # 0 (1, TType.LIST, 'setting', (TType.STRUCT,(ChannelNotificationSetting, ChannelNotificationSetting.thrift_spec)), None, ), # 1 ) def __init__(self, setting=None,): self.setting = setting 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.setting = [] (_etype659, _size656) = iprot.readListBegin() for _i660 in xrange(_size656): _elem661 = ChannelNotificationSetting() _elem661.read(iprot) self.setting.append(_elem661) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateChannelNotificationSetting_args') if self.setting is not None: oprot.writeFieldBegin('setting', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.setting)) for iter662 in self.setting: iter662.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.setting) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateChannelNotificationSetting_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (ChannelException, ChannelException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = ChannelException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateChannelNotificationSetting_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchMessageOperations_args: """ Attributes: - localRevision - lastOpTimestamp - count """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'localRevision', None, None, ), # 2 (3, TType.I64, 'lastOpTimestamp', None, None, ), # 3 (4, TType.I32, 'count', None, None, ), # 4 ) def __init__(self, localRevision=None, lastOpTimestamp=None, count=None,): self.localRevision = localRevision self.lastOpTimestamp = lastOpTimestamp self.count = count 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 == 2: if ftype == TType.I64: self.localRevision = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: self.lastOpTimestamp = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.count = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchMessageOperations_args') if self.localRevision is not None: oprot.writeFieldBegin('localRevision', TType.I64, 2) oprot.writeI64(self.localRevision) oprot.writeFieldEnd() if self.lastOpTimestamp is not None: oprot.writeFieldBegin('lastOpTimestamp', TType.I64, 3) oprot.writeI64(self.lastOpTimestamp) oprot.writeFieldEnd() if self.count is not None: oprot.writeFieldBegin('count', TType.I32, 4) oprot.writeI32(self.count) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.localRevision) value = (value * 31) ^ hash(self.lastOpTimestamp) value = (value * 31) ^ hash(self.count) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchMessageOperations_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (MessageOperations, MessageOperations.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = MessageOperations() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchMessageOperations_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getLastReadMessageIds_args: """ Attributes: - chatId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'chatId', None, None, ), # 2 ) def __init__(self, chatId=None,): self.chatId = chatId 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 == 2: if ftype == TType.STRING: self.chatId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getLastReadMessageIds_args') if self.chatId is not None: oprot.writeFieldBegin('chatId', TType.STRING, 2) oprot.writeString(self.chatId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.chatId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getLastReadMessageIds_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (LastReadMessageIds, LastReadMessageIds.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = LastReadMessageIds() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getLastReadMessageIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class multiGetLastReadMessageIds_args: """ Attributes: - chatIds """ thrift_spec = ( None, # 0 None, # 1 (2, TType.LIST, 'chatIds', (TType.STRING,None), None, ), # 2 ) def __init__(self, chatIds=None,): self.chatIds = chatIds 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 == 2: if ftype == TType.LIST: self.chatIds = [] (_etype666, _size663) = iprot.readListBegin() for _i667 in xrange(_size663): _elem668 = iprot.readString() self.chatIds.append(_elem668) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('multiGetLastReadMessageIds_args') if self.chatIds is not None: oprot.writeFieldBegin('chatIds', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.chatIds)) for iter669 in self.chatIds: oprot.writeString(iter669) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.chatIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class multiGetLastReadMessageIds_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(LastReadMessageIds, LastReadMessageIds.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype673, _size670) = iprot.readListBegin() for _i674 in xrange(_size670): _elem675 = LastReadMessageIds() _elem675.read(iprot) self.success.append(_elem675) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('multiGetLastReadMessageIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter676 in self.success: iter676.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class buyCoinProduct_args: """ Attributes: - paymentReservation """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'paymentReservation', (PaymentReservation, PaymentReservation.thrift_spec), None, ), # 2 ) def __init__(self, paymentReservation=None,): self.paymentReservation = paymentReservation 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 == 2: if ftype == TType.STRUCT: self.paymentReservation = PaymentReservation() self.paymentReservation.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('buyCoinProduct_args') if self.paymentReservation is not None: oprot.writeFieldBegin('paymentReservation', TType.STRUCT, 2) self.paymentReservation.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.paymentReservation) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class buyCoinProduct_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('buyCoinProduct_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class buyFreeProduct_args: """ Attributes: - receiverMid - productId - messageTemplate - language - country - packageId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'receiverMid', None, None, ), # 2 (3, TType.STRING, 'productId', None, None, ), # 3 (4, TType.I32, 'messageTemplate', None, None, ), # 4 (5, TType.STRING, 'language', None, None, ), # 5 (6, TType.STRING, 'country', None, None, ), # 6 (7, TType.I64, 'packageId', None, None, ), # 7 ) def __init__(self, receiverMid=None, productId=None, messageTemplate=None, language=None, country=None, packageId=None,): self.receiverMid = receiverMid self.productId = productId self.messageTemplate = messageTemplate self.language = language self.country = country self.packageId = packageId 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 == 2: if ftype == TType.STRING: self.receiverMid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.productId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.messageTemplate = iprot.readI32() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I64: self.packageId = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('buyFreeProduct_args') if self.receiverMid is not None: oprot.writeFieldBegin('receiverMid', TType.STRING, 2) oprot.writeString(self.receiverMid) oprot.writeFieldEnd() if self.productId is not None: oprot.writeFieldBegin('productId', TType.STRING, 3) oprot.writeString(self.productId) oprot.writeFieldEnd() if self.messageTemplate is not None: oprot.writeFieldBegin('messageTemplate', TType.I32, 4) oprot.writeI32(self.messageTemplate) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 5) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 6) oprot.writeString(self.country) oprot.writeFieldEnd() if self.packageId is not None: oprot.writeFieldBegin('packageId', TType.I64, 7) oprot.writeI64(self.packageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.receiverMid) value = (value * 31) ^ hash(self.productId) value = (value * 31) ^ hash(self.messageTemplate) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.packageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class buyFreeProduct_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('buyFreeProduct_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class buyMustbuyProduct_args: """ Attributes: - receiverMid - productId - messageTemplate - language - country - packageId - serialNumber """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'receiverMid', None, None, ), # 2 (3, TType.STRING, 'productId', None, None, ), # 3 (4, TType.I32, 'messageTemplate', None, None, ), # 4 (5, TType.STRING, 'language', None, None, ), # 5 (6, TType.STRING, 'country', None, None, ), # 6 (7, TType.I64, 'packageId', None, None, ), # 7 (8, TType.STRING, 'serialNumber', None, None, ), # 8 ) def __init__(self, receiverMid=None, productId=None, messageTemplate=None, language=None, country=None, packageId=None, serialNumber=None,): self.receiverMid = receiverMid self.productId = productId self.messageTemplate = messageTemplate self.language = language self.country = country self.packageId = packageId self.serialNumber = serialNumber 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 == 2: if ftype == TType.STRING: self.receiverMid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.productId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.messageTemplate = iprot.readI32() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I64: self.packageId = iprot.readI64() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.serialNumber = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('buyMustbuyProduct_args') if self.receiverMid is not None: oprot.writeFieldBegin('receiverMid', TType.STRING, 2) oprot.writeString(self.receiverMid) oprot.writeFieldEnd() if self.productId is not None: oprot.writeFieldBegin('productId', TType.STRING, 3) oprot.writeString(self.productId) oprot.writeFieldEnd() if self.messageTemplate is not None: oprot.writeFieldBegin('messageTemplate', TType.I32, 4) oprot.writeI32(self.messageTemplate) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 5) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 6) oprot.writeString(self.country) oprot.writeFieldEnd() if self.packageId is not None: oprot.writeFieldBegin('packageId', TType.I64, 7) oprot.writeI64(self.packageId) oprot.writeFieldEnd() if self.serialNumber is not None: oprot.writeFieldBegin('serialNumber', TType.STRING, 8) oprot.writeString(self.serialNumber) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.receiverMid) value = (value * 31) ^ hash(self.productId) value = (value * 31) ^ hash(self.messageTemplate) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.packageId) value = (value * 31) ^ hash(self.serialNumber) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class buyMustbuyProduct_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('buyMustbuyProduct_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class checkCanReceivePresent_args: """ Attributes: - recipientMid - packageId - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'recipientMid', None, None, ), # 2 (3, TType.I64, 'packageId', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, recipientMid=None, packageId=None, language=None, country=None,): self.recipientMid = recipientMid self.packageId = packageId self.language = language self.country = country 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 == 2: if ftype == TType.STRING: self.recipientMid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: self.packageId = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('checkCanReceivePresent_args') if self.recipientMid is not None: oprot.writeFieldBegin('recipientMid', TType.STRING, 2) oprot.writeString(self.recipientMid) oprot.writeFieldEnd() if self.packageId is not None: oprot.writeFieldBegin('packageId', TType.I64, 3) oprot.writeI64(self.packageId) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.recipientMid) value = (value * 31) ^ hash(self.packageId) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class checkCanReceivePresent_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('checkCanReceivePresent_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getActivePurchases_args: """ Attributes: - start - size - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'start', None, None, ), # 2 (3, TType.I32, 'size', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, start=None, size=None, language=None, country=None,): self.start = start self.size = size self.language = language self.country = country 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 == 2: if ftype == TType.I64: self.start = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.size = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getActivePurchases_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I64, 2) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.size is not None: oprot.writeFieldBegin('size', TType.I32, 3) oprot.writeI32(self.size) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.size) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getActivePurchases_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductList, ProductList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getActivePurchases_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getActivePurchaseVersions_args: """ Attributes: - start - size - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'start', None, None, ), # 2 (3, TType.I32, 'size', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, start=None, size=None, language=None, country=None,): self.start = start self.size = size self.language = language self.country = country 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 == 2: if ftype == TType.I64: self.start = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.size = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getActivePurchaseVersions_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I64, 2) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.size is not None: oprot.writeFieldBegin('size', TType.I32, 3) oprot.writeI32(self.size) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.size) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getActivePurchaseVersions_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductSimpleList, ProductSimpleList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductSimpleList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getActivePurchaseVersions_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCoinProducts_args: """ Attributes: - appStoreCode - country - language """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'appStoreCode', None, None, ), # 2 (3, TType.STRING, 'country', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 ) def __init__(self, appStoreCode=None, country=None, language=None,): self.appStoreCode = appStoreCode self.country = country self.language = language 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 == 2: if ftype == TType.I32: self.appStoreCode = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCoinProducts_args') if self.appStoreCode is not None: oprot.writeFieldBegin('appStoreCode', TType.I32, 2) oprot.writeI32(self.appStoreCode) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 3) oprot.writeString(self.country) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.appStoreCode) value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.language) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCoinProducts_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(CoinProductItem, CoinProductItem.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype680, _size677) = iprot.readListBegin() for _i681 in xrange(_size677): _elem682 = CoinProductItem() _elem682.read(iprot) self.success.append(_elem682) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCoinProducts_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter683 in self.success: iter683.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCoinProductsByPgCode_args: """ Attributes: - appStoreCode - pgCode - country - language """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'appStoreCode', None, None, ), # 2 (3, TType.I32, 'pgCode', None, None, ), # 3 (4, TType.STRING, 'country', None, None, ), # 4 (5, TType.STRING, 'language', None, None, ), # 5 ) def __init__(self, appStoreCode=None, pgCode=None, country=None, language=None,): self.appStoreCode = appStoreCode self.pgCode = pgCode self.country = country self.language = language 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 == 2: if ftype == TType.I32: self.appStoreCode = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.pgCode = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCoinProductsByPgCode_args') if self.appStoreCode is not None: oprot.writeFieldBegin('appStoreCode', TType.I32, 2) oprot.writeI32(self.appStoreCode) oprot.writeFieldEnd() if self.pgCode is not None: oprot.writeFieldBegin('pgCode', TType.I32, 3) oprot.writeI32(self.pgCode) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 4) oprot.writeString(self.country) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 5) oprot.writeString(self.language) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.appStoreCode) value = (value * 31) ^ hash(self.pgCode) value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.language) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCoinProductsByPgCode_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(CoinProductItem, CoinProductItem.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype687, _size684) = iprot.readListBegin() for _i688 in xrange(_size684): _elem689 = CoinProductItem() _elem689.read(iprot) self.success.append(_elem689) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCoinProductsByPgCode_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter690 in self.success: iter690.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCoinPurchaseHistory_args: """ Attributes: - request """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'request', (CoinHistoryCondition, CoinHistoryCondition.thrift_spec), None, ), # 2 ) def __init__(self, request=None,): self.request = request 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 == 2: if ftype == TType.STRUCT: self.request = CoinHistoryCondition() self.request.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCoinPurchaseHistory_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 2) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.request) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCoinPurchaseHistory_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (CoinHistoryResult, CoinHistoryResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = CoinHistoryResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCoinPurchaseHistory_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCoinUseAndRefundHistory_args: """ Attributes: - request """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'request', (CoinHistoryCondition, CoinHistoryCondition.thrift_spec), None, ), # 2 ) def __init__(self, request=None,): self.request = request 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 == 2: if ftype == TType.STRUCT: self.request = CoinHistoryCondition() self.request.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCoinUseAndRefundHistory_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 2) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.request) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCoinUseAndRefundHistory_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (CoinHistoryResult, CoinHistoryResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = CoinHistoryResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCoinUseAndRefundHistory_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getDownloads_args: """ Attributes: - start - size - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'start', None, None, ), # 2 (3, TType.I32, 'size', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, start=None, size=None, language=None, country=None,): self.start = start self.size = size self.language = language self.country = country 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 == 2: if ftype == TType.I64: self.start = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.size = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getDownloads_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I64, 2) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.size is not None: oprot.writeFieldBegin('size', TType.I32, 3) oprot.writeI32(self.size) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.size) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getDownloads_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductList, ProductList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getDownloads_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getEventPackages_args: """ Attributes: - start - size - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'start', None, None, ), # 2 (3, TType.I32, 'size', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, start=None, size=None, language=None, country=None,): self.start = start self.size = size self.language = language self.country = country 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 == 2: if ftype == TType.I64: self.start = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.size = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getEventPackages_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I64, 2) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.size is not None: oprot.writeFieldBegin('size', TType.I32, 3) oprot.writeI32(self.size) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.size) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getEventPackages_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductList, ProductList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getEventPackages_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNewlyReleasedPackages_args: """ Attributes: - start - size - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'start', None, None, ), # 2 (3, TType.I32, 'size', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, start=None, size=None, language=None, country=None,): self.start = start self.size = size self.language = language self.country = country 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 == 2: if ftype == TType.I64: self.start = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.size = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getNewlyReleasedPackages_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I64, 2) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.size is not None: oprot.writeFieldBegin('size', TType.I32, 3) oprot.writeI32(self.size) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.size) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNewlyReleasedPackages_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductList, ProductList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getNewlyReleasedPackages_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPopularPackages_args: """ Attributes: - start - size - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'start', None, None, ), # 2 (3, TType.I32, 'size', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, start=None, size=None, language=None, country=None,): self.start = start self.size = size self.language = language self.country = country 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 == 2: if ftype == TType.I64: self.start = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.size = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPopularPackages_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I64, 2) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.size is not None: oprot.writeFieldBegin('size', TType.I32, 3) oprot.writeI32(self.size) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.size) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPopularPackages_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductList, ProductList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPopularPackages_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPresentsReceived_args: """ Attributes: - start - size - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'start', None, None, ), # 2 (3, TType.I32, 'size', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, start=None, size=None, language=None, country=None,): self.start = start self.size = size self.language = language self.country = country 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 == 2: if ftype == TType.I64: self.start = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.size = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPresentsReceived_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I64, 2) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.size is not None: oprot.writeFieldBegin('size', TType.I32, 3) oprot.writeI32(self.size) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.size) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPresentsReceived_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductList, ProductList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPresentsReceived_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPresentsSent_args: """ Attributes: - start - size - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'start', None, None, ), # 2 (3, TType.I32, 'size', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, start=None, size=None, language=None, country=None,): self.start = start self.size = size self.language = language self.country = country 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 == 2: if ftype == TType.I64: self.start = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.size = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPresentsSent_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I64, 2) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.size is not None: oprot.writeFieldBegin('size', TType.I32, 3) oprot.writeI32(self.size) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.size) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPresentsSent_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductList, ProductList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPresentsSent_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProduct_args: """ Attributes: - packageID - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'packageID', None, None, ), # 2 (3, TType.STRING, 'language', None, None, ), # 3 (4, TType.STRING, 'country', None, None, ), # 4 ) def __init__(self, packageID=None, language=None, country=None,): self.packageID = packageID self.language = language self.country = country 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 == 2: if ftype == TType.I64: self.packageID = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProduct_args') if self.packageID is not None: oprot.writeFieldBegin('packageID', TType.I64, 2) oprot.writeI64(self.packageID) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 3) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 4) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.packageID) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProduct_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Product, Product.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Product() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProduct_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProductList_args: """ Attributes: - productIdList - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.LIST, 'productIdList', (TType.STRING,None), None, ), # 2 (3, TType.STRING, 'language', None, None, ), # 3 (4, TType.STRING, 'country', None, None, ), # 4 ) def __init__(self, productIdList=None, language=None, country=None,): self.productIdList = productIdList self.language = language self.country = country 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 == 2: if ftype == TType.LIST: self.productIdList = [] (_etype694, _size691) = iprot.readListBegin() for _i695 in xrange(_size691): _elem696 = iprot.readString() self.productIdList.append(_elem696) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProductList_args') if self.productIdList is not None: oprot.writeFieldBegin('productIdList', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.productIdList)) for iter697 in self.productIdList: oprot.writeString(iter697) oprot.writeListEnd() oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 3) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 4) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.productIdList) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProductList_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductList, ProductList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProductList_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProductListWithCarrier_args: """ Attributes: - productIdList - language - country - carrierCode """ thrift_spec = ( None, # 0 None, # 1 (2, TType.LIST, 'productIdList', (TType.STRING,None), None, ), # 2 (3, TType.STRING, 'language', None, None, ), # 3 (4, TType.STRING, 'country', None, None, ), # 4 (5, TType.STRING, 'carrierCode', None, None, ), # 5 ) def __init__(self, productIdList=None, language=None, country=None, carrierCode=None,): self.productIdList = productIdList self.language = language self.country = country self.carrierCode = carrierCode 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 == 2: if ftype == TType.LIST: self.productIdList = [] (_etype701, _size698) = iprot.readListBegin() for _i702 in xrange(_size698): _elem703 = iprot.readString() self.productIdList.append(_elem703) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.carrierCode = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProductListWithCarrier_args') if self.productIdList is not None: oprot.writeFieldBegin('productIdList', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.productIdList)) for iter704 in self.productIdList: oprot.writeString(iter704) oprot.writeListEnd() oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 3) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 4) oprot.writeString(self.country) oprot.writeFieldEnd() if self.carrierCode is not None: oprot.writeFieldBegin('carrierCode', TType.STRING, 5) oprot.writeString(self.carrierCode) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.productIdList) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.carrierCode) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProductListWithCarrier_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductList, ProductList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProductListWithCarrier_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProductWithCarrier_args: """ Attributes: - packageID - language - country - carrierCode """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'packageID', None, None, ), # 2 (3, TType.STRING, 'language', None, None, ), # 3 (4, TType.STRING, 'country', None, None, ), # 4 (5, TType.STRING, 'carrierCode', None, None, ), # 5 ) def __init__(self, packageID=None, language=None, country=None, carrierCode=None,): self.packageID = packageID self.language = language self.country = country self.carrierCode = carrierCode 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 == 2: if ftype == TType.I64: self.packageID = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.carrierCode = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProductWithCarrier_args') if self.packageID is not None: oprot.writeFieldBegin('packageID', TType.I64, 2) oprot.writeI64(self.packageID) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 3) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 4) oprot.writeString(self.country) oprot.writeFieldEnd() if self.carrierCode is not None: oprot.writeFieldBegin('carrierCode', TType.STRING, 5) oprot.writeString(self.carrierCode) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.packageID) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.carrierCode) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProductWithCarrier_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Product, Product.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Product() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProductWithCarrier_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPurchaseHistory_args: """ Attributes: - start - size - language - country """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'start', None, None, ), # 2 (3, TType.I32, 'size', None, None, ), # 3 (4, TType.STRING, 'language', None, None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, start=None, size=None, language=None, country=None,): self.start = start self.size = size self.language = language self.country = country 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 == 2: if ftype == TType.I64: self.start = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.size = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPurchaseHistory_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I64, 2) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.size is not None: oprot.writeFieldBegin('size', TType.I32, 3) oprot.writeI32(self.size) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 4) oprot.writeString(self.language) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.size) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPurchaseHistory_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProductList, ProductList.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProductList() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPurchaseHistory_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getTotalBalance_args: """ Attributes: - appStoreCode """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'appStoreCode', None, None, ), # 2 ) def __init__(self, appStoreCode=None,): self.appStoreCode = appStoreCode 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 == 2: if ftype == TType.I32: self.appStoreCode = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getTotalBalance_args') if self.appStoreCode is not None: oprot.writeFieldBegin('appStoreCode', TType.I32, 2) oprot.writeI32(self.appStoreCode) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.appStoreCode) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getTotalBalance_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Coin, Coin.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Coin() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getTotalBalance_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyDownloaded_args: """ Attributes: - packageId - language """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'packageId', None, None, ), # 2 (3, TType.STRING, 'language', None, None, ), # 3 ) def __init__(self, packageId=None, language=None,): self.packageId = packageId self.language = language 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 == 2: if ftype == TType.I64: self.packageId = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyDownloaded_args') if self.packageId is not None: oprot.writeFieldBegin('packageId', TType.I64, 2) oprot.writeI64(self.packageId) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 3) oprot.writeString(self.language) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.packageId) value = (value * 31) ^ hash(self.language) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyDownloaded_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I64, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I64: self.success = iprot.readI64() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyDownloaded_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reserveCoinPurchase_args: """ Attributes: - request """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'request', (CoinPurchaseReservation, CoinPurchaseReservation.thrift_spec), None, ), # 2 ) def __init__(self, request=None,): self.request = request 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 == 2: if ftype == TType.STRUCT: self.request = CoinPurchaseReservation() self.request.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reserveCoinPurchase_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 2) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.request) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reserveCoinPurchase_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (PaymentReservationResult, PaymentReservationResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = PaymentReservationResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reserveCoinPurchase_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reservePayment_args: """ Attributes: - paymentReservation """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'paymentReservation', (PaymentReservation, PaymentReservation.thrift_spec), None, ), # 2 ) def __init__(self, paymentReservation=None,): self.paymentReservation = paymentReservation 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 == 2: if ftype == TType.STRUCT: self.paymentReservation = PaymentReservation() self.paymentReservation.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reservePayment_args') if self.paymentReservation is not None: oprot.writeFieldBegin('paymentReservation', TType.STRUCT, 2) self.paymentReservation.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.paymentReservation) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reservePayment_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (PaymentReservationResult, PaymentReservationResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = PaymentReservationResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reservePayment_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSnsFriends_args: """ Attributes: - snsIdType - snsAccessToken - startIdx - limit """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'snsIdType', None, None, ), # 2 (3, TType.STRING, 'snsAccessToken', None, None, ), # 3 (4, TType.I32, 'startIdx', None, None, ), # 4 (5, TType.I32, 'limit', None, None, ), # 5 ) def __init__(self, snsIdType=None, snsAccessToken=None, startIdx=None, limit=None,): self.snsIdType = snsIdType self.snsAccessToken = snsAccessToken self.startIdx = startIdx self.limit = limit 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 == 2: if ftype == TType.I32: self.snsIdType = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.snsAccessToken = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.startIdx = iprot.readI32() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.limit = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSnsFriends_args') if self.snsIdType is not None: oprot.writeFieldBegin('snsIdType', TType.I32, 2) oprot.writeI32(self.snsIdType) oprot.writeFieldEnd() if self.snsAccessToken is not None: oprot.writeFieldBegin('snsAccessToken', TType.STRING, 3) oprot.writeString(self.snsAccessToken) oprot.writeFieldEnd() if self.startIdx is not None: oprot.writeFieldBegin('startIdx', TType.I32, 4) oprot.writeI32(self.startIdx) oprot.writeFieldEnd() if self.limit is not None: oprot.writeFieldBegin('limit', TType.I32, 5) oprot.writeI32(self.limit) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsIdType) value = (value * 31) ^ hash(self.snsAccessToken) value = (value * 31) ^ hash(self.startIdx) value = (value * 31) ^ hash(self.limit) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSnsFriends_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SnsFriends, SnsFriends.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SnsFriends() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSnsFriends_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSnsMyProfile_args: """ Attributes: - snsIdType - snsAccessToken """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'snsIdType', None, None, ), # 2 (3, TType.STRING, 'snsAccessToken', None, None, ), # 3 ) def __init__(self, snsIdType=None, snsAccessToken=None,): self.snsIdType = snsIdType self.snsAccessToken = snsAccessToken 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 == 2: if ftype == TType.I32: self.snsIdType = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.snsAccessToken = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSnsMyProfile_args') if self.snsIdType is not None: oprot.writeFieldBegin('snsIdType', TType.I32, 2) oprot.writeI32(self.snsIdType) oprot.writeFieldEnd() if self.snsAccessToken is not None: oprot.writeFieldBegin('snsAccessToken', TType.STRING, 3) oprot.writeString(self.snsAccessToken) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsIdType) value = (value * 31) ^ hash(self.snsAccessToken) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSnsMyProfile_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SnsProfile, SnsProfile.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SnsProfile() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSnsMyProfile_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class postSnsInvitationMessage_args: """ Attributes: - snsIdType - snsAccessToken - toSnsUserId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'snsIdType', None, None, ), # 2 (3, TType.STRING, 'snsAccessToken', None, None, ), # 3 (4, TType.STRING, 'toSnsUserId', None, None, ), # 4 ) def __init__(self, snsIdType=None, snsAccessToken=None, toSnsUserId=None,): self.snsIdType = snsIdType self.snsAccessToken = snsAccessToken self.toSnsUserId = toSnsUserId 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 == 2: if ftype == TType.I32: self.snsIdType = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.snsAccessToken = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.toSnsUserId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('postSnsInvitationMessage_args') if self.snsIdType is not None: oprot.writeFieldBegin('snsIdType', TType.I32, 2) oprot.writeI32(self.snsIdType) oprot.writeFieldEnd() if self.snsAccessToken is not None: oprot.writeFieldBegin('snsAccessToken', TType.STRING, 3) oprot.writeString(self.snsAccessToken) oprot.writeFieldEnd() if self.toSnsUserId is not None: oprot.writeFieldBegin('toSnsUserId', TType.STRING, 4) oprot.writeString(self.toSnsUserId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsIdType) value = (value * 31) ^ hash(self.snsAccessToken) value = (value * 31) ^ hash(self.toSnsUserId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class postSnsInvitationMessage_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('postSnsInvitationMessage_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acceptGroupInvitation_args: """ Attributes: - reqSeq - groupId """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'groupId', None, None, ), # 2 ) def __init__(self, reqSeq=None, groupId=None,): self.reqSeq = reqSeq self.groupId = groupId 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.groupId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acceptGroupInvitation_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 2) oprot.writeString(self.groupId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.groupId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acceptGroupInvitation_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acceptGroupInvitation_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acceptGroupInvitationByTicket_args: """ Attributes: - reqSeq - groupId - ticketId """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'groupId', None, None, ), # 2 (3, TType.STRING, 'ticketId', None, None, ), # 3 ) def __init__(self, reqSeq=None, groupId=None, ticketId=None,): self.reqSeq = reqSeq self.groupId = groupId self.ticketId = ticketId 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.groupId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.ticketId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acceptGroupInvitationByTicket_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 2) oprot.writeString(self.groupId) oprot.writeFieldEnd() if self.ticketId is not None: oprot.writeFieldBegin('ticketId', TType.STRING, 3) oprot.writeString(self.ticketId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.groupId) value = (value * 31) ^ hash(self.ticketId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acceptGroupInvitationByTicket_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acceptGroupInvitationByTicket_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acceptProximityMatches_args: """ Attributes: - sessionId - ids """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 (3, TType.SET, 'ids', (TType.STRING,None), None, ), # 3 ) def __init__(self, sessionId=None, ids=None,): self.sessionId = sessionId self.ids = ids 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.SET: self.ids = set() (_etype708, _size705) = iprot.readSetBegin() for _i709 in xrange(_size705): _elem710 = iprot.readString() self.ids.add(_elem710) iprot.readSetEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acceptProximityMatches_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() if self.ids is not None: oprot.writeFieldBegin('ids', TType.SET, 3) oprot.writeSetBegin(TType.STRING, len(self.ids)) for iter711 in self.ids: oprot.writeString(iter711) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) value = (value * 31) ^ hash(self.ids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acceptProximityMatches_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acceptProximityMatches_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acquireCallRoute_args: """ Attributes: - to """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'to', None, None, ), # 2 ) def __init__(self, to=None,): self.to = to 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 == 2: if ftype == TType.STRING: self.to = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acquireCallRoute_args') if self.to is not None: oprot.writeFieldBegin('to', TType.STRING, 2) oprot.writeString(self.to) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.to) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acquireCallRoute_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype715, _size712) = iprot.readListBegin() for _i716 in xrange(_size712): _elem717 = iprot.readString() self.success.append(_elem717) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acquireCallRoute_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter718 in self.success: oprot.writeString(iter718) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acquireCallTicket_args: """ Attributes: - to """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'to', None, None, ), # 2 ) def __init__(self, to=None,): self.to = to 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 == 2: if ftype == TType.STRING: self.to = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acquireCallTicket_args') if self.to is not None: oprot.writeFieldBegin('to', TType.STRING, 2) oprot.writeString(self.to) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.to) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acquireCallTicket_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acquireCallTicket_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acquireEncryptedAccessToken_args: """ Attributes: - featureType """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'featureType', None, None, ), # 2 ) def __init__(self, featureType=None,): self.featureType = featureType 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 == 2: if ftype == TType.I32: self.featureType = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acquireEncryptedAccessToken_args') if self.featureType is not None: oprot.writeFieldBegin('featureType', TType.I32, 2) oprot.writeI32(self.featureType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.featureType) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class acquireEncryptedAccessToken_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('acquireEncryptedAccessToken_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class addSnsId_args: """ Attributes: - snsIdType - snsAccessToken """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'snsIdType', None, None, ), # 2 (3, TType.STRING, 'snsAccessToken', None, None, ), # 3 ) def __init__(self, snsIdType=None, snsAccessToken=None,): self.snsIdType = snsIdType self.snsAccessToken = snsAccessToken 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 == 2: if ftype == TType.I32: self.snsIdType = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.snsAccessToken = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('addSnsId_args') if self.snsIdType is not None: oprot.writeFieldBegin('snsIdType', TType.I32, 2) oprot.writeI32(self.snsIdType) oprot.writeFieldEnd() if self.snsAccessToken is not None: oprot.writeFieldBegin('snsAccessToken', TType.STRING, 3) oprot.writeString(self.snsAccessToken) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsIdType) value = (value * 31) ^ hash(self.snsAccessToken) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class addSnsId_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('addSnsId_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class blockContact_args: """ Attributes: - reqSeq - id """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'id', None, None, ), # 2 ) def __init__(self, reqSeq=None, id=None,): self.reqSeq = reqSeq self.id = id 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.id = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('blockContact_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.id is not None: oprot.writeFieldBegin('id', TType.STRING, 2) oprot.writeString(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.id) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class blockContact_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('blockContact_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class blockRecommendation_args: """ Attributes: - reqSeq - id """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'id', None, None, ), # 2 ) def __init__(self, reqSeq=None, id=None,): self.reqSeq = reqSeq self.id = id 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.id = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('blockRecommendation_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.id is not None: oprot.writeFieldBegin('id', TType.STRING, 2) oprot.writeString(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.id) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class blockRecommendation_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('blockRecommendation_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class cancelGroupInvitation_args: """ Attributes: - reqSeq - groupId - contactIds """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'groupId', None, None, ), # 2 (3, TType.LIST, 'contactIds', (TType.STRING,None), None, ), # 3 ) def __init__(self, reqSeq=None, groupId=None, contactIds=None,): self.reqSeq = reqSeq self.groupId = groupId self.contactIds = contactIds 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.groupId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.contactIds = [] (_etype722, _size719) = iprot.readListBegin() for _i723 in xrange(_size719): _elem724 = iprot.readString() self.contactIds.append(_elem724) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('cancelGroupInvitation_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 2) oprot.writeString(self.groupId) oprot.writeFieldEnd() if self.contactIds is not None: oprot.writeFieldBegin('contactIds', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.contactIds)) for iter725 in self.contactIds: oprot.writeString(iter725) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.groupId) value = (value * 31) ^ hash(self.contactIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class cancelGroupInvitation_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('cancelGroupInvitation_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class changeVerificationMethod_args: """ Attributes: - sessionId - method """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 (3, TType.I32, 'method', None, None, ), # 3 ) def __init__(self, sessionId=None, method=None,): self.sessionId = sessionId self.method = method 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.method = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('changeVerificationMethod_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() if self.method is not None: oprot.writeFieldBegin('method', TType.I32, 3) oprot.writeI32(self.method) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) value = (value * 31) ^ hash(self.method) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class changeVerificationMethod_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (VerificationSessionData, VerificationSessionData.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = VerificationSessionData() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('changeVerificationMethod_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class clearIdentityCredential_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('clearIdentityCredential_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class clearIdentityCredential_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('clearIdentityCredential_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class clearMessageBox_args: """ Attributes: - channelId - messageBoxId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'channelId', None, None, ), # 2 (3, TType.STRING, 'messageBoxId', None, None, ), # 3 ) def __init__(self, channelId=None, messageBoxId=None,): self.channelId = channelId self.messageBoxId = messageBoxId 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 == 2: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.messageBoxId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('clearMessageBox_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 2) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.messageBoxId is not None: oprot.writeFieldBegin('messageBoxId', TType.STRING, 3) oprot.writeString(self.messageBoxId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.messageBoxId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class clearMessageBox_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('clearMessageBox_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class closeProximityMatch_args: """ Attributes: - sessionId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 ) def __init__(self, sessionId=None,): self.sessionId = sessionId 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('closeProximityMatch_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class closeProximityMatch_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('closeProximityMatch_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class commitSendMessage_args: """ Attributes: - seq - messageId - receiverMids """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRING, 'messageId', None, None, ), # 2 (3, TType.LIST, 'receiverMids', (TType.STRING,None), None, ), # 3 ) def __init__(self, seq=None, messageId=None, receiverMids=None,): self.seq = seq self.messageId = messageId self.receiverMids = receiverMids 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.messageId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.receiverMids = [] (_etype729, _size726) = iprot.readListBegin() for _i730 in xrange(_size726): _elem731 = iprot.readString() self.receiverMids.append(_elem731) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('commitSendMessage_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.messageId is not None: oprot.writeFieldBegin('messageId', TType.STRING, 2) oprot.writeString(self.messageId) oprot.writeFieldEnd() if self.receiverMids is not None: oprot.writeFieldBegin('receiverMids', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.receiverMids)) for iter732 in self.receiverMids: oprot.writeString(iter732) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.messageId) value = (value * 31) ^ hash(self.receiverMids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class commitSendMessage_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype734, _vtype735, _size733 ) = iprot.readMapBegin() for _i737 in xrange(_size733): _key738 = iprot.readString() _val739 = iprot.readString() self.success[_key738] = _val739 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('commitSendMessage_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter740,viter741 in self.success.items(): oprot.writeString(kiter740) oprot.writeString(viter741) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class commitSendMessages_args: """ Attributes: - seq - messageIds - receiverMids """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.LIST, 'messageIds', (TType.STRING,None), None, ), # 2 (3, TType.LIST, 'receiverMids', (TType.STRING,None), None, ), # 3 ) def __init__(self, seq=None, messageIds=None, receiverMids=None,): self.seq = seq self.messageIds = messageIds self.receiverMids = receiverMids 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.messageIds = [] (_etype745, _size742) = iprot.readListBegin() for _i746 in xrange(_size742): _elem747 = iprot.readString() self.messageIds.append(_elem747) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.receiverMids = [] (_etype751, _size748) = iprot.readListBegin() for _i752 in xrange(_size748): _elem753 = iprot.readString() self.receiverMids.append(_elem753) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('commitSendMessages_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.messageIds is not None: oprot.writeFieldBegin('messageIds', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.messageIds)) for iter754 in self.messageIds: oprot.writeString(iter754) oprot.writeListEnd() oprot.writeFieldEnd() if self.receiverMids is not None: oprot.writeFieldBegin('receiverMids', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.receiverMids)) for iter755 in self.receiverMids: oprot.writeString(iter755) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.messageIds) value = (value * 31) ^ hash(self.receiverMids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class commitSendMessages_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype757, _vtype758, _size756 ) = iprot.readMapBegin() for _i760 in xrange(_size756): _key761 = iprot.readString() _val762 = iprot.readString() self.success[_key761] = _val762 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('commitSendMessages_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter763,viter764 in self.success.items(): oprot.writeString(kiter763) oprot.writeString(viter764) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class commitUpdateProfile_args: """ Attributes: - seq - attrs - receiverMids """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.LIST, 'attrs', (TType.I32,None), None, ), # 2 (3, TType.LIST, 'receiverMids', (TType.STRING,None), None, ), # 3 ) def __init__(self, seq=None, attrs=None, receiverMids=None,): self.seq = seq self.attrs = attrs self.receiverMids = receiverMids 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.attrs = [] (_etype768, _size765) = iprot.readListBegin() for _i769 in xrange(_size765): _elem770 = iprot.readI32() self.attrs.append(_elem770) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.receiverMids = [] (_etype774, _size771) = iprot.readListBegin() for _i775 in xrange(_size771): _elem776 = iprot.readString() self.receiverMids.append(_elem776) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('commitUpdateProfile_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.attrs is not None: oprot.writeFieldBegin('attrs', TType.LIST, 2) oprot.writeListBegin(TType.I32, len(self.attrs)) for iter777 in self.attrs: oprot.writeI32(iter777) oprot.writeListEnd() oprot.writeFieldEnd() if self.receiverMids is not None: oprot.writeFieldBegin('receiverMids', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.receiverMids)) for iter778 in self.receiverMids: oprot.writeString(iter778) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.attrs) value = (value * 31) ^ hash(self.receiverMids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class commitUpdateProfile_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype780, _vtype781, _size779 ) = iprot.readMapBegin() for _i783 in xrange(_size779): _key784 = iprot.readString() _val785 = iprot.readString() self.success[_key784] = _val785 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('commitUpdateProfile_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter786,viter787 in self.success.items(): oprot.writeString(kiter786) oprot.writeString(viter787) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class confirmEmail_args: """ Attributes: - verifier - pinCode """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'verifier', None, None, ), # 2 (3, TType.STRING, 'pinCode', None, None, ), # 3 ) def __init__(self, verifier=None, pinCode=None,): self.verifier = verifier self.pinCode = pinCode 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 == 2: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.pinCode = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('confirmEmail_args') if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 2) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.pinCode is not None: oprot.writeFieldBegin('pinCode', TType.STRING, 3) oprot.writeString(self.pinCode) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.verifier) value = (value * 31) ^ hash(self.pinCode) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class confirmEmail_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('confirmEmail_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class createGroup_args: """ Attributes: - seq - name - contactIds """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRING, 'name', None, None, ), # 2 (3, TType.LIST, 'contactIds', (TType.STRING,None), None, ), # 3 ) def __init__(self, seq=None, name=None, contactIds=None,): self.seq = seq self.name = name self.contactIds = contactIds 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.name = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.contactIds = [] (_etype791, _size788) = iprot.readListBegin() for _i792 in xrange(_size788): _elem793 = iprot.readString() self.contactIds.append(_elem793) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('createGroup_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 2) oprot.writeString(self.name) oprot.writeFieldEnd() if self.contactIds is not None: oprot.writeFieldBegin('contactIds', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.contactIds)) for iter794 in self.contactIds: oprot.writeString(iter794) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.name) value = (value * 31) ^ hash(self.contactIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class createGroup_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Group, Group.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Group() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('createGroup_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class createQrcodeBase64Image_args: """ Attributes: - url - characterSet - imageSize - x - y - width - height """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'url', None, None, ), # 2 (3, TType.STRING, 'characterSet', None, None, ), # 3 (4, TType.I32, 'imageSize', None, None, ), # 4 (5, TType.I32, 'x', None, None, ), # 5 (6, TType.I32, 'y', None, None, ), # 6 (7, TType.I32, 'width', None, None, ), # 7 (8, TType.I32, 'height', None, None, ), # 8 ) def __init__(self, url=None, characterSet=None, imageSize=None, x=None, y=None, width=None, height=None,): self.url = url self.characterSet = characterSet self.imageSize = imageSize self.x = x self.y = y self.width = width self.height = height 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 == 2: if ftype == TType.STRING: self.url = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.characterSet = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.imageSize = iprot.readI32() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.x = iprot.readI32() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I32: self.y = iprot.readI32() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I32: self.width = iprot.readI32() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.I32: self.height = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('createQrcodeBase64Image_args') if self.url is not None: oprot.writeFieldBegin('url', TType.STRING, 2) oprot.writeString(self.url) oprot.writeFieldEnd() if self.characterSet is not None: oprot.writeFieldBegin('characterSet', TType.STRING, 3) oprot.writeString(self.characterSet) oprot.writeFieldEnd() if self.imageSize is not None: oprot.writeFieldBegin('imageSize', TType.I32, 4) oprot.writeI32(self.imageSize) oprot.writeFieldEnd() if self.x is not None: oprot.writeFieldBegin('x', TType.I32, 5) oprot.writeI32(self.x) oprot.writeFieldEnd() if self.y is not None: oprot.writeFieldBegin('y', TType.I32, 6) oprot.writeI32(self.y) oprot.writeFieldEnd() if self.width is not None: oprot.writeFieldBegin('width', TType.I32, 7) oprot.writeI32(self.width) oprot.writeFieldEnd() if self.height is not None: oprot.writeFieldBegin('height', TType.I32, 8) oprot.writeI32(self.height) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.url) value = (value * 31) ^ hash(self.characterSet) value = (value * 31) ^ hash(self.imageSize) value = (value * 31) ^ hash(self.x) value = (value * 31) ^ hash(self.y) value = (value * 31) ^ hash(self.width) value = (value * 31) ^ hash(self.height) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class createQrcodeBase64Image_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('createQrcodeBase64Image_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class createRoom_args: """ Attributes: - reqSeq - contactIds """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.LIST, 'contactIds', (TType.STRING,None), None, ), # 2 ) def __init__(self, reqSeq=None, contactIds=None,): self.reqSeq = reqSeq self.contactIds = contactIds 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.contactIds = [] (_etype798, _size795) = iprot.readListBegin() for _i799 in xrange(_size795): _elem800 = iprot.readString() self.contactIds.append(_elem800) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('createRoom_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.contactIds is not None: oprot.writeFieldBegin('contactIds', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.contactIds)) for iter801 in self.contactIds: oprot.writeString(iter801) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.contactIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class createRoom_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Room, Room.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Room() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('createRoom_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class createSession_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('createSession_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class createSession_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('createSession_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchAnnouncements_args: """ Attributes: - lastFetchedIndex """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'lastFetchedIndex', None, None, ), # 2 ) def __init__(self, lastFetchedIndex=None,): self.lastFetchedIndex = lastFetchedIndex 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 == 2: if ftype == TType.I32: self.lastFetchedIndex = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchAnnouncements_args') if self.lastFetchedIndex is not None: oprot.writeFieldBegin('lastFetchedIndex', TType.I32, 2) oprot.writeI32(self.lastFetchedIndex) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.lastFetchedIndex) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchAnnouncements_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Announcement, Announcement.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype805, _size802) = iprot.readListBegin() for _i806 in xrange(_size802): _elem807 = Announcement() _elem807.read(iprot) self.success.append(_elem807) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchAnnouncements_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter808 in self.success: iter808.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchMessages_args: """ Attributes: - localTs - count """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'localTs', None, None, ), # 2 (3, TType.I32, 'count', None, None, ), # 3 ) def __init__(self, localTs=None, count=None,): self.localTs = localTs self.count = count 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 == 2: if ftype == TType.I64: self.localTs = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.count = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchMessages_args') if self.localTs is not None: oprot.writeFieldBegin('localTs', TType.I64, 2) oprot.writeI64(self.localTs) oprot.writeFieldEnd() if self.count is not None: oprot.writeFieldBegin('count', TType.I32, 3) oprot.writeI32(self.count) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.localTs) value = (value * 31) ^ hash(self.count) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchMessages_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Message, Message.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype812, _size809) = iprot.readListBegin() for _i813 in xrange(_size809): _elem814 = Message() _elem814.read(iprot) self.success.append(_elem814) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchMessages_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter815 in self.success: iter815.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchOperations_args: """ Attributes: - localRev - count """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'localRev', None, None, ), # 2 (3, TType.I32, 'count', None, None, ), # 3 ) def __init__(self, localRev=None, count=None,): self.localRev = localRev self.count = count 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 == 2: if ftype == TType.I64: self.localRev = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.count = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchOperations_args') if self.localRev is not None: oprot.writeFieldBegin('localRev', TType.I64, 2) oprot.writeI64(self.localRev) oprot.writeFieldEnd() if self.count is not None: oprot.writeFieldBegin('count', TType.I32, 3) oprot.writeI32(self.count) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.localRev) value = (value * 31) ^ hash(self.count) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchOperations_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Operation, Operation.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype819, _size816) = iprot.readListBegin() for _i820 in xrange(_size816): _elem821 = Operation() _elem821.read(iprot) self.success.append(_elem821) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchOperations_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter822 in self.success: iter822.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchOps_args: """ Attributes: - localRev - count - globalRev - individualRev """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'localRev', None, None, ), # 2 (3, TType.I32, 'count', None, None, ), # 3 (4, TType.I64, 'globalRev', None, None, ), # 4 (5, TType.I64, 'individualRev', None, None, ), # 5 ) def __init__(self, localRev=None, count=None, globalRev=None, individualRev=None,): self.localRev = localRev self.count = count self.globalRev = globalRev self.individualRev = individualRev 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 == 2: if ftype == TType.I64: self.localRev = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.count = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I64: self.globalRev = iprot.readI64() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I64: self.individualRev = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchOps_args') if self.localRev is not None: oprot.writeFieldBegin('localRev', TType.I64, 2) oprot.writeI64(self.localRev) oprot.writeFieldEnd() if self.count is not None: oprot.writeFieldBegin('count', TType.I32, 3) oprot.writeI32(self.count) oprot.writeFieldEnd() if self.globalRev is not None: oprot.writeFieldBegin('globalRev', TType.I64, 4) oprot.writeI64(self.globalRev) oprot.writeFieldEnd() if self.individualRev is not None: oprot.writeFieldBegin('individualRev', TType.I64, 5) oprot.writeI64(self.individualRev) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.localRev) value = (value * 31) ^ hash(self.count) value = (value * 31) ^ hash(self.globalRev) value = (value * 31) ^ hash(self.individualRev) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class fetchOps_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Operation, Operation.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype826, _size823) = iprot.readListBegin() for _i827 in xrange(_size823): _elem828 = Operation() _elem828.read(iprot) self.success.append(_elem828) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('fetchOps_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter829 in self.success: iter829.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findAndAddContactsByEmail_args: """ Attributes: - reqSeq - emails """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.SET, 'emails', (TType.STRING,None), None, ), # 2 ) def __init__(self, reqSeq=None, emails=None,): self.reqSeq = reqSeq self.emails = emails 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.emails = set() (_etype833, _size830) = iprot.readSetBegin() for _i834 in xrange(_size830): _elem835 = iprot.readString() self.emails.add(_elem835) iprot.readSetEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findAndAddContactsByEmail_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.emails is not None: oprot.writeFieldBegin('emails', TType.SET, 2) oprot.writeSetBegin(TType.STRING, len(self.emails)) for iter836 in self.emails: oprot.writeString(iter836) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.emails) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findAndAddContactsByEmail_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype838, _vtype839, _size837 ) = iprot.readMapBegin() for _i841 in xrange(_size837): _key842 = iprot.readString() _val843 = Contact() _val843.read(iprot) self.success[_key842] = _val843 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findAndAddContactsByEmail_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) for kiter844,viter845 in self.success.items(): oprot.writeString(kiter844) viter845.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findAndAddContactsByMid_args: """ Attributes: - reqSeq - mid """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'mid', None, None, ), # 2 ) def __init__(self, reqSeq=None, mid=None,): self.reqSeq = reqSeq self.mid = mid 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findAndAddContactsByMid_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.mid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findAndAddContactsByMid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype847, _vtype848, _size846 ) = iprot.readMapBegin() for _i850 in xrange(_size846): _key851 = iprot.readString() _val852 = Contact() _val852.read(iprot) self.success[_key851] = _val852 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findAndAddContactsByMid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) for kiter853,viter854 in self.success.items(): oprot.writeString(kiter853) viter854.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findAndAddContactsByPhone_args: """ Attributes: - reqSeq - phones """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.SET, 'phones', (TType.STRING,None), None, ), # 2 ) def __init__(self, reqSeq=None, phones=None,): self.reqSeq = reqSeq self.phones = phones 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.phones = set() (_etype858, _size855) = iprot.readSetBegin() for _i859 in xrange(_size855): _elem860 = iprot.readString() self.phones.add(_elem860) iprot.readSetEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findAndAddContactsByPhone_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.phones is not None: oprot.writeFieldBegin('phones', TType.SET, 2) oprot.writeSetBegin(TType.STRING, len(self.phones)) for iter861 in self.phones: oprot.writeString(iter861) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.phones) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findAndAddContactsByPhone_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype863, _vtype864, _size862 ) = iprot.readMapBegin() for _i866 in xrange(_size862): _key867 = iprot.readString() _val868 = Contact() _val868.read(iprot) self.success[_key867] = _val868 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findAndAddContactsByPhone_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) for kiter869,viter870 in self.success.items(): oprot.writeString(kiter869) viter870.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findAndAddContactsByUserid_args: """ Attributes: - reqSeq - userid """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'userid', None, None, ), # 2 ) def __init__(self, reqSeq=None, userid=None,): self.reqSeq = reqSeq self.userid = userid 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.userid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findAndAddContactsByUserid_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.userid is not None: oprot.writeFieldBegin('userid', TType.STRING, 2) oprot.writeString(self.userid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.userid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findAndAddContactsByUserid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype872, _vtype873, _size871 ) = iprot.readMapBegin() for _i875 in xrange(_size871): _key876 = iprot.readString() _val877 = Contact() _val877.read(iprot) self.success[_key876] = _val877 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findAndAddContactsByUserid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) for kiter878,viter879 in self.success.items(): oprot.writeString(kiter878) viter879.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findContactByUserid_args: """ Attributes: - userid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'userid', None, None, ), # 2 ) def __init__(self, userid=None,): self.userid = userid 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 == 2: if ftype == TType.STRING: self.userid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findContactByUserid_args') if self.userid is not None: oprot.writeFieldBegin('userid', TType.STRING, 2) oprot.writeString(self.userid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.userid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findContactByUserid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Contact, Contact.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Contact() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findContactByUserid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findContactByUserTicket_args: """ Attributes: - ticketId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'ticketId', None, None, ), # 2 ) def __init__(self, ticketId=None,): self.ticketId = ticketId 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 == 2: if ftype == TType.STRING: self.ticketId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findContactByUserTicket_args') if self.ticketId is not None: oprot.writeFieldBegin('ticketId', TType.STRING, 2) oprot.writeString(self.ticketId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.ticketId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findContactByUserTicket_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Contact, Contact.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Contact() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findContactByUserTicket_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findGroupByTicket_args: """ Attributes: - ticketId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'ticketId', None, None, ), # 2 ) def __init__(self, ticketId=None,): self.ticketId = ticketId 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 == 2: if ftype == TType.STRING: self.ticketId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findGroupByTicket_args') if self.ticketId is not None: oprot.writeFieldBegin('ticketId', TType.STRING, 2) oprot.writeString(self.ticketId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.ticketId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findGroupByTicket_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Group, Group.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Group() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findGroupByTicket_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findContactsByEmail_args: """ Attributes: - emails """ thrift_spec = ( None, # 0 None, # 1 (2, TType.SET, 'emails', (TType.STRING,None), None, ), # 2 ) def __init__(self, emails=None,): self.emails = emails 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 == 2: if ftype == TType.SET: self.emails = set() (_etype883, _size880) = iprot.readSetBegin() for _i884 in xrange(_size880): _elem885 = iprot.readString() self.emails.add(_elem885) iprot.readSetEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findContactsByEmail_args') if self.emails is not None: oprot.writeFieldBegin('emails', TType.SET, 2) oprot.writeSetBegin(TType.STRING, len(self.emails)) for iter886 in self.emails: oprot.writeString(iter886) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.emails) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findContactsByEmail_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype888, _vtype889, _size887 ) = iprot.readMapBegin() for _i891 in xrange(_size887): _key892 = iprot.readString() _val893 = Contact() _val893.read(iprot) self.success[_key892] = _val893 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findContactsByEmail_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) for kiter894,viter895 in self.success.items(): oprot.writeString(kiter894) viter895.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findContactsByPhone_args: """ Attributes: - phones """ thrift_spec = ( None, # 0 None, # 1 (2, TType.SET, 'phones', (TType.STRING,None), None, ), # 2 ) def __init__(self, phones=None,): self.phones = phones 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 == 2: if ftype == TType.SET: self.phones = set() (_etype899, _size896) = iprot.readSetBegin() for _i900 in xrange(_size896): _elem901 = iprot.readString() self.phones.add(_elem901) iprot.readSetEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findContactsByPhone_args') if self.phones is not None: oprot.writeFieldBegin('phones', TType.SET, 2) oprot.writeSetBegin(TType.STRING, len(self.phones)) for iter902 in self.phones: oprot.writeString(iter902) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.phones) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findContactsByPhone_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype904, _vtype905, _size903 ) = iprot.readMapBegin() for _i907 in xrange(_size903): _key908 = iprot.readString() _val909 = Contact() _val909.read(iprot) self.success[_key908] = _val909 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findContactsByPhone_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) for kiter910,viter911 in self.success.items(): oprot.writeString(kiter910) viter911.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findSnsIdUserStatus_args: """ Attributes: - snsIdType - snsAccessToken - udidHash """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'snsIdType', None, None, ), # 2 (3, TType.STRING, 'snsAccessToken', None, None, ), # 3 (4, TType.STRING, 'udidHash', None, None, ), # 4 ) def __init__(self, snsIdType=None, snsAccessToken=None, udidHash=None,): self.snsIdType = snsIdType self.snsAccessToken = snsAccessToken self.udidHash = udidHash 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 == 2: if ftype == TType.I32: self.snsIdType = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.snsAccessToken = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findSnsIdUserStatus_args') if self.snsIdType is not None: oprot.writeFieldBegin('snsIdType', TType.I32, 2) oprot.writeI32(self.snsIdType) oprot.writeFieldEnd() if self.snsAccessToken is not None: oprot.writeFieldBegin('snsAccessToken', TType.STRING, 3) oprot.writeString(self.snsAccessToken) oprot.writeFieldEnd() if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 4) oprot.writeString(self.udidHash) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsIdType) value = (value * 31) ^ hash(self.snsAccessToken) value = (value * 31) ^ hash(self.udidHash) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class findSnsIdUserStatus_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SnsIdUserStatus, SnsIdUserStatus.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SnsIdUserStatus() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('findSnsIdUserStatus_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class finishUpdateVerification_args: """ Attributes: - sessionId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 ) def __init__(self, sessionId=None,): self.sessionId = sessionId 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('finishUpdateVerification_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class finishUpdateVerification_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('finishUpdateVerification_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class generateUserTicket_args: """ Attributes: - expirationTime - maxUseCount """ thrift_spec = ( None, # 0 None, # 1 None, # 2 (3, TType.I64, 'expirationTime', None, None, ), # 3 (4, TType.I32, 'maxUseCount', None, None, ), # 4 ) def __init__(self, expirationTime=None, maxUseCount=None,): self.expirationTime = expirationTime self.maxUseCount = maxUseCount 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 == 3: if ftype == TType.I64: self.expirationTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.maxUseCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('generateUserTicket_args') if self.expirationTime is not None: oprot.writeFieldBegin('expirationTime', TType.I64, 3) oprot.writeI64(self.expirationTime) oprot.writeFieldEnd() if self.maxUseCount is not None: oprot.writeFieldBegin('maxUseCount', TType.I32, 4) oprot.writeI32(self.maxUseCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.expirationTime) value = (value * 31) ^ hash(self.maxUseCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class generateUserTicket_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Ticket, Ticket.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Ticket() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('generateUserTicket_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getAcceptedProximityMatches_args: """ Attributes: - sessionId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 ) def __init__(self, sessionId=None,): self.sessionId = sessionId 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getAcceptedProximityMatches_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getAcceptedProximityMatches_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.SET, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.SET: self.success = set() (_etype915, _size912) = iprot.readSetBegin() for _i916 in xrange(_size912): _elem917 = iprot.readString() self.success.add(_elem917) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getAcceptedProximityMatches_result') if self.success is not None: oprot.writeFieldBegin('success', TType.SET, 0) oprot.writeSetBegin(TType.STRING, len(self.success)) for iter918 in self.success: oprot.writeString(iter918) oprot.writeSetEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getActiveBuddySubscriberIds_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getActiveBuddySubscriberIds_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getActiveBuddySubscriberIds_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype922, _size919) = iprot.readListBegin() for _i923 in xrange(_size919): _elem924 = iprot.readString() self.success.append(_elem924) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getActiveBuddySubscriberIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter925 in self.success: oprot.writeString(iter925) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getAllContactIds_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getAllContactIds_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getAllContactIds_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype929, _size926) = iprot.readListBegin() for _i930 in xrange(_size926): _elem931 = iprot.readString() self.success.append(_elem931) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getAllContactIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter932 in self.success: oprot.writeString(iter932) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getAuthQrcode_args: """ Attributes: - keepLoggedIn - systemName """ thrift_spec = ( None, # 0 None, # 1 (2, TType.BOOL, 'keepLoggedIn', None, None, ), # 2 (3, TType.STRING, 'systemName', None, None, ), # 3 ) def __init__(self, keepLoggedIn=None, systemName=None,): self.keepLoggedIn = keepLoggedIn self.systemName = systemName 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 == 2: if ftype == TType.BOOL: self.keepLoggedIn = iprot.readBool() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.systemName = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getAuthQrcode_args') if self.keepLoggedIn is not None: oprot.writeFieldBegin('keepLoggedIn', TType.BOOL, 2) oprot.writeBool(self.keepLoggedIn) oprot.writeFieldEnd() if self.systemName is not None: oprot.writeFieldBegin('systemName', TType.STRING, 3) oprot.writeString(self.systemName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.keepLoggedIn) value = (value * 31) ^ hash(self.systemName) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getAuthQrcode_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (AuthQrcode, AuthQrcode.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = AuthQrcode() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getAuthQrcode_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBlockedContactIds_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBlockedContactIds_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBlockedContactIds_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype936, _size933) = iprot.readListBegin() for _i937 in xrange(_size933): _elem938 = iprot.readString() self.success.append(_elem938) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBlockedContactIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter939 in self.success: oprot.writeString(iter939) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBlockedContactIdsByRange_args: """ Attributes: - start - count """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'start', None, None, ), # 2 (3, TType.I32, 'count', None, None, ), # 3 ) def __init__(self, start=None, count=None,): self.start = start self.count = count 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 == 2: if ftype == TType.I32: self.start = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.count = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBlockedContactIdsByRange_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I32, 2) oprot.writeI32(self.start) oprot.writeFieldEnd() if self.count is not None: oprot.writeFieldBegin('count', TType.I32, 3) oprot.writeI32(self.count) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.count) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBlockedContactIdsByRange_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype943, _size940) = iprot.readListBegin() for _i944 in xrange(_size940): _elem945 = iprot.readString() self.success.append(_elem945) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBlockedContactIdsByRange_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter946 in self.success: oprot.writeString(iter946) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBlockedRecommendationIds_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBlockedRecommendationIds_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBlockedRecommendationIds_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype950, _size947) = iprot.readListBegin() for _i951 in xrange(_size947): _elem952 = iprot.readString() self.success.append(_elem952) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBlockedRecommendationIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter953 in self.success: oprot.writeString(iter953) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyBlockerIds_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyBlockerIds_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyBlockerIds_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype957, _size954) = iprot.readListBegin() for _i958 in xrange(_size954): _elem959 = iprot.readString() self.success.append(_elem959) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyBlockerIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter960 in self.success: oprot.writeString(iter960) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyLocation_args: """ Attributes: - mid - index """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'mid', None, None, ), # 2 (3, TType.I32, 'index', None, None, ), # 3 ) def __init__(self, mid=None, index=None,): self.mid = mid self.index = index 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 == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.index = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyLocation_args') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.index is not None: oprot.writeFieldBegin('index', TType.I32, 3) oprot.writeI32(self.index) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.index) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getBuddyLocation_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Geolocation, Geolocation.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Geolocation() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getBuddyLocation_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCompactContactsModifiedSince_args: """ Attributes: - timestamp """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'timestamp', None, None, ), # 2 ) def __init__(self, timestamp=None,): self.timestamp = timestamp 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 == 2: if ftype == TType.I64: self.timestamp = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCompactContactsModifiedSince_args') if self.timestamp is not None: oprot.writeFieldBegin('timestamp', TType.I64, 2) oprot.writeI64(self.timestamp) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.timestamp) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCompactContactsModifiedSince_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(CompactContact, CompactContact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype964, _size961) = iprot.readListBegin() for _i965 in xrange(_size961): _elem966 = CompactContact() _elem966.read(iprot) self.success.append(_elem966) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCompactContactsModifiedSince_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter967 in self.success: iter967.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCompactGroup_args: """ Attributes: - groupId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'groupId', None, None, ), # 2 ) def __init__(self, groupId=None,): self.groupId = groupId 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 == 2: if ftype == TType.STRING: self.groupId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCompactGroup_args') if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 2) oprot.writeString(self.groupId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.groupId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCompactGroup_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Group, Group.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Group() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCompactGroup_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCompactRoom_args: """ Attributes: - roomId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'roomId', None, None, ), # 2 ) def __init__(self, roomId=None,): self.roomId = roomId 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 == 2: if ftype == TType.STRING: self.roomId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCompactRoom_args') if self.roomId is not None: oprot.writeFieldBegin('roomId', TType.STRING, 2) oprot.writeString(self.roomId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.roomId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCompactRoom_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Room, Room.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Room() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCompactRoom_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getContact_args: """ Attributes: - id """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'id', None, None, ), # 2 ) def __init__(self, id=None,): self.id = id 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 == 2: if ftype == TType.STRING: self.id = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getContact_args') if self.id is not None: oprot.writeFieldBegin('id', TType.STRING, 2) oprot.writeString(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.id) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getContact_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Contact, Contact.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Contact() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getContact_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getContacts_args: """ Attributes: - ids """ thrift_spec = ( None, # 0 None, # 1 (2, TType.LIST, 'ids', (TType.STRING,None), None, ), # 2 ) def __init__(self, ids=None,): self.ids = ids 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 == 2: if ftype == TType.LIST: self.ids = [] (_etype971, _size968) = iprot.readListBegin() for _i972 in xrange(_size968): _elem973 = iprot.readString() self.ids.append(_elem973) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getContacts_args') if self.ids is not None: oprot.writeFieldBegin('ids', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.ids)) for iter974 in self.ids: oprot.writeString(iter974) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.ids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getContacts_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype978, _size975) = iprot.readListBegin() for _i979 in xrange(_size975): _elem980 = Contact() _elem980.read(iprot) self.success.append(_elem980) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getContacts_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter981 in self.success: iter981.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCountryWithRequestIp_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCountryWithRequestIp_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getCountryWithRequestIp_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getCountryWithRequestIp_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getFavoriteMids_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getFavoriteMids_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getFavoriteMids_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype985, _size982) = iprot.readListBegin() for _i986 in xrange(_size982): _elem987 = iprot.readString() self.success.append(_elem987) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getFavoriteMids_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter988 in self.success: oprot.writeString(iter988) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroup_args: """ Attributes: - groupId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'groupId', None, None, ), # 2 ) def __init__(self, groupId=None,): self.groupId = groupId 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 == 2: if ftype == TType.STRING: self.groupId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroup_args') if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 2) oprot.writeString(self.groupId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.groupId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroup_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Group, Group.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Group() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroup_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroupIdsInvited_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroupIdsInvited_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroupIdsInvited_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype992, _size989) = iprot.readListBegin() for _i993 in xrange(_size989): _elem994 = iprot.readString() self.success.append(_elem994) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroupIdsInvited_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter995 in self.success: oprot.writeString(iter995) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroupIdsJoined_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroupIdsJoined_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroupIdsJoined_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype999, _size996) = iprot.readListBegin() for _i1000 in xrange(_size996): _elem1001 = iprot.readString() self.success.append(_elem1001) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroupIdsJoined_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter1002 in self.success: oprot.writeString(iter1002) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroups_args: """ Attributes: - groupIds """ thrift_spec = ( None, # 0 None, # 1 (2, TType.LIST, 'groupIds', (TType.STRING,None), None, ), # 2 ) def __init__(self, groupIds=None,): self.groupIds = groupIds 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 == 2: if ftype == TType.LIST: self.groupIds = [] (_etype1006, _size1003) = iprot.readListBegin() for _i1007 in xrange(_size1003): _elem1008 = iprot.readString() self.groupIds.append(_elem1008) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroups_args') if self.groupIds is not None: oprot.writeFieldBegin('groupIds', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.groupIds)) for iter1009 in self.groupIds: oprot.writeString(iter1009) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.groupIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getGroups_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Group, Group.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1013, _size1010) = iprot.readListBegin() for _i1014 in xrange(_size1010): _elem1015 = Group() _elem1015.read(iprot) self.success.append(_elem1015) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getGroups_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter1016 in self.success: iter1016.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getHiddenContactMids_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getHiddenContactMids_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getHiddenContactMids_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1020, _size1017) = iprot.readListBegin() for _i1021 in xrange(_size1017): _elem1022 = iprot.readString() self.success.append(_elem1022) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getHiddenContactMids_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter1023 in self.success: oprot.writeString(iter1023) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getIdentityIdentifier_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getIdentityIdentifier_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getIdentityIdentifier_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getIdentityIdentifier_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getLastAnnouncementIndex_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getLastAnnouncementIndex_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getLastAnnouncementIndex_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I32, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I32: self.success = iprot.readI32() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getLastAnnouncementIndex_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getLastOpRevision_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getLastOpRevision_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getLastOpRevision_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I64, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I64: self.success = iprot.readI64() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getLastOpRevision_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBox_args: """ Attributes: - channelId - messageBoxId - lastMessagesCount """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'channelId', None, None, ), # 2 (3, TType.STRING, 'messageBoxId', None, None, ), # 3 (4, TType.I32, 'lastMessagesCount', None, None, ), # 4 ) def __init__(self, channelId=None, messageBoxId=None, lastMessagesCount=None,): self.channelId = channelId self.messageBoxId = messageBoxId self.lastMessagesCount = lastMessagesCount 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 == 2: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.messageBoxId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.lastMessagesCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBox_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 2) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.messageBoxId is not None: oprot.writeFieldBegin('messageBoxId', TType.STRING, 3) oprot.writeString(self.messageBoxId) oprot.writeFieldEnd() if self.lastMessagesCount is not None: oprot.writeFieldBegin('lastMessagesCount', TType.I32, 4) oprot.writeI32(self.lastMessagesCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.messageBoxId) value = (value * 31) ^ hash(self.lastMessagesCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBox_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (TMessageBox, TMessageBox.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = TMessageBox() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBox_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxCompactWrapUp_args: """ Attributes: - mid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'mid', None, None, ), # 2 ) def __init__(self, mid=None,): self.mid = mid 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 == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxCompactWrapUp_args') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxCompactWrapUp_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (TMessageBoxWrapUp, TMessageBoxWrapUp.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = TMessageBoxWrapUp() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxCompactWrapUp_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxCompactWrapUpList_args: """ Attributes: - start - messageBoxCount """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'start', None, None, ), # 2 (3, TType.I32, 'messageBoxCount', None, None, ), # 3 ) def __init__(self, start=None, messageBoxCount=None,): self.start = start self.messageBoxCount = messageBoxCount 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 == 2: if ftype == TType.I32: self.start = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.messageBoxCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxCompactWrapUpList_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I32, 2) oprot.writeI32(self.start) oprot.writeFieldEnd() if self.messageBoxCount is not None: oprot.writeFieldBegin('messageBoxCount', TType.I32, 3) oprot.writeI32(self.messageBoxCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.messageBoxCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxCompactWrapUpList_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (TMessageBoxWrapUpResponse, TMessageBoxWrapUpResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = TMessageBoxWrapUpResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxCompactWrapUpList_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxList_args: """ Attributes: - channelId - lastMessagesCount """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'channelId', None, None, ), # 2 (3, TType.I32, 'lastMessagesCount', None, None, ), # 3 ) def __init__(self, channelId=None, lastMessagesCount=None,): self.channelId = channelId self.lastMessagesCount = lastMessagesCount 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 == 2: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.lastMessagesCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxList_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 2) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.lastMessagesCount is not None: oprot.writeFieldBegin('lastMessagesCount', TType.I32, 3) oprot.writeI32(self.lastMessagesCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.lastMessagesCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxList_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(TMessageBox, TMessageBox.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1027, _size1024) = iprot.readListBegin() for _i1028 in xrange(_size1024): _elem1029 = TMessageBox() _elem1029.read(iprot) self.success.append(_elem1029) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxList_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter1030 in self.success: iter1030.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxListByStatus_args: """ Attributes: - channelId - lastMessagesCount - status """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'channelId', None, None, ), # 2 (3, TType.I32, 'lastMessagesCount', None, None, ), # 3 (4, TType.I32, 'status', None, None, ), # 4 ) def __init__(self, channelId=None, lastMessagesCount=None, status=None,): self.channelId = channelId self.lastMessagesCount = lastMessagesCount self.status = status 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 == 2: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.lastMessagesCount = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.status = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxListByStatus_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 2) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.lastMessagesCount is not None: oprot.writeFieldBegin('lastMessagesCount', TType.I32, 3) oprot.writeI32(self.lastMessagesCount) oprot.writeFieldEnd() if self.status is not None: oprot.writeFieldBegin('status', TType.I32, 4) oprot.writeI32(self.status) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.lastMessagesCount) value = (value * 31) ^ hash(self.status) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxListByStatus_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(TMessageBox, TMessageBox.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1034, _size1031) = iprot.readListBegin() for _i1035 in xrange(_size1031): _elem1036 = TMessageBox() _elem1036.read(iprot) self.success.append(_elem1036) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxListByStatus_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter1037 in self.success: iter1037.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxWrapUp_args: """ Attributes: - mid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'mid', None, None, ), # 2 ) def __init__(self, mid=None,): self.mid = mid 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 == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxWrapUp_args') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxWrapUp_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (TMessageBoxWrapUp, TMessageBoxWrapUp.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = TMessageBoxWrapUp() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxWrapUp_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxWrapUpList_args: """ Attributes: - start - messageBoxCount """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'start', None, None, ), # 2 (3, TType.I32, 'messageBoxCount', None, None, ), # 3 ) def __init__(self, start=None, messageBoxCount=None,): self.start = start self.messageBoxCount = messageBoxCount 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 == 2: if ftype == TType.I32: self.start = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.messageBoxCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxWrapUpList_args') if self.start is not None: oprot.writeFieldBegin('start', TType.I32, 2) oprot.writeI32(self.start) oprot.writeFieldEnd() if self.messageBoxCount is not None: oprot.writeFieldBegin('messageBoxCount', TType.I32, 3) oprot.writeI32(self.messageBoxCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.messageBoxCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessageBoxWrapUpList_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (TMessageBoxWrapUpResponse, TMessageBoxWrapUpResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = TMessageBoxWrapUpResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessageBoxWrapUpList_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessagesBySequenceNumber_args: """ Attributes: - channelId - messageBoxId - startSeq - endSeq """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'channelId', None, None, ), # 2 (3, TType.STRING, 'messageBoxId', None, None, ), # 3 (4, TType.I64, 'startSeq', None, None, ), # 4 (5, TType.I64, 'endSeq', None, None, ), # 5 ) def __init__(self, channelId=None, messageBoxId=None, startSeq=None, endSeq=None,): self.channelId = channelId self.messageBoxId = messageBoxId self.startSeq = startSeq self.endSeq = endSeq 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 == 2: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.messageBoxId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I64: self.startSeq = iprot.readI64() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I64: self.endSeq = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessagesBySequenceNumber_args') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 2) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.messageBoxId is not None: oprot.writeFieldBegin('messageBoxId', TType.STRING, 3) oprot.writeString(self.messageBoxId) oprot.writeFieldEnd() if self.startSeq is not None: oprot.writeFieldBegin('startSeq', TType.I64, 4) oprot.writeI64(self.startSeq) oprot.writeFieldEnd() if self.endSeq is not None: oprot.writeFieldBegin('endSeq', TType.I64, 5) oprot.writeI64(self.endSeq) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.messageBoxId) value = (value * 31) ^ hash(self.startSeq) value = (value * 31) ^ hash(self.endSeq) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getMessagesBySequenceNumber_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Message, Message.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1041, _size1038) = iprot.readListBegin() for _i1042 in xrange(_size1038): _elem1043 = Message() _elem1043.read(iprot) self.success.append(_elem1043) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getMessagesBySequenceNumber_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter1044 in self.success: iter1044.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNextMessages_args: """ Attributes: - messageBoxId - startSeq - messagesCount """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'messageBoxId', None, None, ), # 2 (3, TType.I64, 'startSeq', None, None, ), # 3 (4, TType.I32, 'messagesCount', None, None, ), # 4 ) def __init__(self, messageBoxId=None, startSeq=None, messagesCount=None,): self.messageBoxId = messageBoxId self.startSeq = startSeq self.messagesCount = messagesCount 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 == 2: if ftype == TType.STRING: self.messageBoxId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: self.startSeq = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.messagesCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getNextMessages_args') if self.messageBoxId is not None: oprot.writeFieldBegin('messageBoxId', TType.STRING, 2) oprot.writeString(self.messageBoxId) oprot.writeFieldEnd() if self.startSeq is not None: oprot.writeFieldBegin('startSeq', TType.I64, 3) oprot.writeI64(self.startSeq) oprot.writeFieldEnd() if self.messagesCount is not None: oprot.writeFieldBegin('messagesCount', TType.I32, 4) oprot.writeI32(self.messagesCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.messageBoxId) value = (value * 31) ^ hash(self.startSeq) value = (value * 31) ^ hash(self.messagesCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNextMessages_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Message, Message.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1048, _size1045) = iprot.readListBegin() for _i1049 in xrange(_size1045): _elem1050 = Message() _elem1050.read(iprot) self.success.append(_elem1050) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getNextMessages_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter1051 in self.success: iter1051.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNotificationPolicy_args: """ Attributes: - carrier """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'carrier', None, None, ), # 2 ) def __init__(self, carrier=None,): self.carrier = carrier 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 == 2: if ftype == TType.I32: self.carrier = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getNotificationPolicy_args') if self.carrier is not None: oprot.writeFieldBegin('carrier', TType.I32, 2) oprot.writeI32(self.carrier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.carrier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getNotificationPolicy_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.I32,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1055, _size1052) = iprot.readListBegin() for _i1056 in xrange(_size1052): _elem1057 = iprot.readI32() self.success.append(_elem1057) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getNotificationPolicy_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.I32, len(self.success)) for iter1058 in self.success: oprot.writeI32(iter1058) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPreviousMessages_args: """ Attributes: - messageBoxId - endSeq - messagesCount """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'messageBoxId', None, None, ), # 2 (3, TType.I64, 'endSeq', None, None, ), # 3 (4, TType.I32, 'messagesCount', None, None, ), # 4 ) def __init__(self, messageBoxId=None, endSeq=None, messagesCount=None,): self.messageBoxId = messageBoxId self.endSeq = endSeq self.messagesCount = messagesCount 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 == 2: if ftype == TType.STRING: self.messageBoxId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: self.endSeq = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.messagesCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPreviousMessages_args') if self.messageBoxId is not None: oprot.writeFieldBegin('messageBoxId', TType.STRING, 2) oprot.writeString(self.messageBoxId) oprot.writeFieldEnd() if self.endSeq is not None: oprot.writeFieldBegin('endSeq', TType.I64, 3) oprot.writeI64(self.endSeq) oprot.writeFieldEnd() if self.messagesCount is not None: oprot.writeFieldBegin('messagesCount', TType.I32, 4) oprot.writeI32(self.messagesCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.messageBoxId) value = (value * 31) ^ hash(self.endSeq) value = (value * 31) ^ hash(self.messagesCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getPreviousMessages_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Message, Message.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1062, _size1059) = iprot.readListBegin() for _i1063 in xrange(_size1059): _elem1064 = Message() _elem1064.read(iprot) self.success.append(_elem1064) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getPreviousMessages_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter1065 in self.success: iter1065.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProfile_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProfile_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProfile_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Profile, Profile.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Profile() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProfile_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProximityMatchCandidateList_args: """ Attributes: - sessionId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 ) def __init__(self, sessionId=None,): self.sessionId = sessionId 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProximityMatchCandidateList_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProximityMatchCandidateList_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (ProximityMatchCandidateResult, ProximityMatchCandidateResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = ProximityMatchCandidateResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProximityMatchCandidateList_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProximityMatchCandidates_args: """ Attributes: - sessionId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 ) def __init__(self, sessionId=None,): self.sessionId = sessionId 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProximityMatchCandidates_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getProximityMatchCandidates_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.SET, 'success', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.SET: self.success = set() (_etype1069, _size1066) = iprot.readSetBegin() for _i1070 in xrange(_size1066): _elem1071 = Contact() _elem1071.read(iprot) self.success.add(_elem1071) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getProximityMatchCandidates_result') if self.success is not None: oprot.writeFieldBegin('success', TType.SET, 0) oprot.writeSetBegin(TType.STRUCT, len(self.success)) for iter1072 in self.success: iter1072.write(oprot) oprot.writeSetEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getRecentMessages_args: """ Attributes: - messageBoxId - messagesCount """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'messageBoxId', None, None, ), # 2 (3, TType.I32, 'messagesCount', None, None, ), # 3 ) def __init__(self, messageBoxId=None, messagesCount=None,): self.messageBoxId = messageBoxId self.messagesCount = messagesCount 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 == 2: if ftype == TType.STRING: self.messageBoxId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.messagesCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getRecentMessages_args') if self.messageBoxId is not None: oprot.writeFieldBegin('messageBoxId', TType.STRING, 2) oprot.writeString(self.messageBoxId) oprot.writeFieldEnd() if self.messagesCount is not None: oprot.writeFieldBegin('messagesCount', TType.I32, 3) oprot.writeI32(self.messagesCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.messageBoxId) value = (value * 31) ^ hash(self.messagesCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getRecentMessages_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(Message, Message.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1076, _size1073) = iprot.readListBegin() for _i1077 in xrange(_size1073): _elem1078 = Message() _elem1078.read(iprot) self.success.append(_elem1078) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getRecentMessages_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter1079 in self.success: iter1079.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getRecommendationIds_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getRecommendationIds_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getRecommendationIds_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1083, _size1080) = iprot.readListBegin() for _i1084 in xrange(_size1080): _elem1085 = iprot.readString() self.success.append(_elem1085) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getRecommendationIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter1086 in self.success: oprot.writeString(iter1086) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getRoom_args: """ Attributes: - roomId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'roomId', None, None, ), # 2 ) def __init__(self, roomId=None,): self.roomId = roomId 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 == 2: if ftype == TType.STRING: self.roomId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getRoom_args') if self.roomId is not None: oprot.writeFieldBegin('roomId', TType.STRING, 2) oprot.writeString(self.roomId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.roomId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getRoom_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Room, Room.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Room() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getRoom_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getRSAKeyInfo_args: """ Attributes: - provider """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'provider', None, None, ), # 2 ) def __init__(self, provider=None,): self.provider = provider 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 == 2: if ftype == TType.I32: self.provider = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getRSAKeyInfo_args') if self.provider is not None: oprot.writeFieldBegin('provider', TType.I32, 2) oprot.writeI32(self.provider) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.provider) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getRSAKeyInfo_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (RSAKey, RSAKey.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = RSAKey() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getRSAKeyInfo_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getServerTime_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getServerTime_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getServerTime_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I64, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I64: self.success = iprot.readI64() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getServerTime_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSessions_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSessions_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSessions_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(LoginSession, LoginSession.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1090, _size1087) = iprot.readListBegin() for _i1091 in xrange(_size1087): _elem1092 = LoginSession() _elem1092.read(iprot) self.success.append(_elem1092) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSessions_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter1093 in self.success: iter1093.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSettings_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSettings_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSettings_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Settings, Settings.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Settings() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSettings_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSettingsAttributes_args: """ Attributes: - attrBitset """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'attrBitset', None, None, ), # 2 ) def __init__(self, attrBitset=None,): self.attrBitset = attrBitset 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 == 2: if ftype == TType.I32: self.attrBitset = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSettingsAttributes_args') if self.attrBitset is not None: oprot.writeFieldBegin('attrBitset', TType.I32, 2) oprot.writeI32(self.attrBitset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.attrBitset) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSettingsAttributes_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Settings, Settings.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Settings() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSettingsAttributes_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSystemConfiguration_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSystemConfiguration_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getSystemConfiguration_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (SystemConfiguration, SystemConfiguration.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = SystemConfiguration() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getSystemConfiguration_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserTicket_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserTicket_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getUserTicket_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Ticket, Ticket.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Ticket() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getUserTicket_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getWapInvitation_args: """ Attributes: - invitationHash """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'invitationHash', None, None, ), # 2 ) def __init__(self, invitationHash=None,): self.invitationHash = invitationHash 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 == 2: if ftype == TType.STRING: self.invitationHash = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getWapInvitation_args') if self.invitationHash is not None: oprot.writeFieldBegin('invitationHash', TType.STRING, 2) oprot.writeString(self.invitationHash) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.invitationHash) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class getWapInvitation_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (WapInvitation, WapInvitation.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = WapInvitation() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('getWapInvitation_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class invalidateUserTicket_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('invalidateUserTicket_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class invalidateUserTicket_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('invalidateUserTicket_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class inviteFriendsBySms_args: """ Attributes: - phoneNumberList """ thrift_spec = ( None, # 0 None, # 1 (2, TType.LIST, 'phoneNumberList', (TType.STRING,None), None, ), # 2 ) def __init__(self, phoneNumberList=None,): self.phoneNumberList = phoneNumberList 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 == 2: if ftype == TType.LIST: self.phoneNumberList = [] (_etype1097, _size1094) = iprot.readListBegin() for _i1098 in xrange(_size1094): _elem1099 = iprot.readString() self.phoneNumberList.append(_elem1099) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('inviteFriendsBySms_args') if self.phoneNumberList is not None: oprot.writeFieldBegin('phoneNumberList', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.phoneNumberList)) for iter1100 in self.phoneNumberList: oprot.writeString(iter1100) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.phoneNumberList) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class inviteFriendsBySms_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('inviteFriendsBySms_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class inviteIntoGroup_args: """ Attributes: - reqSeq - groupId - contactIds """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'groupId', None, None, ), # 2 (3, TType.LIST, 'contactIds', (TType.STRING,None), None, ), # 3 ) def __init__(self, reqSeq=None, groupId=None, contactIds=None,): self.reqSeq = reqSeq self.groupId = groupId self.contactIds = contactIds 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.groupId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.contactIds = [] (_etype1104, _size1101) = iprot.readListBegin() for _i1105 in xrange(_size1101): _elem1106 = iprot.readString() self.contactIds.append(_elem1106) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('inviteIntoGroup_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 2) oprot.writeString(self.groupId) oprot.writeFieldEnd() if self.contactIds is not None: oprot.writeFieldBegin('contactIds', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.contactIds)) for iter1107 in self.contactIds: oprot.writeString(iter1107) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.groupId) value = (value * 31) ^ hash(self.contactIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class inviteIntoGroup_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('inviteIntoGroup_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class inviteIntoRoom_args: """ Attributes: - reqSeq - roomId - contactIds """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'roomId', None, None, ), # 2 (3, TType.LIST, 'contactIds', (TType.STRING,None), None, ), # 3 ) def __init__(self, reqSeq=None, roomId=None, contactIds=None,): self.reqSeq = reqSeq self.roomId = roomId self.contactIds = contactIds 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.roomId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.contactIds = [] (_etype1111, _size1108) = iprot.readListBegin() for _i1112 in xrange(_size1108): _elem1113 = iprot.readString() self.contactIds.append(_elem1113) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('inviteIntoRoom_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.roomId is not None: oprot.writeFieldBegin('roomId', TType.STRING, 2) oprot.writeString(self.roomId) oprot.writeFieldEnd() if self.contactIds is not None: oprot.writeFieldBegin('contactIds', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.contactIds)) for iter1114 in self.contactIds: oprot.writeString(iter1114) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.roomId) value = (value * 31) ^ hash(self.contactIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class inviteIntoRoom_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('inviteIntoRoom_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class inviteViaEmail_args: """ Attributes: - reqSeq - email - name """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'email', None, None, ), # 2 (3, TType.STRING, 'name', None, None, ), # 3 ) def __init__(self, reqSeq=None, email=None, name=None,): self.reqSeq = reqSeq self.email = email self.name = name 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.email = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.name = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('inviteViaEmail_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.email is not None: oprot.writeFieldBegin('email', TType.STRING, 2) oprot.writeString(self.email) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 3) oprot.writeString(self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.email) value = (value * 31) ^ hash(self.name) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class inviteViaEmail_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('inviteViaEmail_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class isIdentityIdentifierAvailable_args: """ Attributes: - provider - identifier """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'identifier', None, None, ), # 2 (3, TType.I32, 'provider', None, None, ), # 3 ) def __init__(self, provider=None, identifier=None,): self.provider = provider self.identifier = identifier 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 == 3: if ftype == TType.I32: self.provider = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.identifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('isIdentityIdentifierAvailable_args') if self.identifier is not None: oprot.writeFieldBegin('identifier', TType.STRING, 2) oprot.writeString(self.identifier) oprot.writeFieldEnd() if self.provider is not None: oprot.writeFieldBegin('provider', TType.I32, 3) oprot.writeI32(self.provider) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.provider) value = (value * 31) ^ hash(self.identifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class isIdentityIdentifierAvailable_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.BOOL: self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('isIdentityIdentifierAvailable_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class isUseridAvailable_args: """ Attributes: - userid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'userid', None, None, ), # 2 ) def __init__(self, userid=None,): self.userid = userid 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 == 2: if ftype == TType.STRING: self.userid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('isUseridAvailable_args') if self.userid is not None: oprot.writeFieldBegin('userid', TType.STRING, 2) oprot.writeString(self.userid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.userid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class isUseridAvailable_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.BOOL: self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('isUseridAvailable_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class kickoutFromGroup_args: """ Attributes: - reqSeq - groupId - contactIds """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'groupId', None, None, ), # 2 (3, TType.LIST, 'contactIds', (TType.STRING,None), None, ), # 3 ) def __init__(self, reqSeq=None, groupId=None, contactIds=None,): self.reqSeq = reqSeq self.groupId = groupId self.contactIds = contactIds 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.groupId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.contactIds = [] (_etype1118, _size1115) = iprot.readListBegin() for _i1119 in xrange(_size1115): _elem1120 = iprot.readString() self.contactIds.append(_elem1120) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('kickoutFromGroup_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 2) oprot.writeString(self.groupId) oprot.writeFieldEnd() if self.contactIds is not None: oprot.writeFieldBegin('contactIds', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.contactIds)) for iter1121 in self.contactIds: oprot.writeString(iter1121) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.groupId) value = (value * 31) ^ hash(self.contactIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class kickoutFromGroup_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('kickoutFromGroup_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class leaveGroup_args: """ Attributes: - reqSeq - groupId """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'groupId', None, None, ), # 2 ) def __init__(self, reqSeq=None, groupId=None,): self.reqSeq = reqSeq self.groupId = groupId 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.groupId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('leaveGroup_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 2) oprot.writeString(self.groupId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.groupId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class leaveGroup_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('leaveGroup_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class leaveRoom_args: """ Attributes: - reqSeq - roomId """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'roomId', None, None, ), # 2 ) def __init__(self, reqSeq=None, roomId=None,): self.reqSeq = reqSeq self.roomId = roomId 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.roomId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('leaveRoom_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.roomId is not None: oprot.writeFieldBegin('roomId', TType.STRING, 2) oprot.writeString(self.roomId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.roomId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class leaveRoom_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('leaveRoom_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginWithIdentityCredential_args: """ Attributes: - identityProvider - identifier - password - keepLoggedIn - accessLocation - systemName - certificate """ thrift_spec = ( None, # 0 None, # 1 None, # 2 (3, TType.STRING, 'identifier', None, None, ), # 3 (4, TType.STRING, 'password', None, None, ), # 4 (5, TType.BOOL, 'keepLoggedIn', None, None, ), # 5 (6, TType.STRING, 'accessLocation', None, None, ), # 6 (7, TType.STRING, 'systemName', None, None, ), # 7 (8, TType.I32, 'identityProvider', None, None, ), # 8 (9, TType.STRING, 'certificate', None, None, ), # 9 ) def __init__(self, identityProvider=None, identifier=None, password=None, keepLoggedIn=None, accessLocation=None, systemName=None, certificate=None,): self.identityProvider = identityProvider self.identifier = identifier self.password = password self.keepLoggedIn = keepLoggedIn self.accessLocation = accessLocation self.systemName = systemName self.certificate = certificate 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 == 8: if ftype == TType.I32: self.identityProvider = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.identifier = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.password = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: self.keepLoggedIn = iprot.readBool() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.accessLocation = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: self.systemName = iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: self.certificate = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('loginWithIdentityCredential_args') if self.identifier is not None: oprot.writeFieldBegin('identifier', TType.STRING, 3) oprot.writeString(self.identifier) oprot.writeFieldEnd() if self.password is not None: oprot.writeFieldBegin('password', TType.STRING, 4) oprot.writeString(self.password) oprot.writeFieldEnd() if self.keepLoggedIn is not None: oprot.writeFieldBegin('keepLoggedIn', TType.BOOL, 5) oprot.writeBool(self.keepLoggedIn) oprot.writeFieldEnd() if self.accessLocation is not None: oprot.writeFieldBegin('accessLocation', TType.STRING, 6) oprot.writeString(self.accessLocation) oprot.writeFieldEnd() if self.systemName is not None: oprot.writeFieldBegin('systemName', TType.STRING, 7) oprot.writeString(self.systemName) oprot.writeFieldEnd() if self.identityProvider is not None: oprot.writeFieldBegin('identityProvider', TType.I32, 8) oprot.writeI32(self.identityProvider) oprot.writeFieldEnd() if self.certificate is not None: oprot.writeFieldBegin('certificate', TType.STRING, 9) oprot.writeString(self.certificate) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.identityProvider) value = (value * 31) ^ hash(self.identifier) value = (value * 31) ^ hash(self.password) value = (value * 31) ^ hash(self.keepLoggedIn) value = (value * 31) ^ hash(self.accessLocation) value = (value * 31) ^ hash(self.systemName) value = (value * 31) ^ hash(self.certificate) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginWithIdentityCredential_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('loginWithIdentityCredential_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginWithIdentityCredentialForCertificate_args: """ Attributes: - identityProvider - identifier - password - keepLoggedIn - accessLocation - systemName - certificate """ thrift_spec = ( None, # 0 None, # 1 None, # 2 (3, TType.STRING, 'identifier', None, None, ), # 3 (4, TType.STRING, 'password', None, None, ), # 4 (5, TType.BOOL, 'keepLoggedIn', None, None, ), # 5 (6, TType.STRING, 'accessLocation', None, None, ), # 6 (7, TType.STRING, 'systemName', None, None, ), # 7 (8, TType.I32, 'identityProvider', None, None, ), # 8 (9, TType.STRING, 'certificate', None, None, ), # 9 ) def __init__(self, identityProvider=None, identifier=None, password=None, keepLoggedIn=None, accessLocation=None, systemName=None, certificate=None,): self.identityProvider = identityProvider self.identifier = identifier self.password = password self.keepLoggedIn = keepLoggedIn self.accessLocation = accessLocation self.systemName = systemName self.certificate = certificate 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 == 8: if ftype == TType.I32: self.identityProvider = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.identifier = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.password = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: self.keepLoggedIn = iprot.readBool() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.accessLocation = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: self.systemName = iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: self.certificate = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('loginWithIdentityCredentialForCertificate_args') if self.identifier is not None: oprot.writeFieldBegin('identifier', TType.STRING, 3) oprot.writeString(self.identifier) oprot.writeFieldEnd() if self.password is not None: oprot.writeFieldBegin('password', TType.STRING, 4) oprot.writeString(self.password) oprot.writeFieldEnd() if self.keepLoggedIn is not None: oprot.writeFieldBegin('keepLoggedIn', TType.BOOL, 5) oprot.writeBool(self.keepLoggedIn) oprot.writeFieldEnd() if self.accessLocation is not None: oprot.writeFieldBegin('accessLocation', TType.STRING, 6) oprot.writeString(self.accessLocation) oprot.writeFieldEnd() if self.systemName is not None: oprot.writeFieldBegin('systemName', TType.STRING, 7) oprot.writeString(self.systemName) oprot.writeFieldEnd() if self.identityProvider is not None: oprot.writeFieldBegin('identityProvider', TType.I32, 8) oprot.writeI32(self.identityProvider) oprot.writeFieldEnd() if self.certificate is not None: oprot.writeFieldBegin('certificate', TType.STRING, 9) oprot.writeString(self.certificate) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.identityProvider) value = (value * 31) ^ hash(self.identifier) value = (value * 31) ^ hash(self.password) value = (value * 31) ^ hash(self.keepLoggedIn) value = (value * 31) ^ hash(self.accessLocation) value = (value * 31) ^ hash(self.systemName) value = (value * 31) ^ hash(self.certificate) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginWithIdentityCredentialForCertificate_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (LoginResult, LoginResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = LoginResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('loginWithIdentityCredentialForCertificate_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginWithVerifier_args: """ Attributes: - verifier """ thrift_spec = ( None, # 0 None, # 1 None, # 2 (3, TType.STRING, 'verifier', None, None, ), # 3 ) def __init__(self, verifier=None,): self.verifier = verifier 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 == 3: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('loginWithVerifier_args') if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 3) oprot.writeString(self.verifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.verifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginWithVerifier_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('loginWithVerifier_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginWithVerifierForCerificate_args: """ Attributes: - verifier """ thrift_spec = ( None, # 0 None, # 1 None, # 2 (3, TType.STRING, 'verifier', None, None, ), # 3 ) def __init__(self, verifier=None,): self.verifier = verifier 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 == 3: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('loginWithVerifierForCerificate_args') if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 3) oprot.writeString(self.verifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.verifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginWithVerifierForCerificate_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (LoginResult, LoginResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = LoginResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('loginWithVerifierForCerificate_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginWithVerifierForCertificate_args: """ Attributes: - verifier """ thrift_spec = ( None, # 0 None, # 1 None, # 2 (3, TType.STRING, 'verifier', None, None, ), # 3 ) def __init__(self, verifier=None,): self.verifier = verifier 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 == 3: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('loginWithVerifierForCertificate_args') if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 3) oprot.writeString(self.verifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.verifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class loginWithVerifierForCertificate_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (LoginResult, LoginResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = LoginResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('loginWithVerifierForCertificate_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class logout_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('logout_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class logout_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('logout_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class logoutSession_args: """ Attributes: - tokenKey """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'tokenKey', None, None, ), # 2 ) def __init__(self, tokenKey=None,): self.tokenKey = tokenKey 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 == 2: if ftype == TType.STRING: self.tokenKey = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('logoutSession_args') if self.tokenKey is not None: oprot.writeFieldBegin('tokenKey', TType.STRING, 2) oprot.writeString(self.tokenKey) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.tokenKey) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class logoutSession_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('logoutSession_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class noop_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('noop_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class noop_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('noop_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifiedRedirect_args: """ Attributes: - paramMap """ thrift_spec = ( None, # 0 None, # 1 (2, TType.MAP, 'paramMap', (TType.STRING,None,TType.STRING,None), None, ), # 2 ) def __init__(self, paramMap=None,): self.paramMap = paramMap 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 == 2: if ftype == TType.MAP: self.paramMap = {} (_ktype1123, _vtype1124, _size1122 ) = iprot.readMapBegin() for _i1126 in xrange(_size1122): _key1127 = iprot.readString() _val1128 = iprot.readString() self.paramMap[_key1127] = _val1128 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifiedRedirect_args') if self.paramMap is not None: oprot.writeFieldBegin('paramMap', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.paramMap)) for kiter1129,viter1130 in self.paramMap.items(): oprot.writeString(kiter1129) oprot.writeString(viter1130) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.paramMap) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifiedRedirect_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifiedRedirect_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyBuddyOnAir_args: """ Attributes: - seq - receiverMids """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.LIST, 'receiverMids', (TType.STRING,None), None, ), # 2 ) def __init__(self, seq=None, receiverMids=None,): self.seq = seq self.receiverMids = receiverMids 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.receiverMids = [] (_etype1134, _size1131) = iprot.readListBegin() for _i1135 in xrange(_size1131): _elem1136 = iprot.readString() self.receiverMids.append(_elem1136) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyBuddyOnAir_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.receiverMids is not None: oprot.writeFieldBegin('receiverMids', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.receiverMids)) for iter1137 in self.receiverMids: oprot.writeString(iter1137) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.receiverMids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyBuddyOnAir_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype1139, _vtype1140, _size1138 ) = iprot.readMapBegin() for _i1142 in xrange(_size1138): _key1143 = iprot.readString() _val1144 = iprot.readString() self.success[_key1143] = _val1144 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyBuddyOnAir_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter1145,viter1146 in self.success.items(): oprot.writeString(kiter1145) oprot.writeString(viter1146) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyIndividualEvent_args: """ Attributes: - notificationStatus - receiverMids """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'notificationStatus', None, None, ), # 2 (3, TType.LIST, 'receiverMids', (TType.STRING,None), None, ), # 3 ) def __init__(self, notificationStatus=None, receiverMids=None,): self.notificationStatus = notificationStatus self.receiverMids = receiverMids 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 == 2: if ftype == TType.I32: self.notificationStatus = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.receiverMids = [] (_etype1150, _size1147) = iprot.readListBegin() for _i1151 in xrange(_size1147): _elem1152 = iprot.readString() self.receiverMids.append(_elem1152) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyIndividualEvent_args') if self.notificationStatus is not None: oprot.writeFieldBegin('notificationStatus', TType.I32, 2) oprot.writeI32(self.notificationStatus) oprot.writeFieldEnd() if self.receiverMids is not None: oprot.writeFieldBegin('receiverMids', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.receiverMids)) for iter1153 in self.receiverMids: oprot.writeString(iter1153) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.notificationStatus) value = (value * 31) ^ hash(self.receiverMids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyIndividualEvent_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyIndividualEvent_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyInstalled_args: """ Attributes: - udidHash - applicationTypeWithExtensions """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'udidHash', None, None, ), # 2 (3, TType.STRING, 'applicationTypeWithExtensions', None, None, ), # 3 ) def __init__(self, udidHash=None, applicationTypeWithExtensions=None,): self.udidHash = udidHash self.applicationTypeWithExtensions = applicationTypeWithExtensions 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 == 2: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.applicationTypeWithExtensions = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyInstalled_args') if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 2) oprot.writeString(self.udidHash) oprot.writeFieldEnd() if self.applicationTypeWithExtensions is not None: oprot.writeFieldBegin('applicationTypeWithExtensions', TType.STRING, 3) oprot.writeString(self.applicationTypeWithExtensions) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.udidHash) value = (value * 31) ^ hash(self.applicationTypeWithExtensions) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyInstalled_result: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyInstalled_result') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyRegistrationComplete_args: """ Attributes: - udidHash - applicationTypeWithExtensions """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'udidHash', None, None, ), # 2 (3, TType.STRING, 'applicationTypeWithExtensions', None, None, ), # 3 ) def __init__(self, udidHash=None, applicationTypeWithExtensions=None,): self.udidHash = udidHash self.applicationTypeWithExtensions = applicationTypeWithExtensions 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 == 2: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.applicationTypeWithExtensions = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyRegistrationComplete_args') if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 2) oprot.writeString(self.udidHash) oprot.writeFieldEnd() if self.applicationTypeWithExtensions is not None: oprot.writeFieldBegin('applicationTypeWithExtensions', TType.STRING, 3) oprot.writeString(self.applicationTypeWithExtensions) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.udidHash) value = (value * 31) ^ hash(self.applicationTypeWithExtensions) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyRegistrationComplete_result: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyRegistrationComplete_result') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifySleep_args: """ Attributes: - lastRev - badge """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'lastRev', None, None, ), # 2 (3, TType.I32, 'badge', None, None, ), # 3 ) def __init__(self, lastRev=None, badge=None,): self.lastRev = lastRev self.badge = badge 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 == 2: if ftype == TType.I64: self.lastRev = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.badge = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifySleep_args') if self.lastRev is not None: oprot.writeFieldBegin('lastRev', TType.I64, 2) oprot.writeI64(self.lastRev) oprot.writeFieldEnd() if self.badge is not None: oprot.writeFieldBegin('badge', TType.I32, 3) oprot.writeI32(self.badge) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.lastRev) value = (value * 31) ^ hash(self.badge) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifySleep_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifySleep_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyUpdated_args: """ Attributes: - lastRev - deviceInfo """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'lastRev', None, None, ), # 2 (3, TType.STRUCT, 'deviceInfo', (DeviceInfo, DeviceInfo.thrift_spec), None, ), # 3 ) def __init__(self, lastRev=None, deviceInfo=None,): self.lastRev = lastRev self.deviceInfo = deviceInfo 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 == 2: if ftype == TType.I64: self.lastRev = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: self.deviceInfo = DeviceInfo() self.deviceInfo.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyUpdated_args') if self.lastRev is not None: oprot.writeFieldBegin('lastRev', TType.I64, 2) oprot.writeI64(self.lastRev) oprot.writeFieldEnd() if self.deviceInfo is not None: oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 3) self.deviceInfo.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.lastRev) value = (value * 31) ^ hash(self.deviceInfo) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notifyUpdated_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notifyUpdated_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class openProximityMatch_args: """ Attributes: - location """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'location', (Location, Location.thrift_spec), None, ), # 2 ) def __init__(self, location=None,): self.location = location 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 == 2: if ftype == TType.STRUCT: self.location = Location() self.location.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('openProximityMatch_args') if self.location is not None: oprot.writeFieldBegin('location', TType.STRUCT, 2) self.location.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.location) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class openProximityMatch_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('openProximityMatch_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerBuddyUser_args: """ Attributes: - buddyId - registrarPassword """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'buddyId', None, None, ), # 2 (3, TType.STRING, 'registrarPassword', None, None, ), # 3 ) def __init__(self, buddyId=None, registrarPassword=None,): self.buddyId = buddyId self.registrarPassword = registrarPassword 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 == 2: if ftype == TType.STRING: self.buddyId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.registrarPassword = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerBuddyUser_args') if self.buddyId is not None: oprot.writeFieldBegin('buddyId', TType.STRING, 2) oprot.writeString(self.buddyId) oprot.writeFieldEnd() if self.registrarPassword is not None: oprot.writeFieldBegin('registrarPassword', TType.STRING, 3) oprot.writeString(self.registrarPassword) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyId) value = (value * 31) ^ hash(self.registrarPassword) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerBuddyUser_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerBuddyUser_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerBuddyUserid_args: """ Attributes: - seq - userid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'seq', None, None, ), # 2 (3, TType.STRING, 'userid', None, None, ), # 3 ) def __init__(self, seq=None, userid=None,): self.seq = seq self.userid = userid 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 == 2: if ftype == TType.I32: self.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.userid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerBuddyUserid_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 2) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.userid is not None: oprot.writeFieldBegin('userid', TType.STRING, 3) oprot.writeString(self.userid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.userid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerBuddyUserid_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerBuddyUserid_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerDevice_args: """ Attributes: - sessionId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 ) def __init__(self, sessionId=None,): self.sessionId = sessionId 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerDevice_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerDevice_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerDevice_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerDeviceWithIdentityCredential_args: """ Attributes: - sessionId - provider - identifier - verifier """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 (3, TType.STRING, 'identifier', None, None, ), # 3 (4, TType.STRING, 'verifier', None, None, ), # 4 (5, TType.I32, 'provider', None, None, ), # 5 ) def __init__(self, sessionId=None, provider=None, identifier=None, verifier=None,): self.sessionId = sessionId self.provider = provider self.identifier = identifier self.verifier = verifier 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.provider = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.identifier = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerDeviceWithIdentityCredential_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() if self.identifier is not None: oprot.writeFieldBegin('identifier', TType.STRING, 3) oprot.writeString(self.identifier) oprot.writeFieldEnd() if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 4) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.provider is not None: oprot.writeFieldBegin('provider', TType.I32, 5) oprot.writeI32(self.provider) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) value = (value * 31) ^ hash(self.provider) value = (value * 31) ^ hash(self.identifier) value = (value * 31) ^ hash(self.verifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerDeviceWithIdentityCredential_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerDeviceWithIdentityCredential_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerDeviceWithoutPhoneNumber_args: """ Attributes: - region - udidHash - deviceInfo """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'region', None, None, ), # 2 (3, TType.STRING, 'udidHash', None, None, ), # 3 (4, TType.STRUCT, 'deviceInfo', (DeviceInfo, DeviceInfo.thrift_spec), None, ), # 4 ) def __init__(self, region=None, udidHash=None, deviceInfo=None,): self.region = region self.udidHash = udidHash self.deviceInfo = deviceInfo 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 == 2: if ftype == TType.STRING: self.region = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRUCT: self.deviceInfo = DeviceInfo() self.deviceInfo.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerDeviceWithoutPhoneNumber_args') if self.region is not None: oprot.writeFieldBegin('region', TType.STRING, 2) oprot.writeString(self.region) oprot.writeFieldEnd() if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 3) oprot.writeString(self.udidHash) oprot.writeFieldEnd() if self.deviceInfo is not None: oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 4) self.deviceInfo.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.region) value = (value * 31) ^ hash(self.udidHash) value = (value * 31) ^ hash(self.deviceInfo) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerDeviceWithoutPhoneNumber_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerDeviceWithoutPhoneNumber_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerDeviceWithoutPhoneNumberWithIdentityCredential_args: """ Attributes: - region - udidHash - deviceInfo - provider - identifier - verifier - mid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'region', None, None, ), # 2 (3, TType.STRING, 'udidHash', None, None, ), # 3 (4, TType.STRUCT, 'deviceInfo', (DeviceInfo, DeviceInfo.thrift_spec), None, ), # 4 (5, TType.I32, 'provider', None, None, ), # 5 (6, TType.STRING, 'identifier', None, None, ), # 6 (7, TType.STRING, 'verifier', None, None, ), # 7 (8, TType.STRING, 'mid', None, None, ), # 8 ) def __init__(self, region=None, udidHash=None, deviceInfo=None, provider=None, identifier=None, verifier=None, mid=None,): self.region = region self.udidHash = udidHash self.deviceInfo = deviceInfo self.provider = provider self.identifier = identifier self.verifier = verifier self.mid = mid 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 == 2: if ftype == TType.STRING: self.region = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRUCT: self.deviceInfo = DeviceInfo() self.deviceInfo.read(iprot) else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.provider = iprot.readI32() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.identifier = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerDeviceWithoutPhoneNumberWithIdentityCredential_args') if self.region is not None: oprot.writeFieldBegin('region', TType.STRING, 2) oprot.writeString(self.region) oprot.writeFieldEnd() if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 3) oprot.writeString(self.udidHash) oprot.writeFieldEnd() if self.deviceInfo is not None: oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 4) self.deviceInfo.write(oprot) oprot.writeFieldEnd() if self.provider is not None: oprot.writeFieldBegin('provider', TType.I32, 5) oprot.writeI32(self.provider) oprot.writeFieldEnd() if self.identifier is not None: oprot.writeFieldBegin('identifier', TType.STRING, 6) oprot.writeString(self.identifier) oprot.writeFieldEnd() if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 7) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 8) oprot.writeString(self.mid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.region) value = (value * 31) ^ hash(self.udidHash) value = (value * 31) ^ hash(self.deviceInfo) value = (value * 31) ^ hash(self.provider) value = (value * 31) ^ hash(self.identifier) value = (value * 31) ^ hash(self.verifier) value = (value * 31) ^ hash(self.mid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerDeviceWithoutPhoneNumberWithIdentityCredential_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerDeviceWithoutPhoneNumberWithIdentityCredential_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerUserid_args: """ Attributes: - reqSeq - userid """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'userid', None, None, ), # 2 ) def __init__(self, reqSeq=None, userid=None,): self.reqSeq = reqSeq self.userid = userid 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.userid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerUserid_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.userid is not None: oprot.writeFieldBegin('userid', TType.STRING, 2) oprot.writeString(self.userid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.userid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerUserid_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.BOOL: self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerUserid_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerWapDevice_args: """ Attributes: - invitationHash - guidHash - email - deviceInfo """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'invitationHash', None, None, ), # 2 (3, TType.STRING, 'guidHash', None, None, ), # 3 (4, TType.STRING, 'email', None, None, ), # 4 (5, TType.STRUCT, 'deviceInfo', (DeviceInfo, DeviceInfo.thrift_spec), None, ), # 5 ) def __init__(self, invitationHash=None, guidHash=None, email=None, deviceInfo=None,): self.invitationHash = invitationHash self.guidHash = guidHash self.email = email self.deviceInfo = deviceInfo 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 == 2: if ftype == TType.STRING: self.invitationHash = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.guidHash = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.email = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRUCT: self.deviceInfo = DeviceInfo() self.deviceInfo.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerWapDevice_args') if self.invitationHash is not None: oprot.writeFieldBegin('invitationHash', TType.STRING, 2) oprot.writeString(self.invitationHash) oprot.writeFieldEnd() if self.guidHash is not None: oprot.writeFieldBegin('guidHash', TType.STRING, 3) oprot.writeString(self.guidHash) oprot.writeFieldEnd() if self.email is not None: oprot.writeFieldBegin('email', TType.STRING, 4) oprot.writeString(self.email) oprot.writeFieldEnd() if self.deviceInfo is not None: oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 5) self.deviceInfo.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.invitationHash) value = (value * 31) ^ hash(self.guidHash) value = (value * 31) ^ hash(self.email) value = (value * 31) ^ hash(self.deviceInfo) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerWapDevice_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerWapDevice_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerWithExistingSnsIdAndIdentityCredential_args: """ Attributes: - identityCredential - region - udidHash - deviceInfo """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'identityCredential', (IdentityCredential, IdentityCredential.thrift_spec), None, ), # 2 (3, TType.STRING, 'region', None, None, ), # 3 (4, TType.STRING, 'udidHash', None, None, ), # 4 (5, TType.STRUCT, 'deviceInfo', (DeviceInfo, DeviceInfo.thrift_spec), None, ), # 5 ) def __init__(self, identityCredential=None, region=None, udidHash=None, deviceInfo=None,): self.identityCredential = identityCredential self.region = region self.udidHash = udidHash self.deviceInfo = deviceInfo 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 == 2: if ftype == TType.STRUCT: self.identityCredential = IdentityCredential() self.identityCredential.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.region = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRUCT: self.deviceInfo = DeviceInfo() self.deviceInfo.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerWithExistingSnsIdAndIdentityCredential_args') if self.identityCredential is not None: oprot.writeFieldBegin('identityCredential', TType.STRUCT, 2) self.identityCredential.write(oprot) oprot.writeFieldEnd() if self.region is not None: oprot.writeFieldBegin('region', TType.STRING, 3) oprot.writeString(self.region) oprot.writeFieldEnd() if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 4) oprot.writeString(self.udidHash) oprot.writeFieldEnd() if self.deviceInfo is not None: oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 5) self.deviceInfo.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.identityCredential) value = (value * 31) ^ hash(self.region) value = (value * 31) ^ hash(self.udidHash) value = (value * 31) ^ hash(self.deviceInfo) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerWithExistingSnsIdAndIdentityCredential_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerWithExistingSnsIdAndIdentityCredential_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerWithSnsId_args: """ Attributes: - snsIdType - snsAccessToken - region - udidHash - deviceInfo - mid """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'snsIdType', None, None, ), # 2 (3, TType.STRING, 'snsAccessToken', None, None, ), # 3 (4, TType.STRING, 'region', None, None, ), # 4 (5, TType.STRING, 'udidHash', None, None, ), # 5 (6, TType.STRUCT, 'deviceInfo', (DeviceInfo, DeviceInfo.thrift_spec), None, ), # 6 (7, TType.STRING, 'mid', None, None, ), # 7 ) def __init__(self, snsIdType=None, snsAccessToken=None, region=None, udidHash=None, deviceInfo=None, mid=None,): self.snsIdType = snsIdType self.snsAccessToken = snsAccessToken self.region = region self.udidHash = udidHash self.deviceInfo = deviceInfo self.mid = mid 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 == 2: if ftype == TType.I32: self.snsIdType = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.snsAccessToken = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.region = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRUCT: self.deviceInfo = DeviceInfo() self.deviceInfo.read(iprot) else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerWithSnsId_args') if self.snsIdType is not None: oprot.writeFieldBegin('snsIdType', TType.I32, 2) oprot.writeI32(self.snsIdType) oprot.writeFieldEnd() if self.snsAccessToken is not None: oprot.writeFieldBegin('snsAccessToken', TType.STRING, 3) oprot.writeString(self.snsAccessToken) oprot.writeFieldEnd() if self.region is not None: oprot.writeFieldBegin('region', TType.STRING, 4) oprot.writeString(self.region) oprot.writeFieldEnd() if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 5) oprot.writeString(self.udidHash) oprot.writeFieldEnd() if self.deviceInfo is not None: oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 6) self.deviceInfo.write(oprot) oprot.writeFieldEnd() if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 7) oprot.writeString(self.mid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsIdType) value = (value * 31) ^ hash(self.snsAccessToken) value = (value * 31) ^ hash(self.region) value = (value * 31) ^ hash(self.udidHash) value = (value * 31) ^ hash(self.deviceInfo) value = (value * 31) ^ hash(self.mid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerWithSnsId_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (RegisterWithSnsIdResult, RegisterWithSnsIdResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = RegisterWithSnsIdResult() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerWithSnsId_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerWithSnsIdAndIdentityCredential_args: """ Attributes: - snsIdType - snsAccessToken - identityCredential - region - udidHash - deviceInfo """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'snsIdType', None, None, ), # 2 (3, TType.STRING, 'snsAccessToken', None, None, ), # 3 (4, TType.STRUCT, 'identityCredential', (IdentityCredential, IdentityCredential.thrift_spec), None, ), # 4 (5, TType.STRING, 'region', None, None, ), # 5 (6, TType.STRING, 'udidHash', None, None, ), # 6 (7, TType.STRUCT, 'deviceInfo', (DeviceInfo, DeviceInfo.thrift_spec), None, ), # 7 ) def __init__(self, snsIdType=None, snsAccessToken=None, identityCredential=None, region=None, udidHash=None, deviceInfo=None,): self.snsIdType = snsIdType self.snsAccessToken = snsAccessToken self.identityCredential = identityCredential self.region = region self.udidHash = udidHash self.deviceInfo = deviceInfo 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 == 2: if ftype == TType.I32: self.snsIdType = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.snsAccessToken = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRUCT: self.identityCredential = IdentityCredential() self.identityCredential.read(iprot) else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.region = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRUCT: self.deviceInfo = DeviceInfo() self.deviceInfo.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerWithSnsIdAndIdentityCredential_args') if self.snsIdType is not None: oprot.writeFieldBegin('snsIdType', TType.I32, 2) oprot.writeI32(self.snsIdType) oprot.writeFieldEnd() if self.snsAccessToken is not None: oprot.writeFieldBegin('snsAccessToken', TType.STRING, 3) oprot.writeString(self.snsAccessToken) oprot.writeFieldEnd() if self.identityCredential is not None: oprot.writeFieldBegin('identityCredential', TType.STRUCT, 4) self.identityCredential.write(oprot) oprot.writeFieldEnd() if self.region is not None: oprot.writeFieldBegin('region', TType.STRING, 5) oprot.writeString(self.region) oprot.writeFieldEnd() if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 6) oprot.writeString(self.udidHash) oprot.writeFieldEnd() if self.deviceInfo is not None: oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 7) self.deviceInfo.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsIdType) value = (value * 31) ^ hash(self.snsAccessToken) value = (value * 31) ^ hash(self.identityCredential) value = (value * 31) ^ hash(self.region) value = (value * 31) ^ hash(self.udidHash) value = (value * 31) ^ hash(self.deviceInfo) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class registerWithSnsIdAndIdentityCredential_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('registerWithSnsIdAndIdentityCredential_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reissueDeviceCredential_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reissueDeviceCredential_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reissueDeviceCredential_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reissueDeviceCredential_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reissueUserTicket_args: """ Attributes: - expirationTime - maxUseCount """ thrift_spec = ( None, # 0 None, # 1 None, # 2 (3, TType.I64, 'expirationTime', None, None, ), # 3 (4, TType.I32, 'maxUseCount', None, None, ), # 4 ) def __init__(self, expirationTime=None, maxUseCount=None,): self.expirationTime = expirationTime self.maxUseCount = maxUseCount 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 == 3: if ftype == TType.I64: self.expirationTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.maxUseCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reissueUserTicket_args') if self.expirationTime is not None: oprot.writeFieldBegin('expirationTime', TType.I64, 3) oprot.writeI64(self.expirationTime) oprot.writeFieldEnd() if self.maxUseCount is not None: oprot.writeFieldBegin('maxUseCount', TType.I32, 4) oprot.writeI32(self.maxUseCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.expirationTime) value = (value * 31) ^ hash(self.maxUseCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reissueUserTicket_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reissueUserTicket_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reissueGroupTicket_args: """ Attributes: - groupId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'groupId', None, None, ), # 1 ) def __init__(self, groupId=None,): self.groupId = groupId 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.groupId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reissueGroupTicket_args') if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 1) oprot.writeString(self.groupId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.groupId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reissueGroupTicket_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reissueGroupTicket_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class rejectGroupInvitation_args: """ Attributes: - reqSeq - groupId """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'groupId', None, None, ), # 2 ) def __init__(self, reqSeq=None, groupId=None,): self.reqSeq = reqSeq self.groupId = groupId 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.groupId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('rejectGroupInvitation_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 2) oprot.writeString(self.groupId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.groupId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class rejectGroupInvitation_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('rejectGroupInvitation_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class releaseSession_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('releaseSession_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class releaseSession_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('releaseSession_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeAllMessages_args: """ Attributes: - seq - lastMessageId """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRING, 'lastMessageId', None, None, ), # 2 ) def __init__(self, seq=None, lastMessageId=None,): self.seq = seq self.lastMessageId = lastMessageId 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.lastMessageId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeAllMessages_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.lastMessageId is not None: oprot.writeFieldBegin('lastMessageId', TType.STRING, 2) oprot.writeString(self.lastMessageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.lastMessageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeAllMessages_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeAllMessages_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeBuddyLocation_args: """ Attributes: - mid - index """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'mid', None, None, ), # 2 (3, TType.I32, 'index', None, None, ), # 3 ) def __init__(self, mid=None, index=None,): self.mid = mid self.index = index 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 == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.index = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeBuddyLocation_args') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.index is not None: oprot.writeFieldBegin('index', TType.I32, 3) oprot.writeI32(self.index) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.index) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeBuddyLocation_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeBuddyLocation_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeMessage_args: """ Attributes: - messageId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'messageId', None, None, ), # 2 ) def __init__(self, messageId=None,): self.messageId = messageId 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 == 2: if ftype == TType.STRING: self.messageId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeMessage_args') if self.messageId is not None: oprot.writeFieldBegin('messageId', TType.STRING, 2) oprot.writeString(self.messageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.messageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeMessage_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.BOOL: self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeMessage_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeMessageFromMyHome_args: """ Attributes: - messageId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'messageId', None, None, ), # 2 ) def __init__(self, messageId=None,): self.messageId = messageId 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 == 2: if ftype == TType.STRING: self.messageId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeMessageFromMyHome_args') if self.messageId is not None: oprot.writeFieldBegin('messageId', TType.STRING, 2) oprot.writeString(self.messageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.messageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeMessageFromMyHome_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.BOOL: self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeMessageFromMyHome_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeSnsId_args: """ Attributes: - snsIdType """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'snsIdType', None, None, ), # 2 ) def __init__(self, snsIdType=None,): self.snsIdType = snsIdType 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 == 2: if ftype == TType.I32: self.snsIdType = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeSnsId_args') if self.snsIdType is not None: oprot.writeFieldBegin('snsIdType', TType.I32, 2) oprot.writeI32(self.snsIdType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsIdType) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class removeSnsId_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('removeSnsId_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class report_args: """ Attributes: - syncOpRevision - category - report """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'syncOpRevision', None, None, ), # 2 (3, TType.I32, 'category', None, None, ), # 3 (4, TType.STRING, 'report', None, None, ), # 4 ) def __init__(self, syncOpRevision=None, category=None, report=None,): self.syncOpRevision = syncOpRevision self.category = category self.report = report 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 == 2: if ftype == TType.I64: self.syncOpRevision = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.category = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.report = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('report_args') if self.syncOpRevision is not None: oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) oprot.writeI64(self.syncOpRevision) oprot.writeFieldEnd() if self.category is not None: oprot.writeFieldBegin('category', TType.I32, 3) oprot.writeI32(self.category) oprot.writeFieldEnd() if self.report is not None: oprot.writeFieldBegin('report', TType.STRING, 4) oprot.writeString(self.report) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.syncOpRevision) value = (value * 31) ^ hash(self.category) value = (value * 31) ^ hash(self.report) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class report_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('report_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportContacts_args: """ Attributes: - syncOpRevision - category - contactReports - actionType """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'syncOpRevision', None, None, ), # 2 (3, TType.I32, 'category', None, None, ), # 3 (4, TType.LIST, 'contactReports', (TType.STRUCT,(ContactReport, ContactReport.thrift_spec)), None, ), # 4 (5, TType.I32, 'actionType', None, None, ), # 5 ) def __init__(self, syncOpRevision=None, category=None, contactReports=None, actionType=None,): self.syncOpRevision = syncOpRevision self.category = category self.contactReports = contactReports self.actionType = actionType 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 == 2: if ftype == TType.I64: self.syncOpRevision = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.category = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.contactReports = [] (_etype1157, _size1154) = iprot.readListBegin() for _i1158 in xrange(_size1154): _elem1159 = ContactReport() _elem1159.read(iprot) self.contactReports.append(_elem1159) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.actionType = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportContacts_args') if self.syncOpRevision is not None: oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) oprot.writeI64(self.syncOpRevision) oprot.writeFieldEnd() if self.category is not None: oprot.writeFieldBegin('category', TType.I32, 3) oprot.writeI32(self.category) oprot.writeFieldEnd() if self.contactReports is not None: oprot.writeFieldBegin('contactReports', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.contactReports)) for iter1160 in self.contactReports: iter1160.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.actionType is not None: oprot.writeFieldBegin('actionType', TType.I32, 5) oprot.writeI32(self.actionType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.syncOpRevision) value = (value * 31) ^ hash(self.category) value = (value * 31) ^ hash(self.contactReports) value = (value * 31) ^ hash(self.actionType) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportContacts_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(ContactReportResult, ContactReportResult.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1164, _size1161) = iprot.readListBegin() for _i1165 in xrange(_size1161): _elem1166 = ContactReportResult() _elem1166.read(iprot) self.success.append(_elem1166) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportContacts_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter1167 in self.success: iter1167.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportGroups_args: """ Attributes: - syncOpRevision - groups """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'syncOpRevision', None, None, ), # 2 (3, TType.LIST, 'groups', (TType.STRUCT,(Group, Group.thrift_spec)), None, ), # 3 ) def __init__(self, syncOpRevision=None, groups=None,): self.syncOpRevision = syncOpRevision self.groups = groups 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 == 2: if ftype == TType.I64: self.syncOpRevision = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.groups = [] (_etype1171, _size1168) = iprot.readListBegin() for _i1172 in xrange(_size1168): _elem1173 = Group() _elem1173.read(iprot) self.groups.append(_elem1173) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportGroups_args') if self.syncOpRevision is not None: oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) oprot.writeI64(self.syncOpRevision) oprot.writeFieldEnd() if self.groups is not None: oprot.writeFieldBegin('groups', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.groups)) for iter1174 in self.groups: iter1174.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.syncOpRevision) value = (value * 31) ^ hash(self.groups) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportGroups_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportGroups_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportProfile_args: """ Attributes: - syncOpRevision - profile """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'syncOpRevision', None, None, ), # 2 (3, TType.STRUCT, 'profile', (Profile, Profile.thrift_spec), None, ), # 3 ) def __init__(self, syncOpRevision=None, profile=None,): self.syncOpRevision = syncOpRevision self.profile = profile 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 == 2: if ftype == TType.I64: self.syncOpRevision = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: self.profile = Profile() self.profile.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportProfile_args') if self.syncOpRevision is not None: oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) oprot.writeI64(self.syncOpRevision) oprot.writeFieldEnd() if self.profile is not None: oprot.writeFieldBegin('profile', TType.STRUCT, 3) self.profile.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.syncOpRevision) value = (value * 31) ^ hash(self.profile) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportProfile_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportProfile_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportRooms_args: """ Attributes: - syncOpRevision - rooms """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'syncOpRevision', None, None, ), # 2 (3, TType.LIST, 'rooms', (TType.STRUCT,(Room, Room.thrift_spec)), None, ), # 3 ) def __init__(self, syncOpRevision=None, rooms=None,): self.syncOpRevision = syncOpRevision self.rooms = rooms 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 == 2: if ftype == TType.I64: self.syncOpRevision = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.rooms = [] (_etype1178, _size1175) = iprot.readListBegin() for _i1179 in xrange(_size1175): _elem1180 = Room() _elem1180.read(iprot) self.rooms.append(_elem1180) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportRooms_args') if self.syncOpRevision is not None: oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) oprot.writeI64(self.syncOpRevision) oprot.writeFieldEnd() if self.rooms is not None: oprot.writeFieldBegin('rooms', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.rooms)) for iter1181 in self.rooms: iter1181.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.syncOpRevision) value = (value * 31) ^ hash(self.rooms) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportRooms_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportRooms_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportSettings_args: """ Attributes: - syncOpRevision - settings """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I64, 'syncOpRevision', None, None, ), # 2 (3, TType.STRUCT, 'settings', (Settings, Settings.thrift_spec), None, ), # 3 ) def __init__(self, syncOpRevision=None, settings=None,): self.syncOpRevision = syncOpRevision self.settings = settings 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 == 2: if ftype == TType.I64: self.syncOpRevision = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: self.settings = Settings() self.settings.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportSettings_args') if self.syncOpRevision is not None: oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) oprot.writeI64(self.syncOpRevision) oprot.writeFieldEnd() if self.settings is not None: oprot.writeFieldBegin('settings', TType.STRUCT, 3) self.settings.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.syncOpRevision) value = (value * 31) ^ hash(self.settings) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportSettings_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportSettings_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportSpammer_args: """ Attributes: - spammerMid - spammerReasons - spamMessageIds """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'spammerMid', None, None, ), # 2 (3, TType.LIST, 'spammerReasons', (TType.I32,None), None, ), # 3 (4, TType.LIST, 'spamMessageIds', (TType.STRING,None), None, ), # 4 ) def __init__(self, spammerMid=None, spammerReasons=None, spamMessageIds=None,): self.spammerMid = spammerMid self.spammerReasons = spammerReasons self.spamMessageIds = spamMessageIds 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 == 2: if ftype == TType.STRING: self.spammerMid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.spammerReasons = [] (_etype1185, _size1182) = iprot.readListBegin() for _i1186 in xrange(_size1182): _elem1187 = iprot.readI32() self.spammerReasons.append(_elem1187) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.spamMessageIds = [] (_etype1191, _size1188) = iprot.readListBegin() for _i1192 in xrange(_size1188): _elem1193 = iprot.readString() self.spamMessageIds.append(_elem1193) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportSpammer_args') if self.spammerMid is not None: oprot.writeFieldBegin('spammerMid', TType.STRING, 2) oprot.writeString(self.spammerMid) oprot.writeFieldEnd() if self.spammerReasons is not None: oprot.writeFieldBegin('spammerReasons', TType.LIST, 3) oprot.writeListBegin(TType.I32, len(self.spammerReasons)) for iter1194 in self.spammerReasons: oprot.writeI32(iter1194) oprot.writeListEnd() oprot.writeFieldEnd() if self.spamMessageIds is not None: oprot.writeFieldBegin('spamMessageIds', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.spamMessageIds)) for iter1195 in self.spamMessageIds: oprot.writeString(iter1195) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.spammerMid) value = (value * 31) ^ hash(self.spammerReasons) value = (value * 31) ^ hash(self.spamMessageIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class reportSpammer_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('reportSpammer_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class requestAccountPasswordReset_args: """ Attributes: - provider - identifier - locale """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'identifier', None, None, ), # 2 None, # 3 (4, TType.I32, 'provider', None, None, ), # 4 (5, TType.STRING, 'locale', None, None, ), # 5 ) def __init__(self, provider=None, identifier=None, locale=None,): self.provider = provider self.identifier = identifier self.locale = locale 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 == 4: if ftype == TType.I32: self.provider = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.identifier = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('requestAccountPasswordReset_args') if self.identifier is not None: oprot.writeFieldBegin('identifier', TType.STRING, 2) oprot.writeString(self.identifier) oprot.writeFieldEnd() if self.provider is not None: oprot.writeFieldBegin('provider', TType.I32, 4) oprot.writeI32(self.provider) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 5) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.provider) value = (value * 31) ^ hash(self.identifier) value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class requestAccountPasswordReset_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('requestAccountPasswordReset_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class requestEmailConfirmation_args: """ Attributes: - emailConfirmation """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'emailConfirmation', (EmailConfirmation, EmailConfirmation.thrift_spec), None, ), # 2 ) def __init__(self, emailConfirmation=None,): self.emailConfirmation = emailConfirmation 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 == 2: if ftype == TType.STRUCT: self.emailConfirmation = EmailConfirmation() self.emailConfirmation.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('requestEmailConfirmation_args') if self.emailConfirmation is not None: oprot.writeFieldBegin('emailConfirmation', TType.STRUCT, 2) self.emailConfirmation.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.emailConfirmation) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class requestEmailConfirmation_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (EmailConfirmationSession, EmailConfirmationSession.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = EmailConfirmationSession() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('requestEmailConfirmation_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class requestIdentityUnbind_args: """ Attributes: - provider - identifier """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'identifier', None, None, ), # 2 None, # 3 (4, TType.I32, 'provider', None, None, ), # 4 ) def __init__(self, provider=None, identifier=None,): self.provider = provider self.identifier = identifier 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 == 4: if ftype == TType.I32: self.provider = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.identifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('requestIdentityUnbind_args') if self.identifier is not None: oprot.writeFieldBegin('identifier', TType.STRING, 2) oprot.writeString(self.identifier) oprot.writeFieldEnd() if self.provider is not None: oprot.writeFieldBegin('provider', TType.I32, 4) oprot.writeI32(self.provider) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.provider) value = (value * 31) ^ hash(self.identifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class requestIdentityUnbind_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('requestIdentityUnbind_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class resendEmailConfirmation_args: """ Attributes: - verifier """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'verifier', None, None, ), # 2 ) def __init__(self, verifier=None,): self.verifier = verifier 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 == 2: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('resendEmailConfirmation_args') if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 2) oprot.writeString(self.verifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.verifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class resendEmailConfirmation_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (EmailConfirmationSession, EmailConfirmationSession.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = EmailConfirmationSession() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('resendEmailConfirmation_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class resendPinCode_args: """ Attributes: - sessionId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 ) def __init__(self, sessionId=None,): self.sessionId = sessionId 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('resendPinCode_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class resendPinCode_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('resendPinCode_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class resendPinCodeBySMS_args: """ Attributes: - sessionId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 ) def __init__(self, sessionId=None,): self.sessionId = sessionId 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('resendPinCodeBySMS_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class resendPinCodeBySMS_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('resendPinCodeBySMS_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendChatChecked_args: """ Attributes: - seq - consumer - lastMessageId """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRING, 'consumer', None, None, ), # 2 (3, TType.STRING, 'lastMessageId', None, None, ), # 3 ) def __init__(self, seq=None, consumer=None, lastMessageId=None,): self.seq = seq self.consumer = consumer self.lastMessageId = lastMessageId 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.consumer = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.lastMessageId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendChatChecked_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.consumer is not None: oprot.writeFieldBegin('consumer', TType.STRING, 2) oprot.writeString(self.consumer) oprot.writeFieldEnd() if self.lastMessageId is not None: oprot.writeFieldBegin('lastMessageId', TType.STRING, 3) oprot.writeString(self.lastMessageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.consumer) value = (value * 31) ^ hash(self.lastMessageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendChatChecked_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendChatChecked_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendChatRemoved_args: """ Attributes: - seq - consumer - lastMessageId """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRING, 'consumer', None, None, ), # 2 (3, TType.STRING, 'lastMessageId', None, None, ), # 3 ) def __init__(self, seq=None, consumer=None, lastMessageId=None,): self.seq = seq self.consumer = consumer self.lastMessageId = lastMessageId 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.consumer = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.lastMessageId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendChatRemoved_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.consumer is not None: oprot.writeFieldBegin('consumer', TType.STRING, 2) oprot.writeString(self.consumer) oprot.writeFieldEnd() if self.lastMessageId is not None: oprot.writeFieldBegin('lastMessageId', TType.STRING, 3) oprot.writeString(self.lastMessageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.consumer) value = (value * 31) ^ hash(self.lastMessageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendChatRemoved_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendChatRemoved_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendContentPreviewUpdated_args: """ Attributes: - esq - messageId - receiverMids """ thrift_spec = ( None, # 0 (1, TType.I32, 'esq', None, None, ), # 1 (2, TType.STRING, 'messageId', None, None, ), # 2 (3, TType.LIST, 'receiverMids', (TType.STRING,None), None, ), # 3 ) def __init__(self, esq=None, messageId=None, receiverMids=None,): self.esq = esq self.messageId = messageId self.receiverMids = receiverMids 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.esq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.messageId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.receiverMids = [] (_etype1199, _size1196) = iprot.readListBegin() for _i1200 in xrange(_size1196): _elem1201 = iprot.readString() self.receiverMids.append(_elem1201) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendContentPreviewUpdated_args') if self.esq is not None: oprot.writeFieldBegin('esq', TType.I32, 1) oprot.writeI32(self.esq) oprot.writeFieldEnd() if self.messageId is not None: oprot.writeFieldBegin('messageId', TType.STRING, 2) oprot.writeString(self.messageId) oprot.writeFieldEnd() if self.receiverMids is not None: oprot.writeFieldBegin('receiverMids', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.receiverMids)) for iter1202 in self.receiverMids: oprot.writeString(iter1202) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.esq) value = (value * 31) ^ hash(self.messageId) value = (value * 31) ^ hash(self.receiverMids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendContentPreviewUpdated_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype1204, _vtype1205, _size1203 ) = iprot.readMapBegin() for _i1207 in xrange(_size1203): _key1208 = iprot.readString() _val1209 = iprot.readString() self.success[_key1208] = _val1209 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendContentPreviewUpdated_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter1210,viter1211 in self.success.items(): oprot.writeString(kiter1210) oprot.writeString(viter1211) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendContentReceipt_args: """ Attributes: - seq - consumer - messageId """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRING, 'consumer', None, None, ), # 2 (3, TType.STRING, 'messageId', None, None, ), # 3 ) def __init__(self, seq=None, consumer=None, messageId=None,): self.seq = seq self.consumer = consumer self.messageId = messageId 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.consumer = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.messageId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendContentReceipt_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.consumer is not None: oprot.writeFieldBegin('consumer', TType.STRING, 2) oprot.writeString(self.consumer) oprot.writeFieldEnd() if self.messageId is not None: oprot.writeFieldBegin('messageId', TType.STRING, 3) oprot.writeString(self.messageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.consumer) value = (value * 31) ^ hash(self.messageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendContentReceipt_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendContentReceipt_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendDummyPush_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendDummyPush_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendDummyPush_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendDummyPush_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendEvent_args: """ Attributes: - seq - message """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 2 ) def __init__(self, seq=None, message=None,): self.seq = seq self.message = message 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.message = Message() self.message.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendEvent_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.message is not None: oprot.writeFieldBegin('message', TType.STRUCT, 2) self.message.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.message) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendEvent_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Message() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendEvent_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendMessage_args: """ Attributes: - seq - message """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 2 ) def __init__(self, seq=None, message=None,): self.seq = seq self.message = message 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.message = Message() self.message.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendMessage_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.message is not None: oprot.writeFieldBegin('message', TType.STRUCT, 2) self.message.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.message) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendMessage_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Message() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendMessage_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendMessageIgnored_args: """ Attributes: - seq - consumer - messageIds """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRING, 'consumer', None, None, ), # 2 (3, TType.LIST, 'messageIds', (TType.STRING,None), None, ), # 3 ) def __init__(self, seq=None, consumer=None, messageIds=None,): self.seq = seq self.consumer = consumer self.messageIds = messageIds 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.consumer = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.messageIds = [] (_etype1215, _size1212) = iprot.readListBegin() for _i1216 in xrange(_size1212): _elem1217 = iprot.readString() self.messageIds.append(_elem1217) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendMessageIgnored_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.consumer is not None: oprot.writeFieldBegin('consumer', TType.STRING, 2) oprot.writeString(self.consumer) oprot.writeFieldEnd() if self.messageIds is not None: oprot.writeFieldBegin('messageIds', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.messageIds)) for iter1218 in self.messageIds: oprot.writeString(iter1218) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.consumer) value = (value * 31) ^ hash(self.messageIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendMessageIgnored_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendMessageIgnored_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendMessageReceipt_args: """ Attributes: - seq - consumer - messageIds """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRING, 'consumer', None, None, ), # 2 (3, TType.LIST, 'messageIds', (TType.STRING,None), None, ), # 3 ) def __init__(self, seq=None, consumer=None, messageIds=None,): self.seq = seq self.consumer = consumer self.messageIds = messageIds 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.consumer = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.messageIds = [] (_etype1222, _size1219) = iprot.readListBegin() for _i1223 in xrange(_size1219): _elem1224 = iprot.readString() self.messageIds.append(_elem1224) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendMessageReceipt_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.consumer is not None: oprot.writeFieldBegin('consumer', TType.STRING, 2) oprot.writeString(self.consumer) oprot.writeFieldEnd() if self.messageIds is not None: oprot.writeFieldBegin('messageIds', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.messageIds)) for iter1225 in self.messageIds: oprot.writeString(iter1225) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.consumer) value = (value * 31) ^ hash(self.messageIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendMessageReceipt_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendMessageReceipt_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendMessageToMyHome_args: """ Attributes: - seq - message """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 2 ) def __init__(self, seq=None, message=None,): self.seq = seq self.message = message 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.message = Message() self.message.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendMessageToMyHome_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.message is not None: oprot.writeFieldBegin('message', TType.STRUCT, 2) self.message.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.message) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class sendMessageToMyHome_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Message() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('sendMessageToMyHome_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class setBuddyLocation_args: """ Attributes: - mid - index - location """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'mid', None, None, ), # 2 (3, TType.I32, 'index', None, None, ), # 3 (4, TType.STRUCT, 'location', (Geolocation, Geolocation.thrift_spec), None, ), # 4 ) def __init__(self, mid=None, index=None, location=None,): self.mid = mid self.index = index self.location = location 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 == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.index = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRUCT: self.location = Geolocation() self.location.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('setBuddyLocation_args') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.index is not None: oprot.writeFieldBegin('index', TType.I32, 3) oprot.writeI32(self.index) oprot.writeFieldEnd() if self.location is not None: oprot.writeFieldBegin('location', TType.STRUCT, 4) self.location.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.index) value = (value * 31) ^ hash(self.location) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class setBuddyLocation_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('setBuddyLocation_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class setIdentityCredential_args: """ Attributes: - provider - identifier - verifier """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'identifier', None, None, ), # 2 (3, TType.STRING, 'verifier', None, None, ), # 3 (4, TType.I32, 'provider', None, None, ), # 4 ) def __init__(self, provider=None, identifier=None, verifier=None,): self.provider = provider self.identifier = identifier self.verifier = verifier 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 == 4: if ftype == TType.I32: self.provider = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.identifier = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('setIdentityCredential_args') if self.identifier is not None: oprot.writeFieldBegin('identifier', TType.STRING, 2) oprot.writeString(self.identifier) oprot.writeFieldEnd() if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 3) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.provider is not None: oprot.writeFieldBegin('provider', TType.I32, 4) oprot.writeI32(self.provider) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.provider) value = (value * 31) ^ hash(self.identifier) value = (value * 31) ^ hash(self.verifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class setIdentityCredential_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('setIdentityCredential_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class setNotificationsEnabled_args: """ Attributes: - reqSeq - type - target - enablement """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.I32, 'type', None, None, ), # 2 (3, TType.STRING, 'target', None, None, ), # 3 (4, TType.BOOL, 'enablement', None, None, ), # 4 ) def __init__(self, reqSeq=None, type=None, target=None, enablement=None,): self.reqSeq = reqSeq self.type = type self.target = target self.enablement = enablement 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.target = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: self.enablement = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('setNotificationsEnabled_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 2) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.target is not None: oprot.writeFieldBegin('target', TType.STRING, 3) oprot.writeString(self.target) oprot.writeFieldEnd() if self.enablement is not None: oprot.writeFieldBegin('enablement', TType.BOOL, 4) oprot.writeBool(self.enablement) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.type) value = (value * 31) ^ hash(self.target) value = (value * 31) ^ hash(self.enablement) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class setNotificationsEnabled_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('setNotificationsEnabled_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class startUpdateVerification_args: """ Attributes: - region - carrier - phone - udidHash - deviceInfo - networkCode - locale """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'region', None, None, ), # 2 (3, TType.I32, 'carrier', None, None, ), # 3 (4, TType.STRING, 'phone', None, None, ), # 4 (5, TType.STRING, 'udidHash', None, None, ), # 5 (6, TType.STRUCT, 'deviceInfo', (DeviceInfo, DeviceInfo.thrift_spec), None, ), # 6 (7, TType.STRING, 'networkCode', None, None, ), # 7 (8, TType.STRING, 'locale', None, None, ), # 8 ) def __init__(self, region=None, carrier=None, phone=None, udidHash=None, deviceInfo=None, networkCode=None, locale=None,): self.region = region self.carrier = carrier self.phone = phone self.udidHash = udidHash self.deviceInfo = deviceInfo self.networkCode = networkCode self.locale = locale 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 == 2: if ftype == TType.STRING: self.region = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.carrier = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.phone = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRUCT: self.deviceInfo = DeviceInfo() self.deviceInfo.read(iprot) else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: self.networkCode = iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('startUpdateVerification_args') if self.region is not None: oprot.writeFieldBegin('region', TType.STRING, 2) oprot.writeString(self.region) oprot.writeFieldEnd() if self.carrier is not None: oprot.writeFieldBegin('carrier', TType.I32, 3) oprot.writeI32(self.carrier) oprot.writeFieldEnd() if self.phone is not None: oprot.writeFieldBegin('phone', TType.STRING, 4) oprot.writeString(self.phone) oprot.writeFieldEnd() if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 5) oprot.writeString(self.udidHash) oprot.writeFieldEnd() if self.deviceInfo is not None: oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 6) self.deviceInfo.write(oprot) oprot.writeFieldEnd() if self.networkCode is not None: oprot.writeFieldBegin('networkCode', TType.STRING, 7) oprot.writeString(self.networkCode) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 8) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.region) value = (value * 31) ^ hash(self.carrier) value = (value * 31) ^ hash(self.phone) value = (value * 31) ^ hash(self.udidHash) value = (value * 31) ^ hash(self.deviceInfo) value = (value * 31) ^ hash(self.networkCode) value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class startUpdateVerification_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (VerificationSessionData, VerificationSessionData.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = VerificationSessionData() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('startUpdateVerification_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class startVerification_args: """ Attributes: - region - carrier - phone - udidHash - deviceInfo - networkCode - mid - locale """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'region', None, None, ), # 2 (3, TType.I32, 'carrier', None, None, ), # 3 (4, TType.STRING, 'phone', None, None, ), # 4 (5, TType.STRING, 'udidHash', None, None, ), # 5 (6, TType.STRUCT, 'deviceInfo', (DeviceInfo, DeviceInfo.thrift_spec), None, ), # 6 (7, TType.STRING, 'networkCode', None, None, ), # 7 (8, TType.STRING, 'mid', None, None, ), # 8 (9, TType.STRING, 'locale', None, None, ), # 9 ) def __init__(self, region=None, carrier=None, phone=None, udidHash=None, deviceInfo=None, networkCode=None, mid=None, locale=None,): self.region = region self.carrier = carrier self.phone = phone self.udidHash = udidHash self.deviceInfo = deviceInfo self.networkCode = networkCode self.mid = mid self.locale = locale 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 == 2: if ftype == TType.STRING: self.region = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.carrier = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.phone = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRUCT: self.deviceInfo = DeviceInfo() self.deviceInfo.read(iprot) else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: self.networkCode = iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('startVerification_args') if self.region is not None: oprot.writeFieldBegin('region', TType.STRING, 2) oprot.writeString(self.region) oprot.writeFieldEnd() if self.carrier is not None: oprot.writeFieldBegin('carrier', TType.I32, 3) oprot.writeI32(self.carrier) oprot.writeFieldEnd() if self.phone is not None: oprot.writeFieldBegin('phone', TType.STRING, 4) oprot.writeString(self.phone) oprot.writeFieldEnd() if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 5) oprot.writeString(self.udidHash) oprot.writeFieldEnd() if self.deviceInfo is not None: oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 6) self.deviceInfo.write(oprot) oprot.writeFieldEnd() if self.networkCode is not None: oprot.writeFieldBegin('networkCode', TType.STRING, 7) oprot.writeString(self.networkCode) oprot.writeFieldEnd() if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 8) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 9) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.region) value = (value * 31) ^ hash(self.carrier) value = (value * 31) ^ hash(self.phone) value = (value * 31) ^ hash(self.udidHash) value = (value * 31) ^ hash(self.deviceInfo) value = (value * 31) ^ hash(self.networkCode) value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class startVerification_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (VerificationSessionData, VerificationSessionData.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = VerificationSessionData() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('startVerification_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class storeUpdateProfileAttribute_args: """ Attributes: - seq - profileAttribute - value """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.I32, 'profileAttribute', None, None, ), # 2 (3, TType.STRING, 'value', None, None, ), # 3 ) def __init__(self, seq=None, profileAttribute=None, value=None,): self.seq = seq self.profileAttribute = profileAttribute self.value = value 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.profileAttribute = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.value = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('storeUpdateProfileAttribute_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.profileAttribute is not None: oprot.writeFieldBegin('profileAttribute', TType.I32, 2) oprot.writeI32(self.profileAttribute) oprot.writeFieldEnd() if self.value is not None: oprot.writeFieldBegin('value', TType.STRING, 3) oprot.writeString(self.value) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.profileAttribute) value = (value * 31) ^ hash(self.value) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class storeUpdateProfileAttribute_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('storeUpdateProfileAttribute_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class syncContactBySnsIds_args: """ Attributes: - reqSeq - modifications """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.LIST, 'modifications', (TType.STRUCT,(SnsFriendModification, SnsFriendModification.thrift_spec)), None, ), # 2 ) def __init__(self, reqSeq=None, modifications=None,): self.reqSeq = reqSeq self.modifications = modifications 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.modifications = [] (_etype1229, _size1226) = iprot.readListBegin() for _i1230 in xrange(_size1226): _elem1231 = SnsFriendModification() _elem1231.read(iprot) self.modifications.append(_elem1231) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('syncContactBySnsIds_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.modifications is not None: oprot.writeFieldBegin('modifications', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.modifications)) for iter1232 in self.modifications: iter1232.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.modifications) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class syncContactBySnsIds_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(SnsFriendContactRegistration, SnsFriendContactRegistration.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.LIST: self.success = [] (_etype1236, _size1233) = iprot.readListBegin() for _i1237 in xrange(_size1233): _elem1238 = SnsFriendContactRegistration() _elem1238.read(iprot) self.success.append(_elem1238) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('syncContactBySnsIds_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter1239 in self.success: iter1239.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class syncContacts_args: """ Attributes: - reqSeq - localContacts """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.LIST, 'localContacts', (TType.STRUCT,(ContactModification, ContactModification.thrift_spec)), None, ), # 2 ) def __init__(self, reqSeq=None, localContacts=None,): self.reqSeq = reqSeq self.localContacts = localContacts 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.localContacts = [] (_etype1243, _size1240) = iprot.readListBegin() for _i1244 in xrange(_size1240): _elem1245 = ContactModification() _elem1245.read(iprot) self.localContacts.append(_elem1245) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('syncContacts_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.localContacts is not None: oprot.writeFieldBegin('localContacts', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.localContacts)) for iter1246 in self.localContacts: iter1246.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.localContacts) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class syncContacts_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(ContactRegistration, ContactRegistration.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.MAP: self.success = {} (_ktype1248, _vtype1249, _size1247 ) = iprot.readMapBegin() for _i1251 in xrange(_size1247): _key1252 = iprot.readString() _val1253 = ContactRegistration() _val1253.read(iprot) self.success[_key1252] = _val1253 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('syncContacts_result') if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) for kiter1254,viter1255 in self.success.items(): oprot.writeString(kiter1254) viter1255.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class trySendMessage_args: """ Attributes: - seq - message """ thrift_spec = ( None, # 0 (1, TType.I32, 'seq', None, None, ), # 1 (2, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 2 ) def __init__(self, seq=None, message=None,): self.seq = seq self.message = message 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.seq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.message = Message() self.message.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('trySendMessage_args') if self.seq is not None: oprot.writeFieldBegin('seq', TType.I32, 1) oprot.writeI32(self.seq) oprot.writeFieldEnd() if self.message is not None: oprot.writeFieldBegin('message', TType.STRUCT, 2) self.message.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.seq) value = (value * 31) ^ hash(self.message) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class trySendMessage_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = Message() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('trySendMessage_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unblockContact_args: """ Attributes: - reqSeq - id """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'id', None, None, ), # 2 ) def __init__(self, reqSeq=None, id=None,): self.reqSeq = reqSeq self.id = id 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.id = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unblockContact_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.id is not None: oprot.writeFieldBegin('id', TType.STRING, 2) oprot.writeString(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.id) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unblockContact_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unblockContact_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unblockRecommendation_args: """ Attributes: - reqSeq - id """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'id', None, None, ), # 2 ) def __init__(self, reqSeq=None, id=None,): self.reqSeq = reqSeq self.id = id 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.id = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unblockRecommendation_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.id is not None: oprot.writeFieldBegin('id', TType.STRING, 2) oprot.writeString(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.id) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unblockRecommendation_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unblockRecommendation_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unregisterUserAndDevice_args: thrift_spec = ( ) 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 else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unregisterUserAndDevice_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class unregisterUserAndDevice_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('unregisterUserAndDevice_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateApnsDeviceToken_args: """ Attributes: - apnsDeviceToken """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'apnsDeviceToken', None, None, ), # 2 ) def __init__(self, apnsDeviceToken=None,): self.apnsDeviceToken = apnsDeviceToken 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 == 2: if ftype == TType.STRING: self.apnsDeviceToken = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateApnsDeviceToken_args') if self.apnsDeviceToken is not None: oprot.writeFieldBegin('apnsDeviceToken', TType.STRING, 2) oprot.writeString(self.apnsDeviceToken) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.apnsDeviceToken) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateApnsDeviceToken_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateApnsDeviceToken_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddySetting_args: """ Attributes: - key - value """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'key', None, None, ), # 2 (3, TType.STRING, 'value', None, None, ), # 3 ) def __init__(self, key=None, value=None,): self.key = key self.value = value 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 == 2: if ftype == TType.STRING: self.key = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.value = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddySetting_args') if self.key is not None: oprot.writeFieldBegin('key', TType.STRING, 2) oprot.writeString(self.key) oprot.writeFieldEnd() if self.value is not None: oprot.writeFieldBegin('value', TType.STRING, 3) oprot.writeString(self.value) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.key) value = (value * 31) ^ hash(self.value) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateBuddySetting_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateBuddySetting_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateC2DMRegistrationId_args: """ Attributes: - registrationId """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'registrationId', None, None, ), # 2 ) def __init__(self, registrationId=None,): self.registrationId = registrationId 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 == 2: if ftype == TType.STRING: self.registrationId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateC2DMRegistrationId_args') if self.registrationId is not None: oprot.writeFieldBegin('registrationId', TType.STRING, 2) oprot.writeString(self.registrationId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.registrationId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateC2DMRegistrationId_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateC2DMRegistrationId_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateContactSetting_args: """ Attributes: - reqSeq - mid - flag - value """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRING, 'mid', None, None, ), # 2 (3, TType.I32, 'flag', None, None, ), # 3 (4, TType.STRING, 'value', None, None, ), # 4 ) def __init__(self, reqSeq=None, mid=None, flag=None, value=None,): self.reqSeq = reqSeq self.mid = mid self.flag = flag self.value = value 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.flag = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.value = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateContactSetting_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.flag is not None: oprot.writeFieldBegin('flag', TType.I32, 3) oprot.writeI32(self.flag) oprot.writeFieldEnd() if self.value is not None: oprot.writeFieldBegin('value', TType.STRING, 4) oprot.writeString(self.value) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.flag) value = (value * 31) ^ hash(self.value) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateContactSetting_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateContactSetting_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateCustomModeSettings_args: """ Attributes: - customMode - paramMap """ thrift_spec = ( None, # 0 None, # 1 (2, TType.I32, 'customMode', None, None, ), # 2 (3, TType.MAP, 'paramMap', (TType.STRING,None,TType.STRING,None), None, ), # 3 ) def __init__(self, customMode=None, paramMap=None,): self.customMode = customMode self.paramMap = paramMap 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 == 2: if ftype == TType.I32: self.customMode = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.paramMap = {} (_ktype1257, _vtype1258, _size1256 ) = iprot.readMapBegin() for _i1260 in xrange(_size1256): _key1261 = iprot.readString() _val1262 = iprot.readString() self.paramMap[_key1261] = _val1262 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateCustomModeSettings_args') if self.customMode is not None: oprot.writeFieldBegin('customMode', TType.I32, 2) oprot.writeI32(self.customMode) oprot.writeFieldEnd() if self.paramMap is not None: oprot.writeFieldBegin('paramMap', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.paramMap)) for kiter1263,viter1264 in self.paramMap.items(): oprot.writeString(kiter1263) oprot.writeString(viter1264) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.customMode) value = (value * 31) ^ hash(self.paramMap) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateCustomModeSettings_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateCustomModeSettings_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateDeviceInfo_args: """ Attributes: - deviceUid - deviceInfo """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'deviceUid', None, None, ), # 2 (3, TType.STRUCT, 'deviceInfo', (DeviceInfo, DeviceInfo.thrift_spec), None, ), # 3 ) def __init__(self, deviceUid=None, deviceInfo=None,): self.deviceUid = deviceUid self.deviceInfo = deviceInfo 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 == 2: if ftype == TType.STRING: self.deviceUid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: self.deviceInfo = DeviceInfo() self.deviceInfo.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateDeviceInfo_args') if self.deviceUid is not None: oprot.writeFieldBegin('deviceUid', TType.STRING, 2) oprot.writeString(self.deviceUid) oprot.writeFieldEnd() if self.deviceInfo is not None: oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 3) self.deviceInfo.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.deviceUid) value = (value * 31) ^ hash(self.deviceInfo) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateDeviceInfo_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateDeviceInfo_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateGroup_args: """ Attributes: - reqSeq - group """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRUCT, 'group', (Group, Group.thrift_spec), None, ), # 2 ) def __init__(self, reqSeq=None, group=None,): self.reqSeq = reqSeq self.group = group 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.group = Group() self.group.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateGroup_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.group is not None: oprot.writeFieldBegin('group', TType.STRUCT, 2) self.group.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.group) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateGroup_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateGroup_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateNotificationToken_args: """ Attributes: - type - token """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'token', None, None, ), # 2 (3, TType.I32, 'type', None, None, ), # 3 ) def __init__(self, type=None, token=None,): self.type = type self.token = token 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 == 3: if ftype == TType.I32: self.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.token = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateNotificationToken_args') if self.token is not None: oprot.writeFieldBegin('token', TType.STRING, 2) oprot.writeString(self.token) oprot.writeFieldEnd() if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 3) oprot.writeI32(self.type) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.type) value = (value * 31) ^ hash(self.token) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateNotificationToken_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateNotificationToken_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateNotificationTokenWithBytes_args: """ Attributes: - type - token """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'token', None, None, ), # 2 (3, TType.I32, 'type', None, None, ), # 3 ) def __init__(self, type=None, token=None,): self.type = type self.token = token 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 == 3: if ftype == TType.I32: self.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.token = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateNotificationTokenWithBytes_args') if self.token is not None: oprot.writeFieldBegin('token', TType.STRING, 2) oprot.writeString(self.token) oprot.writeFieldEnd() if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 3) oprot.writeI32(self.type) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.type) value = (value * 31) ^ hash(self.token) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateNotificationTokenWithBytes_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateNotificationTokenWithBytes_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateProfile_args: """ Attributes: - reqSeq - profile """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRUCT, 'profile', (Profile, Profile.thrift_spec), None, ), # 2 ) def __init__(self, reqSeq=None, profile=None,): self.reqSeq = reqSeq self.profile = profile 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.profile = Profile() self.profile.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateProfile_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.profile is not None: oprot.writeFieldBegin('profile', TType.STRUCT, 2) self.profile.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.profile) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateProfile_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateProfile_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateProfileAttribute_args: """ Attributes: - reqSeq - attr - value """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.I32, 'attr', None, None, ), # 2 (3, TType.STRING, 'value', None, None, ), # 3 ) def __init__(self, reqSeq=None, attr=None, value=None,): self.reqSeq = reqSeq self.attr = attr self.value = value 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.attr = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.value = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateProfileAttribute_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.attr is not None: oprot.writeFieldBegin('attr', TType.I32, 2) oprot.writeI32(self.attr) oprot.writeFieldEnd() if self.value is not None: oprot.writeFieldBegin('value', TType.STRING, 3) oprot.writeString(self.value) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.attr) value = (value * 31) ^ hash(self.value) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateProfileAttribute_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateProfileAttribute_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateRegion_args: """ Attributes: - region """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'region', None, None, ), # 2 ) def __init__(self, region=None,): self.region = region 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 == 2: if ftype == TType.STRING: self.region = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateRegion_args') if self.region is not None: oprot.writeFieldBegin('region', TType.STRING, 2) oprot.writeString(self.region) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.region) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateRegion_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateRegion_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateSettings_args: """ Attributes: - reqSeq - settings """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRUCT, 'settings', (Settings, Settings.thrift_spec), None, ), # 2 ) def __init__(self, reqSeq=None, settings=None,): self.reqSeq = reqSeq self.settings = settings 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.settings = Settings() self.settings.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateSettings_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.settings is not None: oprot.writeFieldBegin('settings', TType.STRUCT, 2) self.settings.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.settings) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateSettings_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateSettings_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateSettings2_args: """ Attributes: - reqSeq - settings """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.STRUCT, 'settings', (Settings, Settings.thrift_spec), None, ), # 2 ) def __init__(self, reqSeq=None, settings=None,): self.reqSeq = reqSeq self.settings = settings 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.settings = Settings() self.settings.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateSettings2_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.settings is not None: oprot.writeFieldBegin('settings', TType.STRUCT, 2) self.settings.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.settings) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateSettings2_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I32, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I32: self.success = iprot.readI32() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateSettings2_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateSettingsAttribute_args: """ Attributes: - reqSeq - attr - value """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.I32, 'attr', None, None, ), # 2 (3, TType.STRING, 'value', None, None, ), # 3 ) def __init__(self, reqSeq=None, attr=None, value=None,): self.reqSeq = reqSeq self.attr = attr self.value = value 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.attr = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.value = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateSettingsAttribute_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.attr is not None: oprot.writeFieldBegin('attr', TType.I32, 2) oprot.writeI32(self.attr) oprot.writeFieldEnd() if self.value is not None: oprot.writeFieldBegin('value', TType.STRING, 3) oprot.writeString(self.value) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.attr) value = (value * 31) ^ hash(self.value) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateSettingsAttribute_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateSettingsAttribute_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateSettingsAttributes_args: """ Attributes: - reqSeq - attrBitset - settings """ thrift_spec = ( None, # 0 (1, TType.I32, 'reqSeq', None, None, ), # 1 (2, TType.I32, 'attrBitset', None, None, ), # 2 (3, TType.STRUCT, 'settings', (Settings, Settings.thrift_spec), None, ), # 3 ) def __init__(self, reqSeq=None, attrBitset=None, settings=None,): self.reqSeq = reqSeq self.attrBitset = attrBitset self.settings = settings 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.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.attrBitset = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: self.settings = Settings() self.settings.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateSettingsAttributes_args') if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 1) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.attrBitset is not None: oprot.writeFieldBegin('attrBitset', TType.I32, 2) oprot.writeI32(self.attrBitset) oprot.writeFieldEnd() if self.settings is not None: oprot.writeFieldBegin('settings', TType.STRUCT, 3) self.settings.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.attrBitset) value = (value * 31) ^ hash(self.settings) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class updateSettingsAttributes_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I32, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I32: self.success = iprot.readI32() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('updateSettingsAttributes_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class verifyIdentityCredential_args: """ Attributes: - identityProvider - identifier - password """ thrift_spec = ( None, # 0 None, # 1 None, # 2 (3, TType.STRING, 'identifier', None, None, ), # 3 (4, TType.STRING, 'password', None, None, ), # 4 None, # 5 None, # 6 None, # 7 (8, TType.I32, 'identityProvider', None, None, ), # 8 ) def __init__(self, identityProvider=None, identifier=None, password=None,): self.identityProvider = identityProvider self.identifier = identifier self.password = password 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 == 8: if ftype == TType.I32: self.identityProvider = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.identifier = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.password = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('verifyIdentityCredential_args') if self.identifier is not None: oprot.writeFieldBegin('identifier', TType.STRING, 3) oprot.writeString(self.identifier) oprot.writeFieldEnd() if self.password is not None: oprot.writeFieldBegin('password', TType.STRING, 4) oprot.writeString(self.password) oprot.writeFieldEnd() if self.identityProvider is not None: oprot.writeFieldBegin('identityProvider', TType.I32, 8) oprot.writeI32(self.identityProvider) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.identityProvider) value = (value * 31) ^ hash(self.identifier) value = (value * 31) ^ hash(self.password) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class verifyIdentityCredential_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('verifyIdentityCredential_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class verifyIdentityCredentialWithResult_args: """ Attributes: - identityCredential """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'identityCredential', (IdentityCredential, IdentityCredential.thrift_spec), None, ), # 2 ) def __init__(self, identityCredential=None,): self.identityCredential = identityCredential 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 == 2: if ftype == TType.STRUCT: self.identityCredential = IdentityCredential() self.identityCredential.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('verifyIdentityCredentialWithResult_args') if self.identityCredential is not None: oprot.writeFieldBegin('identityCredential', TType.STRUCT, 2) self.identityCredential.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.identityCredential) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class verifyIdentityCredentialWithResult_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRUCT, 'success', (UserAuthStatus, UserAuthStatus.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRUCT: self.success = UserAuthStatus() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('verifyIdentityCredentialWithResult_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class verifyPhone_args: """ Attributes: - sessionId - pinCode - udidHash """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 (3, TType.STRING, 'pinCode', None, None, ), # 3 (4, TType.STRING, 'udidHash', None, None, ), # 4 ) def __init__(self, sessionId=None, pinCode=None, udidHash=None,): self.sessionId = sessionId self.pinCode = pinCode self.udidHash = udidHash 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 == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.pinCode = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.udidHash = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('verifyPhone_args') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() if self.pinCode is not None: oprot.writeFieldBegin('pinCode', TType.STRING, 3) oprot.writeString(self.pinCode) oprot.writeFieldEnd() if self.udidHash is not None: oprot.writeFieldBegin('udidHash', TType.STRING, 4) oprot.writeString(self.udidHash) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) value = (value * 31) ^ hash(self.pinCode) value = (value * 31) ^ hash(self.udidHash) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class verifyPhone_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.I32, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.I32: self.success = iprot.readI32() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('verifyPhone_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class verifyQrcode_args: """ Attributes: - verifier - pinCode """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRING, 'verifier', None, None, ), # 2 (3, TType.STRING, 'pinCode', None, None, ), # 3 ) def __init__(self, verifier=None, pinCode=None,): self.verifier = verifier self.pinCode = pinCode 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 == 2: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.pinCode = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('verifyQrcode_args') if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 2) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.pinCode is not None: oprot.writeFieldBegin('pinCode', TType.STRING, 3) oprot.writeString(self.pinCode) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.verifier) value = (value * 31) ^ hash(self.pinCode) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class verifyQrcode_result: """ Attributes: - success - e """ thrift_spec = ( (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'e', (TalkException, TalkException.thrift_spec), None, ), # 1 ) def __init__(self, success=None, e=None,): self.success = success self.e = e 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 == 0: if ftype == TType.STRING: self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TalkException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('verifyQrcode_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notify_args: """ Attributes: - event """ thrift_spec = ( None, # 0 None, # 1 (2, TType.STRUCT, 'event', (GlobalEvent, GlobalEvent.thrift_spec), None, ), # 2 ) def __init__(self, event=None,): self.event = event 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 == 2: if ftype == TType.STRUCT: self.event = GlobalEvent() self.event.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notify_args') if self.event is not None: oprot.writeFieldBegin('event', TType.STRUCT, 2) self.event.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.event) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class notify_result: """ Attributes: - e """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', (UniversalNotificationServiceException, UniversalNotificationServiceException.thrift_spec), None, ), # 1 ) def __init__(self, e=None,): self.e = e 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.STRUCT: self.e = UniversalNotificationServiceException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('notify_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.e) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) ================================================ FILE: LINETCR/lib/curve/__init__.py ================================================ __all__ = ['ttypes', 'constants', 'LineService'] ================================================ FILE: LINETCR/lib/curve/constants.py ================================================ # # Autogenerated by Thrift Compiler (0.9.3) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from ttypes import * ================================================ FILE: LINETCR/lib/curve/ttypes.py ================================================ # # Autogenerated by Thrift Compiler (0.9.3) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol, TProtocol try: from thrift.protocol import fastbinary except: fastbinary = None class ApplicationType: IOS = 16 IOS_RC = 17 IOS_BETA = 18 IOS_ALPHA = 19 ANDROID = 32 ANDROID_RC = 33 ANDROID_BETA = 34 ANDROID_ALPHA = 35 WAP = 48 WAP_RC = 49 WAP_BETA = 50 WAP_ALPHA = 51 BOT = 64 BOT_RC = 65 BOT_BETA = 66 BOT_ALPHA = 67 WEB = 80 WEB_RC = 81 WEB_BETA = 82 WEB_ALPHA = 83 DESKTOPWIN = 96 DESKTOPWIN_RC = 97 DESKTOPWIN_BETA = 98 DESKTOPWIN_ALPHA = 99 DESKTOPMAC = 112 DESKTOPMAC_RC = 113 DESKTOPMAC_BETA = 114 DESKTOPMAC_ALPHA = 115 CHANNELGW = 128 CHANNELGW_RC = 129 CHANNELGW_BETA = 130 CHANNELGW_ALPHA = 131 CHANNELCP = 144 CHANNELCP_RC = 145 CHANNELCP_BETA = 146 CHANNELCP_ALPHA = 147 WINPHONE = 160 WINPHONE_RC = 161 WINPHONE_BETA = 162 WINPHONE_ALPHA = 163 BLACKBERRY = 176 BLACKBERRY_RC = 177 BLACKBERRY_BETA = 178 BLACKBERRY_ALPHA = 179 WINMETRO = 192 WINMETRO_RC = 193 WINMETRO_BETA = 194 WINMETRO_ALPHA = 195 S40 = 208 S40_RC = 209 S40_BETA = 210 S40_ALPHA = 211 CHRONO = 224 CHRONO_RC = 225 CHRONO_BETA = 226 CHRONO_ALPHA = 227 TIZEN = 256 TIZEN_RC = 257 TIZEN_BETA = 258 TIZEN_ALPHA = 259 VIRTUAL = 272 _VALUES_TO_NAMES = { 16: "IOS", 17: "IOS_RC", 18: "IOS_BETA", 19: "IOS_ALPHA", 32: "ANDROID", 33: "ANDROID_RC", 34: "ANDROID_BETA", 35: "ANDROID_ALPHA", 48: "WAP", 49: "WAP_RC", 50: "WAP_BETA", 51: "WAP_ALPHA", 64: "BOT", 65: "BOT_RC", 66: "BOT_BETA", 67: "BOT_ALPHA", 80: "WEB", 81: "WEB_RC", 82: "WEB_BETA", 83: "WEB_ALPHA", 96: "DESKTOPWIN", 97: "DESKTOPWIN_RC", 98: "DESKTOPWIN_BETA", 99: "DESKTOPWIN_ALPHA", 112: "DESKTOPMAC", 113: "DESKTOPMAC_RC", 114: "DESKTOPMAC_BETA", 115: "DESKTOPMAC_ALPHA", 128: "CHANNELGW", 129: "CHANNELGW_RC", 130: "CHANNELGW_BETA", 131: "CHANNELGW_ALPHA", 144: "CHANNELCP", 145: "CHANNELCP_RC", 146: "CHANNELCP_BETA", 147: "CHANNELCP_ALPHA", 160: "WINPHONE", 161: "WINPHONE_RC", 162: "WINPHONE_BETA", 163: "WINPHONE_ALPHA", 176: "BLACKBERRY", 177: "BLACKBERRY_RC", 178: "BLACKBERRY_BETA", 179: "BLACKBERRY_ALPHA", 192: "WINMETRO", 193: "WINMETRO_RC", 194: "WINMETRO_BETA", 195: "WINMETRO_ALPHA", 208: "S40", 209: "S40_RC", 210: "S40_BETA", 211: "S40_ALPHA", 224: "CHRONO", 225: "CHRONO_RC", 226: "CHRONO_BETA", 227: "CHRONO_ALPHA", 256: "TIZEN", 257: "TIZEN_RC", 258: "TIZEN_BETA", 259: "TIZEN_ALPHA", 272: "VIRTUAL", } _NAMES_TO_VALUES = { "IOS": 16, "IOS_RC": 17, "IOS_BETA": 18, "IOS_ALPHA": 19, "ANDROID": 32, "ANDROID_RC": 33, "ANDROID_BETA": 34, "ANDROID_ALPHA": 35, "WAP": 48, "WAP_RC": 49, "WAP_BETA": 50, "WAP_ALPHA": 51, "BOT": 64, "BOT_RC": 65, "BOT_BETA": 66, "BOT_ALPHA": 67, "WEB": 80, "WEB_RC": 81, "WEB_BETA": 82, "WEB_ALPHA": 83, "DESKTOPWIN": 96, "DESKTOPWIN_RC": 97, "DESKTOPWIN_BETA": 98, "DESKTOPWIN_ALPHA": 99, "DESKTOPMAC": 112, "DESKTOPMAC_RC": 113, "DESKTOPMAC_BETA": 114, "DESKTOPMAC_ALPHA": 115, "CHANNELGW": 128, "CHANNELGW_RC": 129, "CHANNELGW_BETA": 130, "CHANNELGW_ALPHA": 131, "CHANNELCP": 144, "CHANNELCP_RC": 145, "CHANNELCP_BETA": 146, "CHANNELCP_ALPHA": 147, "WINPHONE": 160, "WINPHONE_RC": 161, "WINPHONE_BETA": 162, "WINPHONE_ALPHA": 163, "BLACKBERRY": 176, "BLACKBERRY_RC": 177, "BLACKBERRY_BETA": 178, "BLACKBERRY_ALPHA": 179, "WINMETRO": 192, "WINMETRO_RC": 193, "WINMETRO_BETA": 194, "WINMETRO_ALPHA": 195, "S40": 208, "S40_RC": 209, "S40_BETA": 210, "S40_ALPHA": 211, "CHRONO": 224, "CHRONO_RC": 225, "CHRONO_BETA": 226, "CHRONO_ALPHA": 227, "TIZEN": 256, "TIZEN_RC": 257, "TIZEN_BETA": 258, "TIZEN_ALPHA": 259, "VIRTUAL": 272, } class BuddyBannerLinkType: BUDDY_BANNER_LINK_HIDDEN = 0 BUDDY_BANNER_LINK_MID = 1 BUDDY_BANNER_LINK_URL = 2 _VALUES_TO_NAMES = { 0: "BUDDY_BANNER_LINK_HIDDEN", 1: "BUDDY_BANNER_LINK_MID", 2: "BUDDY_BANNER_LINK_URL", } _NAMES_TO_VALUES = { "BUDDY_BANNER_LINK_HIDDEN": 0, "BUDDY_BANNER_LINK_MID": 1, "BUDDY_BANNER_LINK_URL": 2, } class BuddyOnAirType: NORMAL = 0 LIVE = 1 VOIP = 2 _VALUES_TO_NAMES = { 0: "NORMAL", 1: "LIVE", 2: "VOIP", } _NAMES_TO_VALUES = { "NORMAL": 0, "LIVE": 1, "VOIP": 2, } class BuddyResultState: ACCEPTED = 1 SUCCEEDED = 2 FAILED = 3 CANCELLED = 4 NOTIFY_FAILED = 5 STORING = 11 UPLOADING = 21 NOTIFYING = 31 _VALUES_TO_NAMES = { 1: "ACCEPTED", 2: "SUCCEEDED", 3: "FAILED", 4: "CANCELLED", 5: "NOTIFY_FAILED", 11: "STORING", 21: "UPLOADING", 31: "NOTIFYING", } _NAMES_TO_VALUES = { "ACCEPTED": 1, "SUCCEEDED": 2, "FAILED": 3, "CANCELLED": 4, "NOTIFY_FAILED": 5, "STORING": 11, "UPLOADING": 21, "NOTIFYING": 31, } class BuddySearchRequestSource: NA = 0 FRIEND_VIEW = 1 OFFICIAL_ACCOUNT_VIEW = 2 _VALUES_TO_NAMES = { 0: "NA", 1: "FRIEND_VIEW", 2: "OFFICIAL_ACCOUNT_VIEW", } _NAMES_TO_VALUES = { "NA": 0, "FRIEND_VIEW": 1, "OFFICIAL_ACCOUNT_VIEW": 2, } class CarrierCode: NOT_SPECIFIED = 0 JP_DOCOMO = 1 JP_AU = 2 JP_SOFTBANK = 3 KR_SKT = 17 KR_KT = 18 KR_LGT = 19 _VALUES_TO_NAMES = { 0: "NOT_SPECIFIED", 1: "JP_DOCOMO", 2: "JP_AU", 3: "JP_SOFTBANK", 17: "KR_SKT", 18: "KR_KT", 19: "KR_LGT", } _NAMES_TO_VALUES = { "NOT_SPECIFIED": 0, "JP_DOCOMO": 1, "JP_AU": 2, "JP_SOFTBANK": 3, "KR_SKT": 17, "KR_KT": 18, "KR_LGT": 19, } class ChannelConfiguration: MESSAGE = 0 MESSAGE_NOTIFICATION = 1 NOTIFICATION_CENTER = 2 _VALUES_TO_NAMES = { 0: "MESSAGE", 1: "MESSAGE_NOTIFICATION", 2: "NOTIFICATION_CENTER", } _NAMES_TO_VALUES = { "MESSAGE": 0, "MESSAGE_NOTIFICATION": 1, "NOTIFICATION_CENTER": 2, } class ChannelErrorCode: ILLEGAL_ARGUMENT = 0 INTERNAL_ERROR = 1 CONNECTION_ERROR = 2 AUTHENTICATIONI_FAILED = 3 NEED_PERMISSION_APPROVAL = 4 COIN_NOT_USABLE = 5 _VALUES_TO_NAMES = { 0: "ILLEGAL_ARGUMENT", 1: "INTERNAL_ERROR", 2: "CONNECTION_ERROR", 3: "AUTHENTICATIONI_FAILED", 4: "NEED_PERMISSION_APPROVAL", 5: "COIN_NOT_USABLE", } _NAMES_TO_VALUES = { "ILLEGAL_ARGUMENT": 0, "INTERNAL_ERROR": 1, "CONNECTION_ERROR": 2, "AUTHENTICATIONI_FAILED": 3, "NEED_PERMISSION_APPROVAL": 4, "COIN_NOT_USABLE": 5, } class ChannelSyncType: SYNC = 0 REMOVE = 1 _VALUES_TO_NAMES = { 0: "SYNC", 1: "REMOVE", } _NAMES_TO_VALUES = { "SYNC": 0, "REMOVE": 1, } class ContactAttribute: CONTACT_ATTRIBUTE_CAPABLE_VOICE_CALL = 1 CONTACT_ATTRIBUTE_CAPABLE_VIDEO_CALL = 2 CONTACT_ATTRIBUTE_CAPABLE_MY_HOME = 16 CONTACT_ATTRIBUTE_CAPABLE_BUDDY = 32 _VALUES_TO_NAMES = { 1: "CONTACT_ATTRIBUTE_CAPABLE_VOICE_CALL", 2: "CONTACT_ATTRIBUTE_CAPABLE_VIDEO_CALL", 16: "CONTACT_ATTRIBUTE_CAPABLE_MY_HOME", 32: "CONTACT_ATTRIBUTE_CAPABLE_BUDDY", } _NAMES_TO_VALUES = { "CONTACT_ATTRIBUTE_CAPABLE_VOICE_CALL": 1, "CONTACT_ATTRIBUTE_CAPABLE_VIDEO_CALL": 2, "CONTACT_ATTRIBUTE_CAPABLE_MY_HOME": 16, "CONTACT_ATTRIBUTE_CAPABLE_BUDDY": 32, } class ContactCategory: NORMAL = 0 RECOMMEND = 1 _VALUES_TO_NAMES = { 0: "NORMAL", 1: "RECOMMEND", } _NAMES_TO_VALUES = { "NORMAL": 0, "RECOMMEND": 1, } class ContactRelation: ONEWAY = 0 BOTH = 1 NOT_REGISTERED = 2 _VALUES_TO_NAMES = { 0: "ONEWAY", 1: "BOTH", 2: "NOT_REGISTERED", } _NAMES_TO_VALUES = { "ONEWAY": 0, "BOTH": 1, "NOT_REGISTERED": 2, } class ContactSetting: CONTACT_SETTING_NOTIFICATION_DISABLE = 1 CONTACT_SETTING_DISPLAY_NAME_OVERRIDE = 2 CONTACT_SETTING_CONTACT_HIDE = 4 CONTACT_SETTING_FAVORITE = 8 CONTACT_SETTING_DELETE = 16 _VALUES_TO_NAMES = { 1: "CONTACT_SETTING_NOTIFICATION_DISABLE", 2: "CONTACT_SETTING_DISPLAY_NAME_OVERRIDE", 4: "CONTACT_SETTING_CONTACT_HIDE", 8: "CONTACT_SETTING_FAVORITE", 16: "CONTACT_SETTING_DELETE", } _NAMES_TO_VALUES = { "CONTACT_SETTING_NOTIFICATION_DISABLE": 1, "CONTACT_SETTING_DISPLAY_NAME_OVERRIDE": 2, "CONTACT_SETTING_CONTACT_HIDE": 4, "CONTACT_SETTING_FAVORITE": 8, "CONTACT_SETTING_DELETE": 16, } class ContactStatus: UNSPECIFIED = 0 FRIEND = 1 FRIEND_BLOCKED = 2 RECOMMEND = 3 RECOMMEND_BLOCKED = 4 DELETED = 5 DELETED_BLOCKED = 6 _VALUES_TO_NAMES = { 0: "UNSPECIFIED", 1: "FRIEND", 2: "FRIEND_BLOCKED", 3: "RECOMMEND", 4: "RECOMMEND_BLOCKED", 5: "DELETED", 6: "DELETED_BLOCKED", } _NAMES_TO_VALUES = { "UNSPECIFIED": 0, "FRIEND": 1, "FRIEND_BLOCKED": 2, "RECOMMEND": 3, "RECOMMEND_BLOCKED": 4, "DELETED": 5, "DELETED_BLOCKED": 6, } class ContactType: MID = 0 PHONE = 1 EMAIL = 2 USERID = 3 PROXIMITY = 4 GROUP = 5 USER = 6 QRCODE = 7 PROMOTION_BOT = 8 REPAIR = 128 FACEBOOK = 2305 SINA = 2306 RENREN = 2307 FEIXIN = 2308 _VALUES_TO_NAMES = { 0: "MID", 1: "PHONE", 2: "EMAIL", 3: "USERID", 4: "PROXIMITY", 5: "GROUP", 6: "USER", 7: "QRCODE", 8: "PROMOTION_BOT", 128: "REPAIR", 2305: "FACEBOOK", 2306: "SINA", 2307: "RENREN", 2308: "FEIXIN", } _NAMES_TO_VALUES = { "MID": 0, "PHONE": 1, "EMAIL": 2, "USERID": 3, "PROXIMITY": 4, "GROUP": 5, "USER": 6, "QRCODE": 7, "PROMOTION_BOT": 8, "REPAIR": 128, "FACEBOOK": 2305, "SINA": 2306, "RENREN": 2307, "FEIXIN": 2308, } class ContentType: NONE = 0 IMAGE = 1 VIDEO = 2 AUDIO = 3 HTML = 4 PDF = 5 CALL = 6 STICKER = 7 PRESENCE = 8 GIFT = 9 GROUPBOARD = 10 APPLINK = 11 LINK = 12 CONTACT = 13 FILE = 14 LOCATION = 15 POSTNOTIFICATION = 16 RICH = 17 CHATEVENT = 18 _VALUES_TO_NAMES = { 0: "NONE", 1: "IMAGE", 2: "VIDEO", 3: "AUDIO", 4: "HTML", 5: "PDF", 6: "CALL", 7: "STICKER", 8: "PRESENCE", 9: "GIFT", 10: "GROUPBOARD", 11: "APPLINK", 12: "LINK", 13: "CONTACT", 14: "FILE", 15: "LOCATION", 16: "POSTNOTIFICATION", 17: "RICH", 18: "CHATEVENT", } _NAMES_TO_VALUES = { "NONE": 0, "IMAGE": 1, "VIDEO": 2, "AUDIO": 3, "HTML": 4, "PDF": 5, "CALL": 6, "STICKER": 7, "PRESENCE": 8, "GIFT": 9, "GROUPBOARD": 10, "APPLINK": 11, "LINK": 12, "CONTACT": 13, "FILE": 14, "LOCATION": 15, "POSTNOTIFICATION": 16, "RICH": 17, "CHATEVENT": 18, } class CustomMode: PROMOTION_FRIENDS_INVITE = 1 CAPABILITY_SERVER_SIDE_SMS = 2 LINE_CLIENT_ANALYTICS_CONFIGURATION = 3 _VALUES_TO_NAMES = { 1: "PROMOTION_FRIENDS_INVITE", 2: "CAPABILITY_SERVER_SIDE_SMS", 3: "LINE_CLIENT_ANALYTICS_CONFIGURATION", } _NAMES_TO_VALUES = { "PROMOTION_FRIENDS_INVITE": 1, "CAPABILITY_SERVER_SIDE_SMS": 2, "LINE_CLIENT_ANALYTICS_CONFIGURATION": 3, } class EmailConfirmationStatus: NOT_SPECIFIED = 0 NOT_YET = 1 DONE = 3 _VALUES_TO_NAMES = { 0: "NOT_SPECIFIED", 1: "NOT_YET", 3: "DONE", } _NAMES_TO_VALUES = { "NOT_SPECIFIED": 0, "NOT_YET": 1, "DONE": 3, } class EmailConfirmationType: SERVER_SIDE_EMAIL = 0 CLIENT_SIDE_EMAIL = 1 _VALUES_TO_NAMES = { 0: "SERVER_SIDE_EMAIL", 1: "CLIENT_SIDE_EMAIL", } _NAMES_TO_VALUES = { "SERVER_SIDE_EMAIL": 0, "CLIENT_SIDE_EMAIL": 1, } class ErrorCode: ILLEGAL_ARGUMENT = 0 AUTHENTICATION_FAILED = 1 DB_FAILED = 2 INVALID_STATE = 3 EXCESSIVE_ACCESS = 4 NOT_FOUND = 5 INVALID_LENGTH = 6 NOT_AVAILABLE_USER = 7 NOT_AUTHORIZED_DEVICE = 8 INVALID_MID = 9 NOT_A_MEMBER = 10 INCOMPATIBLE_APP_VERSION = 11 NOT_READY = 12 NOT_AVAILABLE_SESSION = 13 NOT_AUTHORIZED_SESSION = 14 SYSTEM_ERROR = 15 NO_AVAILABLE_VERIFICATION_METHOD = 16 NOT_AUTHENTICATED = 17 INVALID_IDENTITY_CREDENTIAL = 18 NOT_AVAILABLE_IDENTITY_IDENTIFIER = 19 INTERNAL_ERROR = 20 NO_SUCH_IDENTITY_IDENFIER = 21 DEACTIVATED_ACCOUNT_BOUND_TO_THIS_IDENTITY = 22 ILLEGAL_IDENTITY_CREDENTIAL = 23 UNKNOWN_CHANNEL = 24 NO_SUCH_MESSAGE_BOX = 25 NOT_AVAILABLE_MESSAGE_BOX = 26 CHANNEL_DOES_NOT_MATCH = 27 NOT_YOUR_MESSAGE = 28 MESSAGE_DEFINED_ERROR = 29 USER_CANNOT_ACCEPT_PRESENTS = 30 USER_NOT_STICKER_OWNER = 32 MAINTENANCE_ERROR = 33 ACCOUNT_NOT_MATCHED = 34 ABUSE_BLOCK = 35 NOT_FRIEND = 36 NOT_ALLOWED_CALL = 37 BLOCK_FRIEND = 38 INCOMPATIBLE_VOIP_VERSION = 39 INVALID_SNS_ACCESS_TOKEN = 40 EXTERNAL_SERVICE_NOT_AVAILABLE = 41 NOT_ALLOWED_ADD_CONTACT = 42 NOT_CERTIFICATED = 43 NOT_ALLOWED_SECONDARY_DEVICE = 44 INVALID_PIN_CODE = 45 NOT_FOUND_IDENTITY_CREDENTIAL = 46 EXCEED_FILE_MAX_SIZE = 47 EXCEED_DAILY_QUOTA = 48 NOT_SUPPORT_SEND_FILE = 49 MUST_UPGRADE = 50 NOT_AVAILABLE_PIN_CODE_SESSION = 51 _VALUES_TO_NAMES = { 0: "ILLEGAL_ARGUMENT", 1: "AUTHENTICATION_FAILED", 2: "DB_FAILED", 3: "INVALID_STATE", 4: "EXCESSIVE_ACCESS", 5: "NOT_FOUND", 6: "INVALID_LENGTH", 7: "NOT_AVAILABLE_USER", 8: "NOT_AUTHORIZED_DEVICE", 9: "INVALID_MID", 10: "NOT_A_MEMBER", 11: "INCOMPATIBLE_APP_VERSION", 12: "NOT_READY", 13: "NOT_AVAILABLE_SESSION", 14: "NOT_AUTHORIZED_SESSION", 15: "SYSTEM_ERROR", 16: "NO_AVAILABLE_VERIFICATION_METHOD", 17: "NOT_AUTHENTICATED", 18: "INVALID_IDENTITY_CREDENTIAL", 19: "NOT_AVAILABLE_IDENTITY_IDENTIFIER", 20: "INTERNAL_ERROR", 21: "NO_SUCH_IDENTITY_IDENFIER", 22: "DEACTIVATED_ACCOUNT_BOUND_TO_THIS_IDENTITY", 23: "ILLEGAL_IDENTITY_CREDENTIAL", 24: "UNKNOWN_CHANNEL", 25: "NO_SUCH_MESSAGE_BOX", 26: "NOT_AVAILABLE_MESSAGE_BOX", 27: "CHANNEL_DOES_NOT_MATCH", 28: "NOT_YOUR_MESSAGE", 29: "MESSAGE_DEFINED_ERROR", 30: "USER_CANNOT_ACCEPT_PRESENTS", 32: "USER_NOT_STICKER_OWNER", 33: "MAINTENANCE_ERROR", 34: "ACCOUNT_NOT_MATCHED", 35: "ABUSE_BLOCK", 36: "NOT_FRIEND", 37: "NOT_ALLOWED_CALL", 38: "BLOCK_FRIEND", 39: "INCOMPATIBLE_VOIP_VERSION", 40: "INVALID_SNS_ACCESS_TOKEN", 41: "EXTERNAL_SERVICE_NOT_AVAILABLE", 42: "NOT_ALLOWED_ADD_CONTACT", 43: "NOT_CERTIFICATED", 44: "NOT_ALLOWED_SECONDARY_DEVICE", 45: "INVALID_PIN_CODE", 46: "NOT_FOUND_IDENTITY_CREDENTIAL", 47: "EXCEED_FILE_MAX_SIZE", 48: "EXCEED_DAILY_QUOTA", 49: "NOT_SUPPORT_SEND_FILE", 50: "MUST_UPGRADE", 51: "NOT_AVAILABLE_PIN_CODE_SESSION", } _NAMES_TO_VALUES = { "ILLEGAL_ARGUMENT": 0, "AUTHENTICATION_FAILED": 1, "DB_FAILED": 2, "INVALID_STATE": 3, "EXCESSIVE_ACCESS": 4, "NOT_FOUND": 5, "INVALID_LENGTH": 6, "NOT_AVAILABLE_USER": 7, "NOT_AUTHORIZED_DEVICE": 8, "INVALID_MID": 9, "NOT_A_MEMBER": 10, "INCOMPATIBLE_APP_VERSION": 11, "NOT_READY": 12, "NOT_AVAILABLE_SESSION": 13, "NOT_AUTHORIZED_SESSION": 14, "SYSTEM_ERROR": 15, "NO_AVAILABLE_VERIFICATION_METHOD": 16, "NOT_AUTHENTICATED": 17, "INVALID_IDENTITY_CREDENTIAL": 18, "NOT_AVAILABLE_IDENTITY_IDENTIFIER": 19, "INTERNAL_ERROR": 20, "NO_SUCH_IDENTITY_IDENFIER": 21, "DEACTIVATED_ACCOUNT_BOUND_TO_THIS_IDENTITY": 22, "ILLEGAL_IDENTITY_CREDENTIAL": 23, "UNKNOWN_CHANNEL": 24, "NO_SUCH_MESSAGE_BOX": 25, "NOT_AVAILABLE_MESSAGE_BOX": 26, "CHANNEL_DOES_NOT_MATCH": 27, "NOT_YOUR_MESSAGE": 28, "MESSAGE_DEFINED_ERROR": 29, "USER_CANNOT_ACCEPT_PRESENTS": 30, "USER_NOT_STICKER_OWNER": 32, "MAINTENANCE_ERROR": 33, "ACCOUNT_NOT_MATCHED": 34, "ABUSE_BLOCK": 35, "NOT_FRIEND": 36, "NOT_ALLOWED_CALL": 37, "BLOCK_FRIEND": 38, "INCOMPATIBLE_VOIP_VERSION": 39, "INVALID_SNS_ACCESS_TOKEN": 40, "EXTERNAL_SERVICE_NOT_AVAILABLE": 41, "NOT_ALLOWED_ADD_CONTACT": 42, "NOT_CERTIFICATED": 43, "NOT_ALLOWED_SECONDARY_DEVICE": 44, "INVALID_PIN_CODE": 45, "NOT_FOUND_IDENTITY_CREDENTIAL": 46, "EXCEED_FILE_MAX_SIZE": 47, "EXCEED_DAILY_QUOTA": 48, "NOT_SUPPORT_SEND_FILE": 49, "MUST_UPGRADE": 50, "NOT_AVAILABLE_PIN_CODE_SESSION": 51, } class FeatureType: OBJECT_STORAGE = 1 _VALUES_TO_NAMES = { 1: "OBJECT_STORAGE", } _NAMES_TO_VALUES = { "OBJECT_STORAGE": 1, } class GroupAttribute: NAME = 1 PICTURE_STATUS = 2 ALL = 255 _VALUES_TO_NAMES = { 1: "NAME", 2: "PICTURE_STATUS", 255: "ALL", } _NAMES_TO_VALUES = { "NAME": 1, "PICTURE_STATUS": 2, "ALL": 255, } class IdentityProvider: UNKNOWN = 0 LINE = 1 NAVER_KR = 2 _VALUES_TO_NAMES = { 0: "UNKNOWN", 1: "LINE", 2: "NAVER_KR", } _NAMES_TO_VALUES = { "UNKNOWN": 0, "LINE": 1, "NAVER_KR": 2, } class LoginResultType: SUCCESS = 1 REQUIRE_QRCODE = 2 REQUIRE_DEVICE_CONFIRM = 3 _VALUES_TO_NAMES = { 1: "SUCCESS", 2: "REQUIRE_QRCODE", 3: "REQUIRE_DEVICE_CONFIRM", } _NAMES_TO_VALUES = { "SUCCESS": 1, "REQUIRE_QRCODE": 2, "REQUIRE_DEVICE_CONFIRM": 3, } class MessageOperationType: SEND_MESSAGE = 1 RECEIVE_MESSAGE = 2 READ_MESSAGE = 3 NOTIFIED_READ_MESSAGE = 4 NOTIFIED_JOIN_CHAT = 5 FAILED_SEND_MESSAGE = 6 SEND_CONTENT = 7 SEND_CONTENT_RECEIPT = 8 SEND_CHAT_REMOVED = 9 REMOVE_ALL_MESSAGES = 10 _VALUES_TO_NAMES = { 1: "SEND_MESSAGE", 2: "RECEIVE_MESSAGE", 3: "READ_MESSAGE", 4: "NOTIFIED_READ_MESSAGE", 5: "NOTIFIED_JOIN_CHAT", 6: "FAILED_SEND_MESSAGE", 7: "SEND_CONTENT", 8: "SEND_CONTENT_RECEIPT", 9: "SEND_CHAT_REMOVED", 10: "REMOVE_ALL_MESSAGES", } _NAMES_TO_VALUES = { "SEND_MESSAGE": 1, "RECEIVE_MESSAGE": 2, "READ_MESSAGE": 3, "NOTIFIED_READ_MESSAGE": 4, "NOTIFIED_JOIN_CHAT": 5, "FAILED_SEND_MESSAGE": 6, "SEND_CONTENT": 7, "SEND_CONTENT_RECEIPT": 8, "SEND_CHAT_REMOVED": 9, "REMOVE_ALL_MESSAGES": 10, } class MIDType: USER = 0 ROOM = 1 GROUP = 2 _VALUES_TO_NAMES = { 0: "USER", 1: "ROOM", 2: "GROUP", } _NAMES_TO_VALUES = { "USER": 0, "ROOM": 1, "GROUP": 2, } class ModificationType: ADD = 0 REMOVE = 1 MODIFY = 2 _VALUES_TO_NAMES = { 0: "ADD", 1: "REMOVE", 2: "MODIFY", } _NAMES_TO_VALUES = { "ADD": 0, "REMOVE": 1, "MODIFY": 2, } class NotificationItemFetchMode: ALL = 0 APPEND = 1 _VALUES_TO_NAMES = { 0: "ALL", 1: "APPEND", } _NAMES_TO_VALUES = { "ALL": 0, "APPEND": 1, } class NotificationQueueType: GLOBAL = 1 MESSAGE = 2 PRIMARY = 3 _VALUES_TO_NAMES = { 1: "GLOBAL", 2: "MESSAGE", 3: "PRIMARY", } _NAMES_TO_VALUES = { "GLOBAL": 1, "MESSAGE": 2, "PRIMARY": 3, } class NotificationStatus: NOTIFICATION_ITEM_EXIST = 1 TIMELINE_ITEM_EXIST = 2 NOTE_GROUP_NEW_ITEM_EXIST = 4 TIMELINE_BUDDYGROUP_CHANGED = 8 NOTE_ONE_TO_ONE_NEW_ITEM_EXIST = 16 ALBUM_ITEM_EXIST = 32 TIMELINE_ITEM_DELETED = 64 _VALUES_TO_NAMES = { 1: "NOTIFICATION_ITEM_EXIST", 2: "TIMELINE_ITEM_EXIST", 4: "NOTE_GROUP_NEW_ITEM_EXIST", 8: "TIMELINE_BUDDYGROUP_CHANGED", 16: "NOTE_ONE_TO_ONE_NEW_ITEM_EXIST", 32: "ALBUM_ITEM_EXIST", 64: "TIMELINE_ITEM_DELETED", } _NAMES_TO_VALUES = { "NOTIFICATION_ITEM_EXIST": 1, "TIMELINE_ITEM_EXIST": 2, "NOTE_GROUP_NEW_ITEM_EXIST": 4, "TIMELINE_BUDDYGROUP_CHANGED": 8, "NOTE_ONE_TO_ONE_NEW_ITEM_EXIST": 16, "ALBUM_ITEM_EXIST": 32, "TIMELINE_ITEM_DELETED": 64, } class NotificationType: APPLE_APNS = 1 GOOGLE_C2DM = 2 NHN_NNI = 3 SKT_AOM = 4 MS_MPNS = 5 RIM_BIS = 6 GOOGLE_GCM = 7 NOKIA_NNAPI = 8 TIZEN = 9 LINE_BOT = 17 LINE_WAP = 18 _VALUES_TO_NAMES = { 1: "APPLE_APNS", 2: "GOOGLE_C2DM", 3: "NHN_NNI", 4: "SKT_AOM", 5: "MS_MPNS", 6: "RIM_BIS", 7: "GOOGLE_GCM", 8: "NOKIA_NNAPI", 9: "TIZEN", 17: "LINE_BOT", 18: "LINE_WAP", } _NAMES_TO_VALUES = { "APPLE_APNS": 1, "GOOGLE_C2DM": 2, "NHN_NNI": 3, "SKT_AOM": 4, "MS_MPNS": 5, "RIM_BIS": 6, "GOOGLE_GCM": 7, "NOKIA_NNAPI": 8, "TIZEN": 9, "LINE_BOT": 17, "LINE_WAP": 18, } class OpStatus: NORMAL = 0 ALERT_DISABLED = 1 _VALUES_TO_NAMES = { 0: "NORMAL", 1: "ALERT_DISABLED", } _NAMES_TO_VALUES = { "NORMAL": 0, "ALERT_DISABLED": 1, } class OpType: END_OF_OPERATION = 0 UPDATE_PROFILE = 1 NOTIFIED_UPDATE_PROFILE = 2 REGISTER_USERID = 3 ADD_CONTACT = 4 NOTIFIED_ADD_CONTACT = 5 BLOCK_CONTACT = 6 UNBLOCK_CONTACT = 7 NOTIFIED_RECOMMEND_CONTACT = 8 CREATE_GROUP = 9 UPDATE_GROUP = 10 NOTIFIED_UPDATE_GROUP = 11 INVITE_INTO_GROUP = 12 NOTIFIED_INVITE_INTO_GROUP = 13 LEAVE_GROUP = 14 NOTIFIED_LEAVE_GROUP = 15 ACCEPT_GROUP_INVITATION = 16 NOTIFIED_ACCEPT_GROUP_INVITATION = 17 KICKOUT_FROM_GROUP = 18 NOTIFIED_KICKOUT_FROM_GROUP = 19 CREATE_ROOM = 20 INVITE_INTO_ROOM = 21 NOTIFIED_INVITE_INTO_ROOM = 22 LEAVE_ROOM = 23 NOTIFIED_LEAVE_ROOM = 24 SEND_MESSAGE = 25 RECEIVE_MESSAGE = 26 SEND_MESSAGE_RECEIPT = 27 RECEIVE_MESSAGE_RECEIPT = 28 SEND_CONTENT_RECEIPT = 29 RECEIVE_ANNOUNCEMENT = 30 CANCEL_INVITATION_GROUP = 31 NOTIFIED_CANCEL_INVITATION_GROUP = 32 NOTIFIED_UNREGISTER_USER = 33 REJECT_GROUP_INVITATION = 34 NOTIFIED_REJECT_GROUP_INVITATION = 35 UPDATE_SETTINGS = 36 NOTIFIED_REGISTER_USER = 37 INVITE_VIA_EMAIL = 38 NOTIFIED_REQUEST_RECOVERY = 39 SEND_CHAT_CHECKED = 40 SEND_CHAT_REMOVED = 41 NOTIFIED_FORCE_SYNC = 42 SEND_CONTENT = 43 SEND_MESSAGE_MYHOME = 44 NOTIFIED_UPDATE_CONTENT_PREVIEW = 45 REMOVE_ALL_MESSAGES = 46 NOTIFIED_UPDATE_PURCHASES = 47 DUMMY = 48 UPDATE_CONTACT = 49 NOTIFIED_RECEIVED_CALL = 50 CANCEL_CALL = 51 NOTIFIED_REDIRECT = 52 NOTIFIED_CHANNEL_SYNC = 53 FAILED_SEND_MESSAGE = 54 NOTIFIED_READ_MESSAGE = 55 FAILED_EMAIL_CONFIRMATION = 56 NOTIFIED_CHAT_CONTENT = 58 NOTIFIED_PUSH_NOTICENTER_ITEM = 59 _VALUES_TO_NAMES = { 0: "END_OF_OPERATION", 1: "UPDATE_PROFILE", 2: "NOTIFIED_UPDATE_PROFILE", 3: "REGISTER_USERID", 4: "ADD_CONTACT", 5: "NOTIFIED_ADD_CONTACT", 6: "BLOCK_CONTACT", 7: "UNBLOCK_CONTACT", 8: "NOTIFIED_RECOMMEND_CONTACT", 9: "CREATE_GROUP", 10: "UPDATE_GROUP", 11: "NOTIFIED_UPDATE_GROUP", 12: "INVITE_INTO_GROUP", 13: "NOTIFIED_INVITE_INTO_GROUP", 14: "LEAVE_GROUP", 15: "NOTIFIED_LEAVE_GROUP", 16: "ACCEPT_GROUP_INVITATION", 17: "NOTIFIED_ACCEPT_GROUP_INVITATION", 18: "KICKOUT_FROM_GROUP", 19: "NOTIFIED_KICKOUT_FROM_GROUP", 20: "CREATE_ROOM", 21: "INVITE_INTO_ROOM", 22: "NOTIFIED_INVITE_INTO_ROOM", 23: "LEAVE_ROOM", 24: "NOTIFIED_LEAVE_ROOM", 25: "SEND_MESSAGE", 26: "RECEIVE_MESSAGE", 27: "SEND_MESSAGE_RECEIPT", 28: "RECEIVE_MESSAGE_RECEIPT", 29: "SEND_CONTENT_RECEIPT", 30: "RECEIVE_ANNOUNCEMENT", 31: "CANCEL_INVITATION_GROUP", 32: "NOTIFIED_CANCEL_INVITATION_GROUP", 33: "NOTIFIED_UNREGISTER_USER", 34: "REJECT_GROUP_INVITATION", 35: "NOTIFIED_REJECT_GROUP_INVITATION", 36: "UPDATE_SETTINGS", 37: "NOTIFIED_REGISTER_USER", 38: "INVITE_VIA_EMAIL", 39: "NOTIFIED_REQUEST_RECOVERY", 40: "SEND_CHAT_CHECKED", 41: "SEND_CHAT_REMOVED", 42: "NOTIFIED_FORCE_SYNC", 43: "SEND_CONTENT", 44: "SEND_MESSAGE_MYHOME", 45: "NOTIFIED_UPDATE_CONTENT_PREVIEW", 46: "REMOVE_ALL_MESSAGES", 47: "NOTIFIED_UPDATE_PURCHASES", 48: "DUMMY", 49: "UPDATE_CONTACT", 50: "NOTIFIED_RECEIVED_CALL", 51: "CANCEL_CALL", 52: "NOTIFIED_REDIRECT", 53: "NOTIFIED_CHANNEL_SYNC", 54: "FAILED_SEND_MESSAGE", 55: "NOTIFIED_READ_MESSAGE", 56: "FAILED_EMAIL_CONFIRMATION", 58: "NOTIFIED_CHAT_CONTENT", 59: "NOTIFIED_PUSH_NOTICENTER_ITEM", } _NAMES_TO_VALUES = { "END_OF_OPERATION": 0, "UPDATE_PROFILE": 1, "NOTIFIED_UPDATE_PROFILE": 2, "REGISTER_USERID": 3, "ADD_CONTACT": 4, "NOTIFIED_ADD_CONTACT": 5, "BLOCK_CONTACT": 6, "UNBLOCK_CONTACT": 7, "NOTIFIED_RECOMMEND_CONTACT": 8, "CREATE_GROUP": 9, "UPDATE_GROUP": 10, "NOTIFIED_UPDATE_GROUP": 11, "INVITE_INTO_GROUP": 12, "NOTIFIED_INVITE_INTO_GROUP": 13, "LEAVE_GROUP": 14, "NOTIFIED_LEAVE_GROUP": 15, "ACCEPT_GROUP_INVITATION": 16, "NOTIFIED_ACCEPT_GROUP_INVITATION": 17, "KICKOUT_FROM_GROUP": 18, "NOTIFIED_KICKOUT_FROM_GROUP": 19, "CREATE_ROOM": 20, "INVITE_INTO_ROOM": 21, "NOTIFIED_INVITE_INTO_ROOM": 22, "LEAVE_ROOM": 23, "NOTIFIED_LEAVE_ROOM": 24, "SEND_MESSAGE": 25, "RECEIVE_MESSAGE": 26, "SEND_MESSAGE_RECEIPT": 27, "RECEIVE_MESSAGE_RECEIPT": 28, "SEND_CONTENT_RECEIPT": 29, "RECEIVE_ANNOUNCEMENT": 30, "CANCEL_INVITATION_GROUP": 31, "NOTIFIED_CANCEL_INVITATION_GROUP": 32, "NOTIFIED_UNREGISTER_USER": 33, "REJECT_GROUP_INVITATION": 34, "NOTIFIED_REJECT_GROUP_INVITATION": 35, "UPDATE_SETTINGS": 36, "NOTIFIED_REGISTER_USER": 37, "INVITE_VIA_EMAIL": 38, "NOTIFIED_REQUEST_RECOVERY": 39, "SEND_CHAT_CHECKED": 40, "SEND_CHAT_REMOVED": 41, "NOTIFIED_FORCE_SYNC": 42, "SEND_CONTENT": 43, "SEND_MESSAGE_MYHOME": 44, "NOTIFIED_UPDATE_CONTENT_PREVIEW": 45, "REMOVE_ALL_MESSAGES": 46, "NOTIFIED_UPDATE_PURCHASES": 47, "DUMMY": 48, "UPDATE_CONTACT": 49, "NOTIFIED_RECEIVED_CALL": 50, "CANCEL_CALL": 51, "NOTIFIED_REDIRECT": 52, "NOTIFIED_CHANNEL_SYNC": 53, "FAILED_SEND_MESSAGE": 54, "NOTIFIED_READ_MESSAGE": 55, "FAILED_EMAIL_CONFIRMATION": 56, "NOTIFIED_CHAT_CONTENT": 58, "NOTIFIED_PUSH_NOTICENTER_ITEM": 59, } class PayloadType: PAYLOAD_BUY = 101 PAYLOAD_CS = 111 PAYLOAD_BONUS = 121 PAYLOAD_EVENT = 131 _VALUES_TO_NAMES = { 101: "PAYLOAD_BUY", 111: "PAYLOAD_CS", 121: "PAYLOAD_BONUS", 131: "PAYLOAD_EVENT", } _NAMES_TO_VALUES = { "PAYLOAD_BUY": 101, "PAYLOAD_CS": 111, "PAYLOAD_BONUS": 121, "PAYLOAD_EVENT": 131, } class PaymentPgType: PAYMENT_PG_NONE = 0 PAYMENT_PG_AU = 1 PAYMENT_PG_AL = 2 _VALUES_TO_NAMES = { 0: "PAYMENT_PG_NONE", 1: "PAYMENT_PG_AU", 2: "PAYMENT_PG_AL", } _NAMES_TO_VALUES = { "PAYMENT_PG_NONE": 0, "PAYMENT_PG_AU": 1, "PAYMENT_PG_AL": 2, } class PaymentType: PAYMENT_APPLE = 1 PAYMENT_GOOGLE = 2 _VALUES_TO_NAMES = { 1: "PAYMENT_APPLE", 2: "PAYMENT_GOOGLE", } _NAMES_TO_VALUES = { "PAYMENT_APPLE": 1, "PAYMENT_GOOGLE": 2, } class ProductBannerLinkType: BANNER_LINK_NONE = 0 BANNER_LINK_ITEM = 1 BANNER_LINK_URL = 2 BANNER_LINK_CATEGORY = 3 _VALUES_TO_NAMES = { 0: "BANNER_LINK_NONE", 1: "BANNER_LINK_ITEM", 2: "BANNER_LINK_URL", 3: "BANNER_LINK_CATEGORY", } _NAMES_TO_VALUES = { "BANNER_LINK_NONE": 0, "BANNER_LINK_ITEM": 1, "BANNER_LINK_URL": 2, "BANNER_LINK_CATEGORY": 3, } class ProductEventType: NO_EVENT = 0 CARRIER_ANY = 65537 BUDDY_ANY = 131073 INSTALL_IOS = 196609 INSTALL_ANDROID = 196610 MISSION_ANY = 262145 MUSTBUY_ANY = 327681 _VALUES_TO_NAMES = { 0: "NO_EVENT", 65537: "CARRIER_ANY", 131073: "BUDDY_ANY", 196609: "INSTALL_IOS", 196610: "INSTALL_ANDROID", 262145: "MISSION_ANY", 327681: "MUSTBUY_ANY", } _NAMES_TO_VALUES = { "NO_EVENT": 0, "CARRIER_ANY": 65537, "BUDDY_ANY": 131073, "INSTALL_IOS": 196609, "INSTALL_ANDROID": 196610, "MISSION_ANY": 262145, "MUSTBUY_ANY": 327681, } class ProfileAttribute: EMAIL = 1 DISPLAY_NAME = 2 PHONETIC_NAME = 4 PICTURE = 8 STATUS_MESSAGE = 16 ALLOW_SEARCH_BY_USERID = 32 ALLOW_SEARCH_BY_EMAIL = 64 BUDDY_STATUS = 128 ALL = 255 _VALUES_TO_NAMES = { 1: "EMAIL", 2: "DISPLAY_NAME", 4: "PHONETIC_NAME", 8: "PICTURE", 16: "STATUS_MESSAGE", 32: "ALLOW_SEARCH_BY_USERID", 64: "ALLOW_SEARCH_BY_EMAIL", 128: "BUDDY_STATUS", 255: "ALL", } _NAMES_TO_VALUES = { "EMAIL": 1, "DISPLAY_NAME": 2, "PHONETIC_NAME": 4, "PICTURE": 8, "STATUS_MESSAGE": 16, "ALLOW_SEARCH_BY_USERID": 32, "ALLOW_SEARCH_BY_EMAIL": 64, "BUDDY_STATUS": 128, "ALL": 255, } class PublicType: HIDDEN = 0 PUBLIC = 1000 _VALUES_TO_NAMES = { 0: "HIDDEN", 1000: "PUBLIC", } _NAMES_TO_VALUES = { "HIDDEN": 0, "PUBLIC": 1000, } class RedirectType: NONE = 0 EXPIRE_SECOND = 1 _VALUES_TO_NAMES = { 0: "NONE", 1: "EXPIRE_SECOND", } _NAMES_TO_VALUES = { "NONE": 0, "EXPIRE_SECOND": 1, } class RegistrationType: PHONE = 0 EMAIL_WAP = 1 FACEBOOK = 2305 SINA = 2306 RENREN = 2307 FEIXIN = 2308 _VALUES_TO_NAMES = { 0: "PHONE", 1: "EMAIL_WAP", 2305: "FACEBOOK", 2306: "SINA", 2307: "RENREN", 2308: "FEIXIN", } _NAMES_TO_VALUES = { "PHONE": 0, "EMAIL_WAP": 1, "FACEBOOK": 2305, "SINA": 2306, "RENREN": 2307, "FEIXIN": 2308, } class SettingsAttribute: NOTIFICATION_ENABLE = 1 NOTIFICATION_MUTE_EXPIRATION = 2 NOTIFICATION_NEW_MESSAGE = 4 NOTIFICATION_GROUP_INVITATION = 8 NOTIFICATION_SHOW_MESSAGE = 16 NOTIFICATION_INCOMING_CALL = 32 PRIVACY_SYNC_CONTACTS = 64 PRIVACY_SEARCH_BY_PHONE_NUMBER = 128 NOTIFICATION_SOUND_MESSAGE = 256 NOTIFICATION_SOUND_GROUP = 512 CONTACT_MY_TICKET = 1024 IDENTITY_PROVIDER = 2048 IDENTITY_IDENTIFIER = 4096 PRIVACY_SEARCH_BY_USERID = 8192 PRIVACY_SEARCH_BY_EMAIL = 16384 PREFERENCE_LOCALE = 32768 NOTIFICATION_DISABLED_WITH_SUB = 65536 SNS_ACCOUNT = 524288 PHONE_REGISTRATION = 1048576 PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN = 2097152 CUSTOM_MODE = 4194304 PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME = 8388608 EMAIL_CONFIRMATION_STATUS = 16777216 PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND = 33554432 ALL = 2147483647 _VALUES_TO_NAMES = { 1: "NOTIFICATION_ENABLE", 2: "NOTIFICATION_MUTE_EXPIRATION", 4: "NOTIFICATION_NEW_MESSAGE", 8: "NOTIFICATION_GROUP_INVITATION", 16: "NOTIFICATION_SHOW_MESSAGE", 32: "NOTIFICATION_INCOMING_CALL", 64: "PRIVACY_SYNC_CONTACTS", 128: "PRIVACY_SEARCH_BY_PHONE_NUMBER", 256: "NOTIFICATION_SOUND_MESSAGE", 512: "NOTIFICATION_SOUND_GROUP", 1024: "CONTACT_MY_TICKET", 2048: "IDENTITY_PROVIDER", 4096: "IDENTITY_IDENTIFIER", 8192: "PRIVACY_SEARCH_BY_USERID", 16384: "PRIVACY_SEARCH_BY_EMAIL", 32768: "PREFERENCE_LOCALE", 65536: "NOTIFICATION_DISABLED_WITH_SUB", 524288: "SNS_ACCOUNT", 1048576: "PHONE_REGISTRATION", 2097152: "PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN", 4194304: "CUSTOM_MODE", 8388608: "PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME", 16777216: "EMAIL_CONFIRMATION_STATUS", 33554432: "PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND", 2147483647: "ALL", } _NAMES_TO_VALUES = { "NOTIFICATION_ENABLE": 1, "NOTIFICATION_MUTE_EXPIRATION": 2, "NOTIFICATION_NEW_MESSAGE": 4, "NOTIFICATION_GROUP_INVITATION": 8, "NOTIFICATION_SHOW_MESSAGE": 16, "NOTIFICATION_INCOMING_CALL": 32, "PRIVACY_SYNC_CONTACTS": 64, "PRIVACY_SEARCH_BY_PHONE_NUMBER": 128, "NOTIFICATION_SOUND_MESSAGE": 256, "NOTIFICATION_SOUND_GROUP": 512, "CONTACT_MY_TICKET": 1024, "IDENTITY_PROVIDER": 2048, "IDENTITY_IDENTIFIER": 4096, "PRIVACY_SEARCH_BY_USERID": 8192, "PRIVACY_SEARCH_BY_EMAIL": 16384, "PREFERENCE_LOCALE": 32768, "NOTIFICATION_DISABLED_WITH_SUB": 65536, "SNS_ACCOUNT": 524288, "PHONE_REGISTRATION": 1048576, "PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN": 2097152, "CUSTOM_MODE": 4194304, "PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME": 8388608, "EMAIL_CONFIRMATION_STATUS": 16777216, "PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND": 33554432, "ALL": 2147483647, } class SnsIdType: FACEBOOK = 1 SINA = 2 RENREN = 3 FEIXIN = 4 _VALUES_TO_NAMES = { 1: "FACEBOOK", 2: "SINA", 3: "RENREN", 4: "FEIXIN", } _NAMES_TO_VALUES = { "FACEBOOK": 1, "SINA": 2, "RENREN": 3, "FEIXIN": 4, } class SpammerReason: OTHER = 0 ADVERTISING = 1 GENDER_HARASSMENT = 2 HARASSMENT = 3 _VALUES_TO_NAMES = { 0: "OTHER", 1: "ADVERTISING", 2: "GENDER_HARASSMENT", 3: "HARASSMENT", } _NAMES_TO_VALUES = { "OTHER": 0, "ADVERTISING": 1, "GENDER_HARASSMENT": 2, "HARASSMENT": 3, } class SyncActionType: SYNC = 0 REPORT = 1 _VALUES_TO_NAMES = { 0: "SYNC", 1: "REPORT", } _NAMES_TO_VALUES = { "SYNC": 0, "REPORT": 1, } class SyncCategory: PROFILE = 0 SETTINGS = 1 OPS = 2 CONTACT = 3 RECOMMEND = 4 BLOCK = 5 GROUP = 6 ROOM = 7 NOTIFICATION = 8 _VALUES_TO_NAMES = { 0: "PROFILE", 1: "SETTINGS", 2: "OPS", 3: "CONTACT", 4: "RECOMMEND", 5: "BLOCK", 6: "GROUP", 7: "ROOM", 8: "NOTIFICATION", } _NAMES_TO_VALUES = { "PROFILE": 0, "SETTINGS": 1, "OPS": 2, "CONTACT": 3, "RECOMMEND": 4, "BLOCK": 5, "GROUP": 6, "ROOM": 7, "NOTIFICATION": 8, } class TMessageBoxStatus: ACTIVATED = 1 UNREAD = 2 _VALUES_TO_NAMES = { 1: "ACTIVATED", 2: "UNREAD", } _NAMES_TO_VALUES = { "ACTIVATED": 1, "UNREAD": 2, } class UniversalNotificationServiceErrorCode: INTERNAL_ERROR = 0 INVALID_KEY = 1 ILLEGAL_ARGUMENT = 2 TOO_MANY_REQUEST = 3 AUTHENTICATION_FAILED = 4 NO_WRITE_PERMISSION = 5 _VALUES_TO_NAMES = { 0: "INTERNAL_ERROR", 1: "INVALID_KEY", 2: "ILLEGAL_ARGUMENT", 3: "TOO_MANY_REQUEST", 4: "AUTHENTICATION_FAILED", 5: "NO_WRITE_PERMISSION", } _NAMES_TO_VALUES = { "INTERNAL_ERROR": 0, "INVALID_KEY": 1, "ILLEGAL_ARGUMENT": 2, "TOO_MANY_REQUEST": 3, "AUTHENTICATION_FAILED": 4, "NO_WRITE_PERMISSION": 5, } class UnregistrationReason: UNREGISTRATION_REASON_UNREGISTER_USER = 1 UNREGISTRATION_REASON_UNBIND_DEVICE = 2 _VALUES_TO_NAMES = { 1: "UNREGISTRATION_REASON_UNREGISTER_USER", 2: "UNREGISTRATION_REASON_UNBIND_DEVICE", } _NAMES_TO_VALUES = { "UNREGISTRATION_REASON_UNREGISTER_USER": 1, "UNREGISTRATION_REASON_UNBIND_DEVICE": 2, } class UserAgeType: OVER = 1 UNDER = 2 UNDEFINED = 3 _VALUES_TO_NAMES = { 1: "OVER", 2: "UNDER", 3: "UNDEFINED", } _NAMES_TO_VALUES = { "OVER": 1, "UNDER": 2, "UNDEFINED": 3, } class VerificationMethod: NO_AVAILABLE = 0 PIN_VIA_SMS = 1 CALLERID_INDIGO = 2 PIN_VIA_TTS = 4 SKIP = 10 _VALUES_TO_NAMES = { 0: "NO_AVAILABLE", 1: "PIN_VIA_SMS", 2: "CALLERID_INDIGO", 4: "PIN_VIA_TTS", 10: "SKIP", } _NAMES_TO_VALUES = { "NO_AVAILABLE": 0, "PIN_VIA_SMS": 1, "CALLERID_INDIGO": 2, "PIN_VIA_TTS": 4, "SKIP": 10, } class VerificationResult: FAILED = 0 OK_NOT_REGISTERED_YET = 1 OK_REGISTERED_WITH_SAME_DEVICE = 2 OK_REGISTERED_WITH_ANOTHER_DEVICE = 3 _VALUES_TO_NAMES = { 0: "FAILED", 1: "OK_NOT_REGISTERED_YET", 2: "OK_REGISTERED_WITH_SAME_DEVICE", 3: "OK_REGISTERED_WITH_ANOTHER_DEVICE", } _NAMES_TO_VALUES = { "FAILED": 0, "OK_NOT_REGISTERED_YET": 1, "OK_REGISTERED_WITH_SAME_DEVICE": 2, "OK_REGISTERED_WITH_ANOTHER_DEVICE": 3, } class WapInvitationType: REGISTRATION = 1 CHAT = 2 _VALUES_TO_NAMES = { 1: "REGISTRATION", 2: "CHAT", } _NAMES_TO_VALUES = { "REGISTRATION": 1, "CHAT": 2, } class AgeCheckDocomoResult: """ Attributes: - authUrl - userAgeType """ thrift_spec = ( None, # 0 (1, TType.STRING, 'authUrl', None, None, ), # 1 (2, TType.I32, 'userAgeType', None, None, ), # 2 ) def __init__(self, authUrl=None, userAgeType=None,): self.authUrl = authUrl self.userAgeType = userAgeType 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.authUrl = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.userAgeType = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('AgeCheckDocomoResult') if self.authUrl is not None: oprot.writeFieldBegin('authUrl', TType.STRING, 1) oprot.writeString(self.authUrl) oprot.writeFieldEnd() if self.userAgeType is not None: oprot.writeFieldBegin('userAgeType', TType.I32, 2) oprot.writeI32(self.userAgeType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.authUrl) value = (value * 31) ^ hash(self.userAgeType) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class AgeCheckRequestResult: """ Attributes: - authUrl - sessionId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'authUrl', None, None, ), # 1 (2, TType.STRING, 'sessionId', None, None, ), # 2 ) def __init__(self, authUrl=None, sessionId=None,): self.authUrl = authUrl self.sessionId = sessionId 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.authUrl = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.sessionId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('AgeCheckRequestResult') if self.authUrl is not None: oprot.writeFieldBegin('authUrl', TType.STRING, 1) oprot.writeString(self.authUrl) oprot.writeFieldEnd() if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 2) oprot.writeString(self.sessionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.authUrl) value = (value * 31) ^ hash(self.sessionId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Announcement: """ Attributes: - index - forceUpdate - title - text - createdTime - pictureUrl - thumbnailUrl """ thrift_spec = ( None, # 0 (1, TType.I32, 'index', None, None, ), # 1 None, # 2 None, # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.BOOL, 'forceUpdate', None, None, ), # 10 (11, TType.STRING, 'title', None, None, ), # 11 (12, TType.STRING, 'text', None, None, ), # 12 (13, TType.I64, 'createdTime', None, None, ), # 13 (14, TType.STRING, 'pictureUrl', None, None, ), # 14 (15, TType.STRING, 'thumbnailUrl', None, None, ), # 15 ) def __init__(self, index=None, forceUpdate=None, title=None, text=None, createdTime=None, pictureUrl=None, thumbnailUrl=None,): self.index = index self.forceUpdate = forceUpdate self.title = title self.text = text self.createdTime = createdTime self.pictureUrl = pictureUrl self.thumbnailUrl = thumbnailUrl 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.index = iprot.readI32() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.BOOL: self.forceUpdate = iprot.readBool() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: self.title = iprot.readString() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: self.text = iprot.readString() else: iprot.skip(ftype) elif fid == 13: if ftype == TType.I64: self.createdTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 14: if ftype == TType.STRING: self.pictureUrl = iprot.readString() else: iprot.skip(ftype) elif fid == 15: if ftype == TType.STRING: self.thumbnailUrl = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Announcement') if self.index is not None: oprot.writeFieldBegin('index', TType.I32, 1) oprot.writeI32(self.index) oprot.writeFieldEnd() if self.forceUpdate is not None: oprot.writeFieldBegin('forceUpdate', TType.BOOL, 10) oprot.writeBool(self.forceUpdate) oprot.writeFieldEnd() if self.title is not None: oprot.writeFieldBegin('title', TType.STRING, 11) oprot.writeString(self.title) oprot.writeFieldEnd() if self.text is not None: oprot.writeFieldBegin('text', TType.STRING, 12) oprot.writeString(self.text) oprot.writeFieldEnd() if self.createdTime is not None: oprot.writeFieldBegin('createdTime', TType.I64, 13) oprot.writeI64(self.createdTime) oprot.writeFieldEnd() if self.pictureUrl is not None: oprot.writeFieldBegin('pictureUrl', TType.STRING, 14) oprot.writeString(self.pictureUrl) oprot.writeFieldEnd() if self.thumbnailUrl is not None: oprot.writeFieldBegin('thumbnailUrl', TType.STRING, 15) oprot.writeString(self.thumbnailUrl) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.index) value = (value * 31) ^ hash(self.forceUpdate) value = (value * 31) ^ hash(self.title) value = (value * 31) ^ hash(self.text) value = (value * 31) ^ hash(self.createdTime) value = (value * 31) ^ hash(self.pictureUrl) value = (value * 31) ^ hash(self.thumbnailUrl) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ChannelProvider: """ Attributes: - name """ thrift_spec = ( None, # 0 (1, TType.STRING, 'name', None, None, ), # 1 ) def __init__(self, name=None,): self.name = name 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() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ChannelProvider') if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.name) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ChannelInfo: """ Attributes: - channelId - name - entryPageUrl - descriptionText - provider - publicType - iconImage - permissions - iconThumbnailImage - channelConfigurations """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 None, # 2 (3, TType.STRING, 'name', None, None, ), # 3 (4, TType.STRING, 'entryPageUrl', None, None, ), # 4 (5, TType.STRING, 'descriptionText', None, None, ), # 5 (6, TType.STRUCT, 'provider', (ChannelProvider, ChannelProvider.thrift_spec), None, ), # 6 (7, TType.I32, 'publicType', None, None, ), # 7 (8, TType.STRING, 'iconImage', None, None, ), # 8 (9, TType.LIST, 'permissions', (TType.STRING,None), None, ), # 9 None, # 10 (11, TType.STRING, 'iconThumbnailImage', None, None, ), # 11 (12, TType.LIST, 'channelConfigurations', (TType.I32,None), None, ), # 12 ) def __init__(self, channelId=None, name=None, entryPageUrl=None, descriptionText=None, provider=None, publicType=None, iconImage=None, permissions=None, iconThumbnailImage=None, channelConfigurations=None,): self.channelId = channelId self.name = name self.entryPageUrl = entryPageUrl self.descriptionText = descriptionText self.provider = provider self.publicType = publicType self.iconImage = iconImage self.permissions = permissions self.iconThumbnailImage = iconThumbnailImage self.channelConfigurations = channelConfigurations 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.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.name = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.entryPageUrl = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.descriptionText = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRUCT: self.provider = ChannelProvider() self.provider.read(iprot) else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I32: self.publicType = iprot.readI32() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.iconImage = iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.LIST: self.permissions = [] (_etype3, _size0) = iprot.readListBegin() for _i4 in xrange(_size0): _elem5 = iprot.readString() self.permissions.append(_elem5) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: self.iconThumbnailImage = iprot.readString() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.LIST: self.channelConfigurations = [] (_etype9, _size6) = iprot.readListBegin() for _i10 in xrange(_size6): _elem11 = iprot.readI32() self.channelConfigurations.append(_elem11) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ChannelInfo') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 3) oprot.writeString(self.name) oprot.writeFieldEnd() if self.entryPageUrl is not None: oprot.writeFieldBegin('entryPageUrl', TType.STRING, 4) oprot.writeString(self.entryPageUrl) oprot.writeFieldEnd() if self.descriptionText is not None: oprot.writeFieldBegin('descriptionText', TType.STRING, 5) oprot.writeString(self.descriptionText) oprot.writeFieldEnd() if self.provider is not None: oprot.writeFieldBegin('provider', TType.STRUCT, 6) self.provider.write(oprot) oprot.writeFieldEnd() if self.publicType is not None: oprot.writeFieldBegin('publicType', TType.I32, 7) oprot.writeI32(self.publicType) oprot.writeFieldEnd() if self.iconImage is not None: oprot.writeFieldBegin('iconImage', TType.STRING, 8) oprot.writeString(self.iconImage) oprot.writeFieldEnd() if self.permissions is not None: oprot.writeFieldBegin('permissions', TType.LIST, 9) oprot.writeListBegin(TType.STRING, len(self.permissions)) for iter12 in self.permissions: oprot.writeString(iter12) oprot.writeListEnd() oprot.writeFieldEnd() if self.iconThumbnailImage is not None: oprot.writeFieldBegin('iconThumbnailImage', TType.STRING, 11) oprot.writeString(self.iconThumbnailImage) oprot.writeFieldEnd() if self.channelConfigurations is not None: oprot.writeFieldBegin('channelConfigurations', TType.LIST, 12) oprot.writeListBegin(TType.I32, len(self.channelConfigurations)) for iter13 in self.channelConfigurations: oprot.writeI32(iter13) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.name) value = (value * 31) ^ hash(self.entryPageUrl) value = (value * 31) ^ hash(self.descriptionText) value = (value * 31) ^ hash(self.provider) value = (value * 31) ^ hash(self.publicType) value = (value * 31) ^ hash(self.iconImage) value = (value * 31) ^ hash(self.permissions) value = (value * 31) ^ hash(self.iconThumbnailImage) value = (value * 31) ^ hash(self.channelConfigurations) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ApprovedChannelInfo: """ Attributes: - channelInfo - approvedAt """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'channelInfo', (ChannelInfo, ChannelInfo.thrift_spec), None, ), # 1 (2, TType.I64, 'approvedAt', None, None, ), # 2 ) def __init__(self, channelInfo=None, approvedAt=None,): self.channelInfo = channelInfo self.approvedAt = approvedAt 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.STRUCT: self.channelInfo = ChannelInfo() self.channelInfo.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.approvedAt = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ApprovedChannelInfo') if self.channelInfo is not None: oprot.writeFieldBegin('channelInfo', TType.STRUCT, 1) self.channelInfo.write(oprot) oprot.writeFieldEnd() if self.approvedAt is not None: oprot.writeFieldBegin('approvedAt', TType.I64, 2) oprot.writeI64(self.approvedAt) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelInfo) value = (value * 31) ^ hash(self.approvedAt) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ApprovedChannelInfos: """ Attributes: - approvedChannelInfos - revision """ thrift_spec = ( None, # 0 (1, TType.LIST, 'approvedChannelInfos', (TType.STRUCT,(ApprovedChannelInfo, ApprovedChannelInfo.thrift_spec)), None, ), # 1 (2, TType.I64, 'revision', None, None, ), # 2 ) def __init__(self, approvedChannelInfos=None, revision=None,): self.approvedChannelInfos = approvedChannelInfos self.revision = revision 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.approvedChannelInfos = [] (_etype17, _size14) = iprot.readListBegin() for _i18 in xrange(_size14): _elem19 = ApprovedChannelInfo() _elem19.read(iprot) self.approvedChannelInfos.append(_elem19) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.revision = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ApprovedChannelInfos') if self.approvedChannelInfos is not None: oprot.writeFieldBegin('approvedChannelInfos', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.approvedChannelInfos)) for iter20 in self.approvedChannelInfos: iter20.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.revision is not None: oprot.writeFieldBegin('revision', TType.I64, 2) oprot.writeI64(self.revision) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.approvedChannelInfos) value = (value * 31) ^ hash(self.revision) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class AuthQrcode: """ Attributes: - qrcode - verifier """ thrift_spec = ( None, # 0 (1, TType.STRING, 'qrcode', None, None, ), # 1 (2, TType.STRING, 'verifier', None, None, ), # 2 ) def __init__(self, qrcode=None, verifier=None,): self.qrcode = qrcode self.verifier = verifier 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.qrcode = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('AuthQrcode') if self.qrcode is not None: oprot.writeFieldBegin('qrcode', TType.STRING, 1) oprot.writeString(self.qrcode) oprot.writeFieldEnd() if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 2) oprot.writeString(self.verifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.qrcode) value = (value * 31) ^ hash(self.verifier) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class BuddyBanner: """ Attributes: - buddyBannerLinkType - buddyBannerLink - buddyBannerImageUrl """ thrift_spec = ( None, # 0 (1, TType.I32, 'buddyBannerLinkType', None, None, ), # 1 (2, TType.STRING, 'buddyBannerLink', None, None, ), # 2 (3, TType.STRING, 'buddyBannerImageUrl', None, None, ), # 3 ) def __init__(self, buddyBannerLinkType=None, buddyBannerLink=None, buddyBannerImageUrl=None,): self.buddyBannerLinkType = buddyBannerLinkType self.buddyBannerLink = buddyBannerLink self.buddyBannerImageUrl = buddyBannerImageUrl 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.buddyBannerLinkType = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.buddyBannerLink = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.buddyBannerImageUrl = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('BuddyBanner') if self.buddyBannerLinkType is not None: oprot.writeFieldBegin('buddyBannerLinkType', TType.I32, 1) oprot.writeI32(self.buddyBannerLinkType) oprot.writeFieldEnd() if self.buddyBannerLink is not None: oprot.writeFieldBegin('buddyBannerLink', TType.STRING, 2) oprot.writeString(self.buddyBannerLink) oprot.writeFieldEnd() if self.buddyBannerImageUrl is not None: oprot.writeFieldBegin('buddyBannerImageUrl', TType.STRING, 3) oprot.writeString(self.buddyBannerImageUrl) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyBannerLinkType) value = (value * 31) ^ hash(self.buddyBannerLink) value = (value * 31) ^ hash(self.buddyBannerImageUrl) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class BuddyDetail: """ Attributes: - mid - memberCount - onAir - businessAccount - addable - acceptableContentTypes - capableMyhome """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 (2, TType.I64, 'memberCount', None, None, ), # 2 (3, TType.BOOL, 'onAir', None, None, ), # 3 (4, TType.BOOL, 'businessAccount', None, None, ), # 4 (5, TType.BOOL, 'addable', None, None, ), # 5 (6, TType.SET, 'acceptableContentTypes', (TType.I32,None), None, ), # 6 (7, TType.BOOL, 'capableMyhome', None, None, ), # 7 ) def __init__(self, mid=None, memberCount=None, onAir=None, businessAccount=None, addable=None, acceptableContentTypes=None, capableMyhome=None,): self.mid = mid self.memberCount = memberCount self.onAir = onAir self.businessAccount = businessAccount self.addable = addable self.acceptableContentTypes = acceptableContentTypes self.capableMyhome = capableMyhome 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.memberCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.BOOL: self.onAir = iprot.readBool() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: self.businessAccount = iprot.readBool() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: self.addable = iprot.readBool() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.SET: self.acceptableContentTypes = set() (_etype24, _size21) = iprot.readSetBegin() for _i25 in xrange(_size21): _elem26 = iprot.readI32() self.acceptableContentTypes.add(_elem26) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.BOOL: self.capableMyhome = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('BuddyDetail') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.memberCount is not None: oprot.writeFieldBegin('memberCount', TType.I64, 2) oprot.writeI64(self.memberCount) oprot.writeFieldEnd() if self.onAir is not None: oprot.writeFieldBegin('onAir', TType.BOOL, 3) oprot.writeBool(self.onAir) oprot.writeFieldEnd() if self.businessAccount is not None: oprot.writeFieldBegin('businessAccount', TType.BOOL, 4) oprot.writeBool(self.businessAccount) oprot.writeFieldEnd() if self.addable is not None: oprot.writeFieldBegin('addable', TType.BOOL, 5) oprot.writeBool(self.addable) oprot.writeFieldEnd() if self.acceptableContentTypes is not None: oprot.writeFieldBegin('acceptableContentTypes', TType.SET, 6) oprot.writeSetBegin(TType.I32, len(self.acceptableContentTypes)) for iter27 in self.acceptableContentTypes: oprot.writeI32(iter27) oprot.writeSetEnd() oprot.writeFieldEnd() if self.capableMyhome is not None: oprot.writeFieldBegin('capableMyhome', TType.BOOL, 7) oprot.writeBool(self.capableMyhome) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.memberCount) value = (value * 31) ^ hash(self.onAir) value = (value * 31) ^ hash(self.businessAccount) value = (value * 31) ^ hash(self.addable) value = (value * 31) ^ hash(self.acceptableContentTypes) value = (value * 31) ^ hash(self.capableMyhome) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Contact: """ Attributes: - mid - createdTime - type - status - relation - displayName - phoneticName - pictureStatus - thumbnailUrl - statusMessage - displayNameOverridden - favoriteTime - capableVoiceCall - capableVideoCall - capableMyhome - capableBuddy - attributes - settings - picturePath """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 (2, TType.I64, 'createdTime', None, None, ), # 2 None, # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.I32, 'type', None, None, ), # 10 (11, TType.I32, 'status', None, None, ), # 11 None, # 12 None, # 13 None, # 14 None, # 15 None, # 16 None, # 17 None, # 18 None, # 19 None, # 20 (21, TType.I32, 'relation', None, None, ), # 21 (22, TType.STRING, 'displayName', None, None, ), # 22 (23, TType.STRING, 'phoneticName', None, None, ), # 23 (24, TType.STRING, 'pictureStatus', None, None, ), # 24 (25, TType.STRING, 'thumbnailUrl', None, None, ), # 25 (26, TType.STRING, 'statusMessage', None, None, ), # 26 (27, TType.STRING, 'displayNameOverridden', None, None, ), # 27 (28, TType.I64, 'favoriteTime', None, None, ), # 28 None, # 29 None, # 30 (31, TType.BOOL, 'capableVoiceCall', None, None, ), # 31 (32, TType.BOOL, 'capableVideoCall', None, None, ), # 32 (33, TType.BOOL, 'capableMyhome', None, None, ), # 33 (34, TType.BOOL, 'capableBuddy', None, None, ), # 34 (35, TType.I32, 'attributes', None, None, ), # 35 (36, TType.I64, 'settings', None, None, ), # 36 (37, TType.STRING, 'picturePath', None, None, ), # 37 ) def __init__(self, mid=None, createdTime=None, type=None, status=None, relation=None, displayName=None, phoneticName=None, pictureStatus=None, thumbnailUrl=None, statusMessage=None, displayNameOverridden=None, favoriteTime=None, capableVoiceCall=None, capableVideoCall=None, capableMyhome=None, capableBuddy=None, attributes=None, settings=None, picturePath=None,): self.mid = mid self.createdTime = createdTime self.type = type self.status = status self.relation = relation self.displayName = displayName self.phoneticName = phoneticName self.pictureStatus = pictureStatus self.thumbnailUrl = thumbnailUrl self.statusMessage = statusMessage self.displayNameOverridden = displayNameOverridden self.favoriteTime = favoriteTime self.capableVoiceCall = capableVoiceCall self.capableVideoCall = capableVideoCall self.capableMyhome = capableMyhome self.capableBuddy = capableBuddy self.attributes = attributes self.settings = settings self.picturePath = picturePath 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.createdTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.I32: self.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.I32: self.status = iprot.readI32() else: iprot.skip(ftype) elif fid == 21: if ftype == TType.I32: self.relation = iprot.readI32() else: iprot.skip(ftype) elif fid == 22: if ftype == TType.STRING: self.displayName = iprot.readString() else: iprot.skip(ftype) elif fid == 23: if ftype == TType.STRING: self.phoneticName = iprot.readString() else: iprot.skip(ftype) elif fid == 24: if ftype == TType.STRING: self.pictureStatus = iprot.readString() else: iprot.skip(ftype) elif fid == 25: if ftype == TType.STRING: self.thumbnailUrl = iprot.readString() else: iprot.skip(ftype) elif fid == 26: if ftype == TType.STRING: self.statusMessage = iprot.readString() else: iprot.skip(ftype) elif fid == 27: if ftype == TType.STRING: self.displayNameOverridden = iprot.readString() else: iprot.skip(ftype) elif fid == 28: if ftype == TType.I64: self.favoriteTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 31: if ftype == TType.BOOL: self.capableVoiceCall = iprot.readBool() else: iprot.skip(ftype) elif fid == 32: if ftype == TType.BOOL: self.capableVideoCall = iprot.readBool() else: iprot.skip(ftype) elif fid == 33: if ftype == TType.BOOL: self.capableMyhome = iprot.readBool() else: iprot.skip(ftype) elif fid == 34: if ftype == TType.BOOL: self.capableBuddy = iprot.readBool() else: iprot.skip(ftype) elif fid == 35: if ftype == TType.I32: self.attributes = iprot.readI32() else: iprot.skip(ftype) elif fid == 36: if ftype == TType.I64: self.settings = iprot.readI64() else: iprot.skip(ftype) elif fid == 37: if ftype == TType.STRING: self.picturePath = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Contact') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.createdTime is not None: oprot.writeFieldBegin('createdTime', TType.I64, 2) oprot.writeI64(self.createdTime) oprot.writeFieldEnd() if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 10) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.status is not None: oprot.writeFieldBegin('status', TType.I32, 11) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.relation is not None: oprot.writeFieldBegin('relation', TType.I32, 21) oprot.writeI32(self.relation) oprot.writeFieldEnd() if self.displayName is not None: oprot.writeFieldBegin('displayName', TType.STRING, 22) oprot.writeString(self.displayName) oprot.writeFieldEnd() if self.phoneticName is not None: oprot.writeFieldBegin('phoneticName', TType.STRING, 23) oprot.writeString(self.phoneticName) oprot.writeFieldEnd() if self.pictureStatus is not None: oprot.writeFieldBegin('pictureStatus', TType.STRING, 24) oprot.writeString(self.pictureStatus) oprot.writeFieldEnd() if self.thumbnailUrl is not None: oprot.writeFieldBegin('thumbnailUrl', TType.STRING, 25) oprot.writeString(self.thumbnailUrl) oprot.writeFieldEnd() if self.statusMessage is not None: oprot.writeFieldBegin('statusMessage', TType.STRING, 26) oprot.writeString(self.statusMessage) oprot.writeFieldEnd() if self.displayNameOverridden is not None: oprot.writeFieldBegin('displayNameOverridden', TType.STRING, 27) oprot.writeString(self.displayNameOverridden) oprot.writeFieldEnd() if self.favoriteTime is not None: oprot.writeFieldBegin('favoriteTime', TType.I64, 28) oprot.writeI64(self.favoriteTime) oprot.writeFieldEnd() if self.capableVoiceCall is not None: oprot.writeFieldBegin('capableVoiceCall', TType.BOOL, 31) oprot.writeBool(self.capableVoiceCall) oprot.writeFieldEnd() if self.capableVideoCall is not None: oprot.writeFieldBegin('capableVideoCall', TType.BOOL, 32) oprot.writeBool(self.capableVideoCall) oprot.writeFieldEnd() if self.capableMyhome is not None: oprot.writeFieldBegin('capableMyhome', TType.BOOL, 33) oprot.writeBool(self.capableMyhome) oprot.writeFieldEnd() if self.capableBuddy is not None: oprot.writeFieldBegin('capableBuddy', TType.BOOL, 34) oprot.writeBool(self.capableBuddy) oprot.writeFieldEnd() if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.I32, 35) oprot.writeI32(self.attributes) oprot.writeFieldEnd() if self.settings is not None: oprot.writeFieldBegin('settings', TType.I64, 36) oprot.writeI64(self.settings) oprot.writeFieldEnd() if self.picturePath is not None: oprot.writeFieldBegin('picturePath', TType.STRING, 37) oprot.writeString(self.picturePath) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.createdTime) value = (value * 31) ^ hash(self.type) value = (value * 31) ^ hash(self.status) value = (value * 31) ^ hash(self.relation) value = (value * 31) ^ hash(self.displayName) value = (value * 31) ^ hash(self.phoneticName) value = (value * 31) ^ hash(self.pictureStatus) value = (value * 31) ^ hash(self.thumbnailUrl) value = (value * 31) ^ hash(self.statusMessage) value = (value * 31) ^ hash(self.displayNameOverridden) value = (value * 31) ^ hash(self.favoriteTime) value = (value * 31) ^ hash(self.capableVoiceCall) value = (value * 31) ^ hash(self.capableVideoCall) value = (value * 31) ^ hash(self.capableMyhome) value = (value * 31) ^ hash(self.capableBuddy) value = (value * 31) ^ hash(self.attributes) value = (value * 31) ^ hash(self.settings) value = (value * 31) ^ hash(self.picturePath) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class BuddyList: """ Attributes: - classification - displayName - totalBuddyCount - popularContacts """ thrift_spec = ( None, # 0 (1, TType.STRING, 'classification', None, None, ), # 1 (2, TType.STRING, 'displayName', None, None, ), # 2 (3, TType.I32, 'totalBuddyCount', None, None, ), # 3 (4, TType.LIST, 'popularContacts', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 4 ) def __init__(self, classification=None, displayName=None, totalBuddyCount=None, popularContacts=None,): self.classification = classification self.displayName = displayName self.totalBuddyCount = totalBuddyCount self.popularContacts = popularContacts 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.classification = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.displayName = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.totalBuddyCount = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.popularContacts = [] (_etype31, _size28) = iprot.readListBegin() for _i32 in xrange(_size28): _elem33 = Contact() _elem33.read(iprot) self.popularContacts.append(_elem33) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('BuddyList') if self.classification is not None: oprot.writeFieldBegin('classification', TType.STRING, 1) oprot.writeString(self.classification) oprot.writeFieldEnd() if self.displayName is not None: oprot.writeFieldBegin('displayName', TType.STRING, 2) oprot.writeString(self.displayName) oprot.writeFieldEnd() if self.totalBuddyCount is not None: oprot.writeFieldBegin('totalBuddyCount', TType.I32, 3) oprot.writeI32(self.totalBuddyCount) oprot.writeFieldEnd() if self.popularContacts is not None: oprot.writeFieldBegin('popularContacts', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.popularContacts)) for iter34 in self.popularContacts: iter34.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.classification) value = (value * 31) ^ hash(self.displayName) value = (value * 31) ^ hash(self.totalBuddyCount) value = (value * 31) ^ hash(self.popularContacts) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Location: """ Attributes: - title - address - latitude - longitude - phone """ thrift_spec = ( None, # 0 (1, TType.STRING, 'title', None, None, ), # 1 (2, TType.STRING, 'address', None, None, ), # 2 (3, TType.DOUBLE, 'latitude', None, None, ), # 3 (4, TType.DOUBLE, 'longitude', None, None, ), # 4 (5, TType.STRING, 'phone', None, None, ), # 5 ) def __init__(self, title=None, address=None, latitude=None, longitude=None, phone=None,): self.title = title self.address = address self.latitude = latitude self.longitude = longitude self.phone = phone 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.title = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.address = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.DOUBLE: self.latitude = iprot.readDouble() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.DOUBLE: self.longitude = iprot.readDouble() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.phone = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Location') if self.title is not None: oprot.writeFieldBegin('title', TType.STRING, 1) oprot.writeString(self.title) oprot.writeFieldEnd() if self.address is not None: oprot.writeFieldBegin('address', TType.STRING, 2) oprot.writeString(self.address) oprot.writeFieldEnd() if self.latitude is not None: oprot.writeFieldBegin('latitude', TType.DOUBLE, 3) oprot.writeDouble(self.latitude) oprot.writeFieldEnd() if self.longitude is not None: oprot.writeFieldBegin('longitude', TType.DOUBLE, 4) oprot.writeDouble(self.longitude) oprot.writeFieldEnd() if self.phone is not None: oprot.writeFieldBegin('phone', TType.STRING, 5) oprot.writeString(self.phone) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.title) value = (value * 31) ^ hash(self.address) value = (value * 31) ^ hash(self.latitude) value = (value * 31) ^ hash(self.longitude) value = (value * 31) ^ hash(self.phone) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class BuddyMessageRequest: """ Attributes: - contentType - text - location - content - contentMetadata """ thrift_spec = ( None, # 0 (1, TType.I32, 'contentType', None, None, ), # 1 (2, TType.STRING, 'text', None, None, ), # 2 (3, TType.STRUCT, 'location', (Location, Location.thrift_spec), None, ), # 3 (4, TType.STRING, 'content', None, None, ), # 4 (5, TType.MAP, 'contentMetadata', (TType.STRING,None,TType.STRING,None), None, ), # 5 ) def __init__(self, contentType=None, text=None, location=None, content=None, contentMetadata=None,): self.contentType = contentType self.text = text self.location = location self.content = content self.contentMetadata = contentMetadata 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.contentType = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.text = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: self.location = Location() self.location.read(iprot) else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.content = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.MAP: self.contentMetadata = {} (_ktype36, _vtype37, _size35 ) = iprot.readMapBegin() for _i39 in xrange(_size35): _key40 = iprot.readString() _val41 = iprot.readString() self.contentMetadata[_key40] = _val41 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('BuddyMessageRequest') if self.contentType is not None: oprot.writeFieldBegin('contentType', TType.I32, 1) oprot.writeI32(self.contentType) oprot.writeFieldEnd() if self.text is not None: oprot.writeFieldBegin('text', TType.STRING, 2) oprot.writeString(self.text) oprot.writeFieldEnd() if self.location is not None: oprot.writeFieldBegin('location', TType.STRUCT, 3) self.location.write(oprot) oprot.writeFieldEnd() if self.content is not None: oprot.writeFieldBegin('content', TType.STRING, 4) oprot.writeString(self.content) oprot.writeFieldEnd() if self.contentMetadata is not None: oprot.writeFieldBegin('contentMetadata', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.contentMetadata)) for kiter42,viter43 in self.contentMetadata.items(): oprot.writeString(kiter42) oprot.writeString(viter43) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.contentType) value = (value * 31) ^ hash(self.text) value = (value * 31) ^ hash(self.location) value = (value * 31) ^ hash(self.content) value = (value * 31) ^ hash(self.contentMetadata) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class BuddyOnAirUrls: """ Attributes: - hls - smoothStreaming """ thrift_spec = ( None, # 0 (1, TType.MAP, 'hls', (TType.STRING,None,TType.STRING,None), None, ), # 1 (2, TType.MAP, 'smoothStreaming', (TType.STRING,None,TType.STRING,None), None, ), # 2 ) def __init__(self, hls=None, smoothStreaming=None,): self.hls = hls self.smoothStreaming = smoothStreaming 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.MAP: self.hls = {} (_ktype45, _vtype46, _size44 ) = iprot.readMapBegin() for _i48 in xrange(_size44): _key49 = iprot.readString() _val50 = iprot.readString() self.hls[_key49] = _val50 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.smoothStreaming = {} (_ktype52, _vtype53, _size51 ) = iprot.readMapBegin() for _i55 in xrange(_size51): _key56 = iprot.readString() _val57 = iprot.readString() self.smoothStreaming[_key56] = _val57 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('BuddyOnAirUrls') if self.hls is not None: oprot.writeFieldBegin('hls', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.hls)) for kiter58,viter59 in self.hls.items(): oprot.writeString(kiter58) oprot.writeString(viter59) oprot.writeMapEnd() oprot.writeFieldEnd() if self.smoothStreaming is not None: oprot.writeFieldBegin('smoothStreaming', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.smoothStreaming)) for kiter60,viter61 in self.smoothStreaming.items(): oprot.writeString(kiter60) oprot.writeString(viter61) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.hls) value = (value * 31) ^ hash(self.smoothStreaming) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class BuddyOnAir: """ Attributes: - mid - freshnessLifetime - onAirId - onAir - text - viewerCount - targetCount - onAirType - onAirUrls """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 None, # 2 (3, TType.I64, 'freshnessLifetime', None, None, ), # 3 (4, TType.STRING, 'onAirId', None, None, ), # 4 (5, TType.BOOL, 'onAir', None, None, ), # 5 None, # 6 None, # 7 None, # 8 None, # 9 None, # 10 (11, TType.STRING, 'text', None, None, ), # 11 (12, TType.I64, 'viewerCount', None, None, ), # 12 (13, TType.I64, 'targetCount', None, None, ), # 13 None, # 14 None, # 15 None, # 16 None, # 17 None, # 18 None, # 19 None, # 20 None, # 21 None, # 22 None, # 23 None, # 24 None, # 25 None, # 26 None, # 27 None, # 28 None, # 29 None, # 30 (31, TType.I32, 'onAirType', None, None, ), # 31 (32, TType.STRUCT, 'onAirUrls', (BuddyOnAirUrls, BuddyOnAirUrls.thrift_spec), None, ), # 32 ) def __init__(self, mid=None, freshnessLifetime=None, onAirId=None, onAir=None, text=None, viewerCount=None, targetCount=None, onAirType=None, onAirUrls=None,): self.mid = mid self.freshnessLifetime = freshnessLifetime self.onAirId = onAirId self.onAir = onAir self.text = text self.viewerCount = viewerCount self.targetCount = targetCount self.onAirType = onAirType self.onAirUrls = onAirUrls 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: self.freshnessLifetime = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.onAirId = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: self.onAir = iprot.readBool() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: self.text = iprot.readString() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.I64: self.viewerCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 13: if ftype == TType.I64: self.targetCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 31: if ftype == TType.I32: self.onAirType = iprot.readI32() else: iprot.skip(ftype) elif fid == 32: if ftype == TType.STRUCT: self.onAirUrls = BuddyOnAirUrls() self.onAirUrls.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('BuddyOnAir') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.freshnessLifetime is not None: oprot.writeFieldBegin('freshnessLifetime', TType.I64, 3) oprot.writeI64(self.freshnessLifetime) oprot.writeFieldEnd() if self.onAirId is not None: oprot.writeFieldBegin('onAirId', TType.STRING, 4) oprot.writeString(self.onAirId) oprot.writeFieldEnd() if self.onAir is not None: oprot.writeFieldBegin('onAir', TType.BOOL, 5) oprot.writeBool(self.onAir) oprot.writeFieldEnd() if self.text is not None: oprot.writeFieldBegin('text', TType.STRING, 11) oprot.writeString(self.text) oprot.writeFieldEnd() if self.viewerCount is not None: oprot.writeFieldBegin('viewerCount', TType.I64, 12) oprot.writeI64(self.viewerCount) oprot.writeFieldEnd() if self.targetCount is not None: oprot.writeFieldBegin('targetCount', TType.I64, 13) oprot.writeI64(self.targetCount) oprot.writeFieldEnd() if self.onAirType is not None: oprot.writeFieldBegin('onAirType', TType.I32, 31) oprot.writeI32(self.onAirType) oprot.writeFieldEnd() if self.onAirUrls is not None: oprot.writeFieldBegin('onAirUrls', TType.STRUCT, 32) self.onAirUrls.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.freshnessLifetime) value = (value * 31) ^ hash(self.onAirId) value = (value * 31) ^ hash(self.onAir) value = (value * 31) ^ hash(self.text) value = (value * 31) ^ hash(self.viewerCount) value = (value * 31) ^ hash(self.targetCount) value = (value * 31) ^ hash(self.onAirType) value = (value * 31) ^ hash(self.onAirUrls) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class BuddyProfile: """ Attributes: - buddyId - mid - searchId - displayName - statusMessage - contactCount """ thrift_spec = ( None, # 0 (1, TType.STRING, 'buddyId', None, None, ), # 1 (2, TType.STRING, 'mid', None, None, ), # 2 (3, TType.STRING, 'searchId', None, None, ), # 3 (4, TType.STRING, 'displayName', None, None, ), # 4 (5, TType.STRING, 'statusMessage', None, None, ), # 5 None, # 6 None, # 7 None, # 8 None, # 9 None, # 10 (11, TType.I64, 'contactCount', None, None, ), # 11 ) def __init__(self, buddyId=None, mid=None, searchId=None, displayName=None, statusMessage=None, contactCount=None,): self.buddyId = buddyId self.mid = mid self.searchId = searchId self.displayName = displayName self.statusMessage = statusMessage self.contactCount = contactCount 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.buddyId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.searchId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.displayName = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.statusMessage = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.I64: self.contactCount = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('BuddyProfile') if self.buddyId is not None: oprot.writeFieldBegin('buddyId', TType.STRING, 1) oprot.writeString(self.buddyId) oprot.writeFieldEnd() if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 2) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.searchId is not None: oprot.writeFieldBegin('searchId', TType.STRING, 3) oprot.writeString(self.searchId) oprot.writeFieldEnd() if self.displayName is not None: oprot.writeFieldBegin('displayName', TType.STRING, 4) oprot.writeString(self.displayName) oprot.writeFieldEnd() if self.statusMessage is not None: oprot.writeFieldBegin('statusMessage', TType.STRING, 5) oprot.writeString(self.statusMessage) oprot.writeFieldEnd() if self.contactCount is not None: oprot.writeFieldBegin('contactCount', TType.I64, 11) oprot.writeI64(self.contactCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.buddyId) value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.searchId) value = (value * 31) ^ hash(self.displayName) value = (value * 31) ^ hash(self.statusMessage) value = (value * 31) ^ hash(self.contactCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class BuddySearchResult: """ Attributes: - mid - displayName - pictureStatus - picturePath - statusMessage - businessAccount """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 (2, TType.STRING, 'displayName', None, None, ), # 2 (3, TType.STRING, 'pictureStatus', None, None, ), # 3 (4, TType.STRING, 'picturePath', None, None, ), # 4 (5, TType.STRING, 'statusMessage', None, None, ), # 5 (6, TType.BOOL, 'businessAccount', None, None, ), # 6 ) def __init__(self, mid=None, displayName=None, pictureStatus=None, picturePath=None, statusMessage=None, businessAccount=None,): self.mid = mid self.displayName = displayName self.pictureStatus = pictureStatus self.picturePath = picturePath self.statusMessage = statusMessage self.businessAccount = businessAccount 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.displayName = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.pictureStatus = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.picturePath = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.statusMessage = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.BOOL: self.businessAccount = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('BuddySearchResult') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.displayName is not None: oprot.writeFieldBegin('displayName', TType.STRING, 2) oprot.writeString(self.displayName) oprot.writeFieldEnd() if self.pictureStatus is not None: oprot.writeFieldBegin('pictureStatus', TType.STRING, 3) oprot.writeString(self.pictureStatus) oprot.writeFieldEnd() if self.picturePath is not None: oprot.writeFieldBegin('picturePath', TType.STRING, 4) oprot.writeString(self.picturePath) oprot.writeFieldEnd() if self.statusMessage is not None: oprot.writeFieldBegin('statusMessage', TType.STRING, 5) oprot.writeString(self.statusMessage) oprot.writeFieldEnd() if self.businessAccount is not None: oprot.writeFieldBegin('businessAccount', TType.BOOL, 6) oprot.writeBool(self.businessAccount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.displayName) value = (value * 31) ^ hash(self.pictureStatus) value = (value * 31) ^ hash(self.picturePath) value = (value * 31) ^ hash(self.statusMessage) value = (value * 31) ^ hash(self.businessAccount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ChannelDomain: """ Attributes: - host - removed """ thrift_spec = ( None, # 0 (1, TType.STRING, 'host', None, None, ), # 1 (2, TType.BOOL, 'removed', None, None, ), # 2 ) def __init__(self, host=None, removed=None,): self.host = host self.removed = removed 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.host = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: self.removed = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ChannelDomain') if self.host is not None: oprot.writeFieldBegin('host', TType.STRING, 1) oprot.writeString(self.host) oprot.writeFieldEnd() if self.removed is not None: oprot.writeFieldBegin('removed', TType.BOOL, 2) oprot.writeBool(self.removed) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.host) value = (value * 31) ^ hash(self.removed) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ChannelDomains: """ Attributes: - channelDomains - revision """ thrift_spec = ( None, # 0 (1, TType.LIST, 'channelDomains', (TType.STRUCT,(ChannelDomain, ChannelDomain.thrift_spec)), None, ), # 1 (2, TType.I64, 'revision', None, None, ), # 2 ) def __init__(self, channelDomains=None, revision=None,): self.channelDomains = channelDomains self.revision = revision 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.channelDomains = [] (_etype65, _size62) = iprot.readListBegin() for _i66 in xrange(_size62): _elem67 = ChannelDomain() _elem67.read(iprot) self.channelDomains.append(_elem67) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.revision = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ChannelDomains') if self.channelDomains is not None: oprot.writeFieldBegin('channelDomains', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.channelDomains)) for iter68 in self.channelDomains: iter68.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.revision is not None: oprot.writeFieldBegin('revision', TType.I64, 2) oprot.writeI64(self.revision) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelDomains) value = (value * 31) ^ hash(self.revision) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ChannelException(TException): """ Attributes: - code - reason - parameterMap """ thrift_spec = ( None, # 0 (1, TType.I32, 'code', None, None, ), # 1 (2, TType.STRING, 'reason', None, None, ), # 2 (3, TType.MAP, 'parameterMap', (TType.STRING,None,TType.STRING,None), None, ), # 3 ) def __init__(self, code=None, reason=None, parameterMap=None,): self.code = code self.reason = reason self.parameterMap = parameterMap 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.code = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.reason = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.parameterMap = {} (_ktype70, _vtype71, _size69 ) = iprot.readMapBegin() for _i73 in xrange(_size69): _key74 = iprot.readString() _val75 = iprot.readString() self.parameterMap[_key74] = _val75 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ChannelException') if self.code is not None: oprot.writeFieldBegin('code', TType.I32, 1) oprot.writeI32(self.code) oprot.writeFieldEnd() if self.reason is not None: oprot.writeFieldBegin('reason', TType.STRING, 2) oprot.writeString(self.reason) oprot.writeFieldEnd() if self.parameterMap is not None: oprot.writeFieldBegin('parameterMap', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameterMap)) for kiter76,viter77 in self.parameterMap.items(): oprot.writeString(kiter76) oprot.writeString(viter77) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __str__(self): return repr(self) def __hash__(self): value = 17 value = (value * 31) ^ hash(self.code) value = (value * 31) ^ hash(self.reason) value = (value * 31) ^ hash(self.parameterMap) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ChannelInfos: """ Attributes: - channelInfos - revision """ thrift_spec = ( None, # 0 (1, TType.LIST, 'channelInfos', (TType.STRUCT,(ChannelInfo, ChannelInfo.thrift_spec)), None, ), # 1 (2, TType.I64, 'revision', None, None, ), # 2 ) def __init__(self, channelInfos=None, revision=None,): self.channelInfos = channelInfos self.revision = revision 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.channelInfos = [] (_etype81, _size78) = iprot.readListBegin() for _i82 in xrange(_size78): _elem83 = ChannelInfo() _elem83.read(iprot) self.channelInfos.append(_elem83) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.revision = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ChannelInfos') if self.channelInfos is not None: oprot.writeFieldBegin('channelInfos', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.channelInfos)) for iter84 in self.channelInfos: iter84.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.revision is not None: oprot.writeFieldBegin('revision', TType.I64, 2) oprot.writeI64(self.revision) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelInfos) value = (value * 31) ^ hash(self.revision) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ChannelNotificationSetting: """ Attributes: - channelId - name - notificationReceivable - messageReceivable - showDefault """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 (2, TType.STRING, 'name', None, None, ), # 2 (3, TType.BOOL, 'notificationReceivable', None, None, ), # 3 (4, TType.BOOL, 'messageReceivable', None, None, ), # 4 (5, TType.BOOL, 'showDefault', None, None, ), # 5 ) def __init__(self, channelId=None, name=None, notificationReceivable=None, messageReceivable=None, showDefault=None,): self.channelId = channelId self.name = name self.notificationReceivable = notificationReceivable self.messageReceivable = messageReceivable self.showDefault = showDefault 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.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.name = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.BOOL: self.notificationReceivable = iprot.readBool() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: self.messageReceivable = iprot.readBool() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: self.showDefault = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ChannelNotificationSetting') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 2) oprot.writeString(self.name) oprot.writeFieldEnd() if self.notificationReceivable is not None: oprot.writeFieldBegin('notificationReceivable', TType.BOOL, 3) oprot.writeBool(self.notificationReceivable) oprot.writeFieldEnd() if self.messageReceivable is not None: oprot.writeFieldBegin('messageReceivable', TType.BOOL, 4) oprot.writeBool(self.messageReceivable) oprot.writeFieldEnd() if self.showDefault is not None: oprot.writeFieldBegin('showDefault', TType.BOOL, 5) oprot.writeBool(self.showDefault) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.name) value = (value * 31) ^ hash(self.notificationReceivable) value = (value * 31) ^ hash(self.messageReceivable) value = (value * 31) ^ hash(self.showDefault) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ChannelSyncDatas: """ Attributes: - channelInfos - channelDomains - revision - expires """ thrift_spec = ( None, # 0 (1, TType.LIST, 'channelInfos', (TType.STRUCT,(ChannelInfo, ChannelInfo.thrift_spec)), None, ), # 1 (2, TType.LIST, 'channelDomains', (TType.STRUCT,(ChannelDomain, ChannelDomain.thrift_spec)), None, ), # 2 (3, TType.I64, 'revision', None, None, ), # 3 (4, TType.I64, 'expires', None, None, ), # 4 ) def __init__(self, channelInfos=None, channelDomains=None, revision=None, expires=None,): self.channelInfos = channelInfos self.channelDomains = channelDomains self.revision = revision self.expires = expires 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.channelInfos = [] (_etype88, _size85) = iprot.readListBegin() for _i89 in xrange(_size85): _elem90 = ChannelInfo() _elem90.read(iprot) self.channelInfos.append(_elem90) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.channelDomains = [] (_etype94, _size91) = iprot.readListBegin() for _i95 in xrange(_size91): _elem96 = ChannelDomain() _elem96.read(iprot) self.channelDomains.append(_elem96) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: self.revision = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I64: self.expires = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ChannelSyncDatas') if self.channelInfos is not None: oprot.writeFieldBegin('channelInfos', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.channelInfos)) for iter97 in self.channelInfos: iter97.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.channelDomains is not None: oprot.writeFieldBegin('channelDomains', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.channelDomains)) for iter98 in self.channelDomains: iter98.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.revision is not None: oprot.writeFieldBegin('revision', TType.I64, 3) oprot.writeI64(self.revision) oprot.writeFieldEnd() if self.expires is not None: oprot.writeFieldBegin('expires', TType.I64, 4) oprot.writeI64(self.expires) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelInfos) value = (value * 31) ^ hash(self.channelDomains) value = (value * 31) ^ hash(self.revision) value = (value * 31) ^ hash(self.expires) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ChannelToken: """ Attributes: - token - obsToken - expiration - refreshToken - channelAccessToken """ thrift_spec = ( None, # 0 (1, TType.STRING, 'token', None, None, ), # 1 (2, TType.STRING, 'obsToken', None, None, ), # 2 (3, TType.I64, 'expiration', None, None, ), # 3 (4, TType.STRING, 'refreshToken', None, None, ), # 4 (5, TType.STRING, 'channelAccessToken', None, None, ), # 5 ) def __init__(self, token=None, obsToken=None, expiration=None, refreshToken=None, channelAccessToken=None,): self.token = token self.obsToken = obsToken self.expiration = expiration self.refreshToken = refreshToken self.channelAccessToken = channelAccessToken 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.token = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.obsToken = iprot.readString() 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.STRING: self.refreshToken = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.channelAccessToken = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ChannelToken') if self.token is not None: oprot.writeFieldBegin('token', TType.STRING, 1) oprot.writeString(self.token) oprot.writeFieldEnd() if self.obsToken is not None: oprot.writeFieldBegin('obsToken', TType.STRING, 2) oprot.writeString(self.obsToken) oprot.writeFieldEnd() if self.expiration is not None: oprot.writeFieldBegin('expiration', TType.I64, 3) oprot.writeI64(self.expiration) oprot.writeFieldEnd() if self.refreshToken is not None: oprot.writeFieldBegin('refreshToken', TType.STRING, 4) oprot.writeString(self.refreshToken) oprot.writeFieldEnd() if self.channelAccessToken is not None: oprot.writeFieldBegin('channelAccessToken', TType.STRING, 5) oprot.writeString(self.channelAccessToken) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.token) value = (value * 31) ^ hash(self.obsToken) value = (value * 31) ^ hash(self.expiration) value = (value * 31) ^ hash(self.refreshToken) value = (value * 31) ^ hash(self.channelAccessToken) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Coin: """ Attributes: - freeCoinBalance - payedCoinBalance - totalCoinBalance - rewardCoinBalance """ thrift_spec = ( None, # 0 (1, TType.I32, 'freeCoinBalance', None, None, ), # 1 (2, TType.I32, 'payedCoinBalance', None, None, ), # 2 (3, TType.I32, 'totalCoinBalance', None, None, ), # 3 (4, TType.I32, 'rewardCoinBalance', None, None, ), # 4 ) def __init__(self, freeCoinBalance=None, payedCoinBalance=None, totalCoinBalance=None, rewardCoinBalance=None,): self.freeCoinBalance = freeCoinBalance self.payedCoinBalance = payedCoinBalance self.totalCoinBalance = totalCoinBalance self.rewardCoinBalance = rewardCoinBalance 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.freeCoinBalance = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.payedCoinBalance = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.totalCoinBalance = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.rewardCoinBalance = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Coin') if self.freeCoinBalance is not None: oprot.writeFieldBegin('freeCoinBalance', TType.I32, 1) oprot.writeI32(self.freeCoinBalance) oprot.writeFieldEnd() if self.payedCoinBalance is not None: oprot.writeFieldBegin('payedCoinBalance', TType.I32, 2) oprot.writeI32(self.payedCoinBalance) oprot.writeFieldEnd() if self.totalCoinBalance is not None: oprot.writeFieldBegin('totalCoinBalance', TType.I32, 3) oprot.writeI32(self.totalCoinBalance) oprot.writeFieldEnd() if self.rewardCoinBalance is not None: oprot.writeFieldBegin('rewardCoinBalance', TType.I32, 4) oprot.writeI32(self.rewardCoinBalance) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.freeCoinBalance) value = (value * 31) ^ hash(self.payedCoinBalance) value = (value * 31) ^ hash(self.totalCoinBalance) value = (value * 31) ^ hash(self.rewardCoinBalance) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class CoinPayLoad: """ Attributes: - payCoin - freeCoin - type - rewardCoin """ thrift_spec = ( None, # 0 (1, TType.I32, 'payCoin', None, None, ), # 1 (2, TType.I32, 'freeCoin', None, None, ), # 2 (3, TType.I32, 'type', None, None, ), # 3 (4, TType.I32, 'rewardCoin', None, None, ), # 4 ) def __init__(self, payCoin=None, freeCoin=None, type=None, rewardCoin=None,): self.payCoin = payCoin self.freeCoin = freeCoin self.type = type self.rewardCoin = rewardCoin 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.payCoin = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.freeCoin = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.rewardCoin = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('CoinPayLoad') if self.payCoin is not None: oprot.writeFieldBegin('payCoin', TType.I32, 1) oprot.writeI32(self.payCoin) oprot.writeFieldEnd() if self.freeCoin is not None: oprot.writeFieldBegin('freeCoin', TType.I32, 2) oprot.writeI32(self.freeCoin) oprot.writeFieldEnd() if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 3) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.rewardCoin is not None: oprot.writeFieldBegin('rewardCoin', TType.I32, 4) oprot.writeI32(self.rewardCoin) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.payCoin) value = (value * 31) ^ hash(self.freeCoin) value = (value * 31) ^ hash(self.type) value = (value * 31) ^ hash(self.rewardCoin) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class CoinHistory: """ Attributes: - payDate - coinBalance - coin - price - title - refund - paySeq - currency - currencySign - displayPrice - payload - channelId """ thrift_spec = ( None, # 0 (1, TType.I64, 'payDate', None, None, ), # 1 (2, TType.I32, 'coinBalance', None, None, ), # 2 (3, TType.I32, 'coin', None, None, ), # 3 (4, TType.STRING, 'price', None, None, ), # 4 (5, TType.STRING, 'title', None, None, ), # 5 (6, TType.BOOL, 'refund', None, None, ), # 6 (7, TType.STRING, 'paySeq', None, None, ), # 7 (8, TType.STRING, 'currency', None, None, ), # 8 (9, TType.STRING, 'currencySign', None, None, ), # 9 (10, TType.STRING, 'displayPrice', None, None, ), # 10 (11, TType.STRUCT, 'payload', (CoinPayLoad, CoinPayLoad.thrift_spec), None, ), # 11 (12, TType.STRING, 'channelId', None, None, ), # 12 ) def __init__(self, payDate=None, coinBalance=None, coin=None, price=None, title=None, refund=None, paySeq=None, currency=None, currencySign=None, displayPrice=None, payload=None, channelId=None,): self.payDate = payDate self.coinBalance = coinBalance self.coin = coin self.price = price self.title = title self.refund = refund self.paySeq = paySeq self.currency = currency self.currencySign = currencySign self.displayPrice = displayPrice self.payload = payload self.channelId = channelId 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.payDate = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.coinBalance = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.coin = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.price = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.title = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.BOOL: self.refund = iprot.readBool() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: self.paySeq = iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.currency = iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: self.currencySign = iprot.readString() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: self.displayPrice = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRUCT: self.payload = CoinPayLoad() self.payload.read(iprot) else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('CoinHistory') if self.payDate is not None: oprot.writeFieldBegin('payDate', TType.I64, 1) oprot.writeI64(self.payDate) oprot.writeFieldEnd() if self.coinBalance is not None: oprot.writeFieldBegin('coinBalance', TType.I32, 2) oprot.writeI32(self.coinBalance) oprot.writeFieldEnd() if self.coin is not None: oprot.writeFieldBegin('coin', TType.I32, 3) oprot.writeI32(self.coin) oprot.writeFieldEnd() if self.price is not None: oprot.writeFieldBegin('price', TType.STRING, 4) oprot.writeString(self.price) oprot.writeFieldEnd() if self.title is not None: oprot.writeFieldBegin('title', TType.STRING, 5) oprot.writeString(self.title) oprot.writeFieldEnd() if self.refund is not None: oprot.writeFieldBegin('refund', TType.BOOL, 6) oprot.writeBool(self.refund) oprot.writeFieldEnd() if self.paySeq is not None: oprot.writeFieldBegin('paySeq', TType.STRING, 7) oprot.writeString(self.paySeq) oprot.writeFieldEnd() if self.currency is not None: oprot.writeFieldBegin('currency', TType.STRING, 8) oprot.writeString(self.currency) oprot.writeFieldEnd() if self.currencySign is not None: oprot.writeFieldBegin('currencySign', TType.STRING, 9) oprot.writeString(self.currencySign) oprot.writeFieldEnd() if self.displayPrice is not None: oprot.writeFieldBegin('displayPrice', TType.STRING, 10) oprot.writeString(self.displayPrice) oprot.writeFieldEnd() if self.payload is not None: oprot.writeFieldBegin('payload', TType.STRUCT, 11) self.payload.write(oprot) oprot.writeFieldEnd() if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 12) oprot.writeString(self.channelId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.payDate) value = (value * 31) ^ hash(self.coinBalance) value = (value * 31) ^ hash(self.coin) value = (value * 31) ^ hash(self.price) value = (value * 31) ^ hash(self.title) value = (value * 31) ^ hash(self.refund) value = (value * 31) ^ hash(self.paySeq) value = (value * 31) ^ hash(self.currency) value = (value * 31) ^ hash(self.currencySign) value = (value * 31) ^ hash(self.displayPrice) value = (value * 31) ^ hash(self.payload) value = (value * 31) ^ hash(self.channelId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class CoinHistoryCondition: """ Attributes: - start - size - language - eddt - appStoreCode """ thrift_spec = ( None, # 0 (1, TType.I64, 'start', None, None, ), # 1 (2, TType.I32, 'size', None, None, ), # 2 (3, TType.STRING, 'language', None, None, ), # 3 (4, TType.STRING, 'eddt', None, None, ), # 4 (5, TType.I32, 'appStoreCode', None, None, ), # 5 ) def __init__(self, start=None, size=None, language=None, eddt=None, appStoreCode=None,): self.start = start self.size = size self.language = language self.eddt = eddt self.appStoreCode = appStoreCode 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.start = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.size = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.eddt = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.appStoreCode = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('CoinHistoryCondition') if self.start is not None: oprot.writeFieldBegin('start', TType.I64, 1) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.size is not None: oprot.writeFieldBegin('size', TType.I32, 2) oprot.writeI32(self.size) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 3) oprot.writeString(self.language) oprot.writeFieldEnd() if self.eddt is not None: oprot.writeFieldBegin('eddt', TType.STRING, 4) oprot.writeString(self.eddt) oprot.writeFieldEnd() if self.appStoreCode is not None: oprot.writeFieldBegin('appStoreCode', TType.I32, 5) oprot.writeI32(self.appStoreCode) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.start) value = (value * 31) ^ hash(self.size) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.eddt) value = (value * 31) ^ hash(self.appStoreCode) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class CoinHistoryResult: """ Attributes: - historys - balance - hasNext """ thrift_spec = ( None, # 0 (1, TType.LIST, 'historys', (TType.STRUCT,(CoinHistory, CoinHistory.thrift_spec)), None, ), # 1 (2, TType.STRUCT, 'balance', (Coin, Coin.thrift_spec), None, ), # 2 (3, TType.BOOL, 'hasNext', None, None, ), # 3 ) def __init__(self, historys=None, balance=None, hasNext=None,): self.historys = historys self.balance = balance self.hasNext = hasNext 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.historys = [] (_etype102, _size99) = iprot.readListBegin() for _i103 in xrange(_size99): _elem104 = CoinHistory() _elem104.read(iprot) self.historys.append(_elem104) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.balance = Coin() self.balance.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.BOOL: self.hasNext = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('CoinHistoryResult') if self.historys is not None: oprot.writeFieldBegin('historys', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.historys)) for iter105 in self.historys: iter105.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.balance is not None: oprot.writeFieldBegin('balance', TType.STRUCT, 2) self.balance.write(oprot) oprot.writeFieldEnd() if self.hasNext is not None: oprot.writeFieldBegin('hasNext', TType.BOOL, 3) oprot.writeBool(self.hasNext) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.historys) value = (value * 31) ^ hash(self.balance) value = (value * 31) ^ hash(self.hasNext) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class CoinProductItem: """ Attributes: - itemId - coin - freeCoin - currency - price - displayPrice - name - desc """ thrift_spec = ( None, # 0 (1, TType.STRING, 'itemId', None, None, ), # 1 (2, TType.I32, 'coin', None, None, ), # 2 (3, TType.I32, 'freeCoin', None, None, ), # 3 None, # 4 (5, TType.STRING, 'currency', None, None, ), # 5 (6, TType.STRING, 'price', None, None, ), # 6 (7, TType.STRING, 'displayPrice', None, None, ), # 7 (8, TType.STRING, 'name', None, None, ), # 8 (9, TType.STRING, 'desc', None, None, ), # 9 ) def __init__(self, itemId=None, coin=None, freeCoin=None, currency=None, price=None, displayPrice=None, name=None, desc=None,): self.itemId = itemId self.coin = coin self.freeCoin = freeCoin self.currency = currency self.price = price self.displayPrice = displayPrice self.name = name self.desc = desc 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.itemId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.coin = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.freeCoin = iprot.readI32() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.currency = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.price = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: self.displayPrice = iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.name = iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: self.desc = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('CoinProductItem') if self.itemId is not None: oprot.writeFieldBegin('itemId', TType.STRING, 1) oprot.writeString(self.itemId) oprot.writeFieldEnd() if self.coin is not None: oprot.writeFieldBegin('coin', TType.I32, 2) oprot.writeI32(self.coin) oprot.writeFieldEnd() if self.freeCoin is not None: oprot.writeFieldBegin('freeCoin', TType.I32, 3) oprot.writeI32(self.freeCoin) oprot.writeFieldEnd() if self.currency is not None: oprot.writeFieldBegin('currency', TType.STRING, 5) oprot.writeString(self.currency) oprot.writeFieldEnd() if self.price is not None: oprot.writeFieldBegin('price', TType.STRING, 6) oprot.writeString(self.price) oprot.writeFieldEnd() if self.displayPrice is not None: oprot.writeFieldBegin('displayPrice', TType.STRING, 7) oprot.writeString(self.displayPrice) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 8) oprot.writeString(self.name) oprot.writeFieldEnd() if self.desc is not None: oprot.writeFieldBegin('desc', TType.STRING, 9) oprot.writeString(self.desc) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.itemId) value = (value * 31) ^ hash(self.coin) value = (value * 31) ^ hash(self.freeCoin) value = (value * 31) ^ hash(self.currency) value = (value * 31) ^ hash(self.price) value = (value * 31) ^ hash(self.displayPrice) value = (value * 31) ^ hash(self.name) value = (value * 31) ^ hash(self.desc) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class CoinPurchaseConfirm: """ Attributes: - orderId - appStoreCode - receipt - signature - seller - requestType - ignoreReceipt """ thrift_spec = ( None, # 0 (1, TType.STRING, 'orderId', None, None, ), # 1 (2, TType.I32, 'appStoreCode', None, None, ), # 2 (3, TType.STRING, 'receipt', None, None, ), # 3 (4, TType.STRING, 'signature', None, None, ), # 4 (5, TType.STRING, 'seller', None, None, ), # 5 (6, TType.STRING, 'requestType', None, None, ), # 6 (7, TType.BOOL, 'ignoreReceipt', None, None, ), # 7 ) def __init__(self, orderId=None, appStoreCode=None, receipt=None, signature=None, seller=None, requestType=None, ignoreReceipt=None,): self.orderId = orderId self.appStoreCode = appStoreCode self.receipt = receipt self.signature = signature self.seller = seller self.requestType = requestType self.ignoreReceipt = ignoreReceipt 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.orderId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.appStoreCode = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.receipt = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.signature = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.seller = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.requestType = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.BOOL: self.ignoreReceipt = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('CoinPurchaseConfirm') if self.orderId is not None: oprot.writeFieldBegin('orderId', TType.STRING, 1) oprot.writeString(self.orderId) oprot.writeFieldEnd() if self.appStoreCode is not None: oprot.writeFieldBegin('appStoreCode', TType.I32, 2) oprot.writeI32(self.appStoreCode) oprot.writeFieldEnd() if self.receipt is not None: oprot.writeFieldBegin('receipt', TType.STRING, 3) oprot.writeString(self.receipt) oprot.writeFieldEnd() if self.signature is not None: oprot.writeFieldBegin('signature', TType.STRING, 4) oprot.writeString(self.signature) oprot.writeFieldEnd() if self.seller is not None: oprot.writeFieldBegin('seller', TType.STRING, 5) oprot.writeString(self.seller) oprot.writeFieldEnd() if self.requestType is not None: oprot.writeFieldBegin('requestType', TType.STRING, 6) oprot.writeString(self.requestType) oprot.writeFieldEnd() if self.ignoreReceipt is not None: oprot.writeFieldBegin('ignoreReceipt', TType.BOOL, 7) oprot.writeBool(self.ignoreReceipt) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.orderId) value = (value * 31) ^ hash(self.appStoreCode) value = (value * 31) ^ hash(self.receipt) value = (value * 31) ^ hash(self.signature) value = (value * 31) ^ hash(self.seller) value = (value * 31) ^ hash(self.requestType) value = (value * 31) ^ hash(self.ignoreReceipt) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class CoinPurchaseReservation: """ Attributes: - productId - country - currency - price - appStoreCode - language - pgCode - redirectUrl """ thrift_spec = ( None, # 0 (1, TType.STRING, 'productId', None, None, ), # 1 (2, TType.STRING, 'country', None, None, ), # 2 (3, TType.STRING, 'currency', None, None, ), # 3 (4, TType.STRING, 'price', None, None, ), # 4 (5, TType.I32, 'appStoreCode', None, None, ), # 5 (6, TType.STRING, 'language', None, None, ), # 6 (7, TType.I32, 'pgCode', None, None, ), # 7 (8, TType.STRING, 'redirectUrl', None, None, ), # 8 ) def __init__(self, productId=None, country=None, currency=None, price=None, appStoreCode=None, language=None, pgCode=None, redirectUrl=None,): self.productId = productId self.country = country self.currency = currency self.price = price self.appStoreCode = appStoreCode self.language = language self.pgCode = pgCode self.redirectUrl = redirectUrl 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.productId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.currency = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.price = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.appStoreCode = iprot.readI32() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I32: self.pgCode = iprot.readI32() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.redirectUrl = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('CoinPurchaseReservation') if self.productId is not None: oprot.writeFieldBegin('productId', TType.STRING, 1) oprot.writeString(self.productId) oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 2) oprot.writeString(self.country) oprot.writeFieldEnd() if self.currency is not None: oprot.writeFieldBegin('currency', TType.STRING, 3) oprot.writeString(self.currency) oprot.writeFieldEnd() if self.price is not None: oprot.writeFieldBegin('price', TType.STRING, 4) oprot.writeString(self.price) oprot.writeFieldEnd() if self.appStoreCode is not None: oprot.writeFieldBegin('appStoreCode', TType.I32, 5) oprot.writeI32(self.appStoreCode) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 6) oprot.writeString(self.language) oprot.writeFieldEnd() if self.pgCode is not None: oprot.writeFieldBegin('pgCode', TType.I32, 7) oprot.writeI32(self.pgCode) oprot.writeFieldEnd() if self.redirectUrl is not None: oprot.writeFieldBegin('redirectUrl', TType.STRING, 8) oprot.writeString(self.redirectUrl) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.productId) value = (value * 31) ^ hash(self.country) value = (value * 31) ^ hash(self.currency) value = (value * 31) ^ hash(self.price) value = (value * 31) ^ hash(self.appStoreCode) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.pgCode) value = (value * 31) ^ hash(self.redirectUrl) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class CoinUseReservationItem: """ Attributes: - itemId - itemName - amount """ thrift_spec = ( None, # 0 (1, TType.STRING, 'itemId', None, None, ), # 1 (2, TType.STRING, 'itemName', None, None, ), # 2 (3, TType.I32, 'amount', None, None, ), # 3 ) def __init__(self, itemId=None, itemName=None, amount=None,): self.itemId = itemId self.itemName = itemName self.amount = amount 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.itemId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.itemName = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.amount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('CoinUseReservationItem') if self.itemId is not None: oprot.writeFieldBegin('itemId', TType.STRING, 1) oprot.writeString(self.itemId) oprot.writeFieldEnd() if self.itemName is not None: oprot.writeFieldBegin('itemName', TType.STRING, 2) oprot.writeString(self.itemName) oprot.writeFieldEnd() if self.amount is not None: oprot.writeFieldBegin('amount', TType.I32, 3) oprot.writeI32(self.amount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.itemId) value = (value * 31) ^ hash(self.itemName) value = (value * 31) ^ hash(self.amount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class CoinUseReservation: """ Attributes: - channelId - shopOrderId - appStoreCode - items - country """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 (2, TType.STRING, 'shopOrderId', None, None, ), # 2 (3, TType.I32, 'appStoreCode', None, None, ), # 3 (4, TType.LIST, 'items', (TType.STRUCT,(CoinUseReservationItem, CoinUseReservationItem.thrift_spec)), None, ), # 4 (5, TType.STRING, 'country', None, None, ), # 5 ) def __init__(self, channelId=None, shopOrderId=None, appStoreCode=None, items=None, country=None,): self.channelId = channelId self.shopOrderId = shopOrderId self.appStoreCode = appStoreCode self.items = items self.country = country 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.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.shopOrderId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.appStoreCode = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.items = [] (_etype109, _size106) = iprot.readListBegin() for _i110 in xrange(_size106): _elem111 = CoinUseReservationItem() _elem111.read(iprot) self.items.append(_elem111) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.country = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('CoinUseReservation') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.shopOrderId is not None: oprot.writeFieldBegin('shopOrderId', TType.STRING, 2) oprot.writeString(self.shopOrderId) oprot.writeFieldEnd() if self.appStoreCode is not None: oprot.writeFieldBegin('appStoreCode', TType.I32, 3) oprot.writeI32(self.appStoreCode) oprot.writeFieldEnd() if self.items is not None: oprot.writeFieldBegin('items', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.items)) for iter112 in self.items: iter112.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.country is not None: oprot.writeFieldBegin('country', TType.STRING, 5) oprot.writeString(self.country) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.shopOrderId) value = (value * 31) ^ hash(self.appStoreCode) value = (value * 31) ^ hash(self.items) value = (value * 31) ^ hash(self.country) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class CompactContact: """ Attributes: - mid - createdTime - modifiedTime - status - settings - displayNameOverridden """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 (2, TType.I64, 'createdTime', None, None, ), # 2 (3, TType.I64, 'modifiedTime', None, None, ), # 3 (4, TType.I32, 'status', None, None, ), # 4 (5, TType.I64, 'settings', None, None, ), # 5 (6, TType.STRING, 'displayNameOverridden', None, None, ), # 6 ) def __init__(self, mid=None, createdTime=None, modifiedTime=None, status=None, settings=None, displayNameOverridden=None,): self.mid = mid self.createdTime = createdTime self.modifiedTime = modifiedTime self.status = status self.settings = settings self.displayNameOverridden = displayNameOverridden 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.createdTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: self.modifiedTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.status = iprot.readI32() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I64: self.settings = iprot.readI64() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.displayNameOverridden = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('CompactContact') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.createdTime is not None: oprot.writeFieldBegin('createdTime', TType.I64, 2) oprot.writeI64(self.createdTime) oprot.writeFieldEnd() if self.modifiedTime is not None: oprot.writeFieldBegin('modifiedTime', TType.I64, 3) oprot.writeI64(self.modifiedTime) oprot.writeFieldEnd() if self.status is not None: oprot.writeFieldBegin('status', TType.I32, 4) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.settings is not None: oprot.writeFieldBegin('settings', TType.I64, 5) oprot.writeI64(self.settings) oprot.writeFieldEnd() if self.displayNameOverridden is not None: oprot.writeFieldBegin('displayNameOverridden', TType.STRING, 6) oprot.writeString(self.displayNameOverridden) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.createdTime) value = (value * 31) ^ hash(self.modifiedTime) value = (value * 31) ^ hash(self.status) value = (value * 31) ^ hash(self.settings) value = (value * 31) ^ hash(self.displayNameOverridden) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ContactModification: """ Attributes: - type - luid - phones - emails - userids """ thrift_spec = ( None, # 0 (1, TType.I32, 'type', None, None, ), # 1 (2, TType.STRING, 'luid', None, None, ), # 2 None, # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 None, # 10 (11, TType.LIST, 'phones', (TType.STRING,None), None, ), # 11 (12, TType.LIST, 'emails', (TType.STRING,None), None, ), # 12 (13, TType.LIST, 'userids', (TType.STRING,None), None, ), # 13 ) def __init__(self, type=None, luid=None, phones=None, emails=None, userids=None,): self.type = type self.luid = luid self.phones = phones self.emails = emails self.userids = userids 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.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.luid = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.LIST: self.phones = [] (_etype116, _size113) = iprot.readListBegin() for _i117 in xrange(_size113): _elem118 = iprot.readString() self.phones.append(_elem118) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.LIST: self.emails = [] (_etype122, _size119) = iprot.readListBegin() for _i123 in xrange(_size119): _elem124 = iprot.readString() self.emails.append(_elem124) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 13: if ftype == TType.LIST: self.userids = [] (_etype128, _size125) = iprot.readListBegin() for _i129 in xrange(_size125): _elem130 = iprot.readString() self.userids.append(_elem130) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ContactModification') if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 1) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.luid is not None: oprot.writeFieldBegin('luid', TType.STRING, 2) oprot.writeString(self.luid) oprot.writeFieldEnd() if self.phones is not None: oprot.writeFieldBegin('phones', TType.LIST, 11) oprot.writeListBegin(TType.STRING, len(self.phones)) for iter131 in self.phones: oprot.writeString(iter131) oprot.writeListEnd() oprot.writeFieldEnd() if self.emails is not None: oprot.writeFieldBegin('emails', TType.LIST, 12) oprot.writeListBegin(TType.STRING, len(self.emails)) for iter132 in self.emails: oprot.writeString(iter132) oprot.writeListEnd() oprot.writeFieldEnd() if self.userids is not None: oprot.writeFieldBegin('userids', TType.LIST, 13) oprot.writeListBegin(TType.STRING, len(self.userids)) for iter133 in self.userids: oprot.writeString(iter133) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.type) value = (value * 31) ^ hash(self.luid) value = (value * 31) ^ hash(self.phones) value = (value * 31) ^ hash(self.emails) value = (value * 31) ^ hash(self.userids) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ContactRegistration: """ Attributes: - contact - luid - contactType - contactKey """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'contact', (Contact, Contact.thrift_spec), None, ), # 1 None, # 2 None, # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.STRING, 'luid', None, None, ), # 10 (11, TType.I32, 'contactType', None, None, ), # 11 (12, TType.STRING, 'contactKey', None, None, ), # 12 ) def __init__(self, contact=None, luid=None, contactType=None, contactKey=None,): self.contact = contact self.luid = luid self.contactType = contactType self.contactKey = contactKey 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.STRUCT: self.contact = Contact() self.contact.read(iprot) else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: self.luid = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.I32: self.contactType = iprot.readI32() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: self.contactKey = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ContactRegistration') if self.contact is not None: oprot.writeFieldBegin('contact', TType.STRUCT, 1) self.contact.write(oprot) oprot.writeFieldEnd() if self.luid is not None: oprot.writeFieldBegin('luid', TType.STRING, 10) oprot.writeString(self.luid) oprot.writeFieldEnd() if self.contactType is not None: oprot.writeFieldBegin('contactType', TType.I32, 11) oprot.writeI32(self.contactType) oprot.writeFieldEnd() if self.contactKey is not None: oprot.writeFieldBegin('contactKey', TType.STRING, 12) oprot.writeString(self.contactKey) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.contact) value = (value * 31) ^ hash(self.luid) value = (value * 31) ^ hash(self.contactType) value = (value * 31) ^ hash(self.contactKey) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ContactReport: """ Attributes: - mid - exists - contact """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 (2, TType.BOOL, 'exists', None, None, ), # 2 (3, TType.STRUCT, 'contact', (Contact, Contact.thrift_spec), None, ), # 3 ) def __init__(self, mid=None, exists=None, contact=None,): self.mid = mid self.exists = exists self.contact = contact 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: self.exists = iprot.readBool() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: self.contact = Contact() self.contact.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ContactReport') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.exists is not None: oprot.writeFieldBegin('exists', TType.BOOL, 2) oprot.writeBool(self.exists) oprot.writeFieldEnd() if self.contact is not None: oprot.writeFieldBegin('contact', TType.STRUCT, 3) self.contact.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.exists) value = (value * 31) ^ hash(self.contact) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ContactReportResult: """ Attributes: - mid - exists """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 (2, TType.BOOL, 'exists', None, None, ), # 2 ) def __init__(self, mid=None, exists=None,): self.mid = mid self.exists = exists 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: self.exists = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ContactReportResult') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.exists is not None: oprot.writeFieldBegin('exists', TType.BOOL, 2) oprot.writeBool(self.exists) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.exists) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class DeviceInfo: """ Attributes: - deviceName - systemName - systemVersion - model - carrierCode - carrierName - applicationType """ thrift_spec = ( None, # 0 (1, TType.STRING, 'deviceName', None, None, ), # 1 (2, TType.STRING, 'systemName', None, None, ), # 2 (3, TType.STRING, 'systemVersion', None, None, ), # 3 (4, TType.STRING, 'model', None, None, ), # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.I32, 'carrierCode', None, None, ), # 10 (11, TType.STRING, 'carrierName', None, None, ), # 11 None, # 12 None, # 13 None, # 14 None, # 15 None, # 16 None, # 17 None, # 18 None, # 19 (20, TType.I32, 'applicationType', None, None, ), # 20 ) def __init__(self, deviceName=None, systemName=None, systemVersion=None, model=None, carrierCode=None, carrierName=None, applicationType=None,): self.deviceName = deviceName self.systemName = systemName self.systemVersion = systemVersion self.model = model self.carrierCode = carrierCode self.carrierName = carrierName self.applicationType = applicationType 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.deviceName = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.systemName = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.systemVersion = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.model = iprot.readString() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.I32: self.carrierCode = iprot.readI32() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: self.carrierName = iprot.readString() else: iprot.skip(ftype) elif fid == 20: if ftype == TType.I32: self.applicationType = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('DeviceInfo') if self.deviceName is not None: oprot.writeFieldBegin('deviceName', TType.STRING, 1) oprot.writeString(self.deviceName) oprot.writeFieldEnd() if self.systemName is not None: oprot.writeFieldBegin('systemName', TType.STRING, 2) oprot.writeString(self.systemName) oprot.writeFieldEnd() if self.systemVersion is not None: oprot.writeFieldBegin('systemVersion', TType.STRING, 3) oprot.writeString(self.systemVersion) oprot.writeFieldEnd() if self.model is not None: oprot.writeFieldBegin('model', TType.STRING, 4) oprot.writeString(self.model) oprot.writeFieldEnd() if self.carrierCode is not None: oprot.writeFieldBegin('carrierCode', TType.I32, 10) oprot.writeI32(self.carrierCode) oprot.writeFieldEnd() if self.carrierName is not None: oprot.writeFieldBegin('carrierName', TType.STRING, 11) oprot.writeString(self.carrierName) oprot.writeFieldEnd() if self.applicationType is not None: oprot.writeFieldBegin('applicationType', TType.I32, 20) oprot.writeI32(self.applicationType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.deviceName) value = (value * 31) ^ hash(self.systemName) value = (value * 31) ^ hash(self.systemVersion) value = (value * 31) ^ hash(self.model) value = (value * 31) ^ hash(self.carrierCode) value = (value * 31) ^ hash(self.carrierName) value = (value * 31) ^ hash(self.applicationType) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class EmailConfirmation: """ Attributes: - usePasswordSet - email - password - ignoreDuplication """ thrift_spec = ( None, # 0 (1, TType.BOOL, 'usePasswordSet', None, None, ), # 1 (2, TType.STRING, 'email', None, None, ), # 2 (3, TType.STRING, 'password', None, None, ), # 3 (4, TType.BOOL, 'ignoreDuplication', None, None, ), # 4 ) def __init__(self, usePasswordSet=None, email=None, password=None, ignoreDuplication=None,): self.usePasswordSet = usePasswordSet self.email = email self.password = password self.ignoreDuplication = ignoreDuplication 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.BOOL: self.usePasswordSet = iprot.readBool() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.email = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.password = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: self.ignoreDuplication = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('EmailConfirmation') if self.usePasswordSet is not None: oprot.writeFieldBegin('usePasswordSet', TType.BOOL, 1) oprot.writeBool(self.usePasswordSet) oprot.writeFieldEnd() if self.email is not None: oprot.writeFieldBegin('email', TType.STRING, 2) oprot.writeString(self.email) oprot.writeFieldEnd() if self.password is not None: oprot.writeFieldBegin('password', TType.STRING, 3) oprot.writeString(self.password) oprot.writeFieldEnd() if self.ignoreDuplication is not None: oprot.writeFieldBegin('ignoreDuplication', TType.BOOL, 4) oprot.writeBool(self.ignoreDuplication) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.usePasswordSet) value = (value * 31) ^ hash(self.email) value = (value * 31) ^ hash(self.password) value = (value * 31) ^ hash(self.ignoreDuplication) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class EmailConfirmationSession: """ Attributes: - emailConfirmationType - verifier - targetEmail """ thrift_spec = ( None, # 0 (1, TType.I32, 'emailConfirmationType', None, None, ), # 1 (2, TType.STRING, 'verifier', None, None, ), # 2 (3, TType.STRING, 'targetEmail', None, None, ), # 3 ) def __init__(self, emailConfirmationType=None, verifier=None, targetEmail=None,): self.emailConfirmationType = emailConfirmationType self.verifier = verifier self.targetEmail = targetEmail 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.emailConfirmationType = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.targetEmail = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('EmailConfirmationSession') if self.emailConfirmationType is not None: oprot.writeFieldBegin('emailConfirmationType', TType.I32, 1) oprot.writeI32(self.emailConfirmationType) oprot.writeFieldEnd() if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 2) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.targetEmail is not None: oprot.writeFieldBegin('targetEmail', TType.STRING, 3) oprot.writeString(self.targetEmail) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.emailConfirmationType) value = (value * 31) ^ hash(self.verifier) value = (value * 31) ^ hash(self.targetEmail) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class FriendChannelMatrix: """ Attributes: - channelId - representMid - count """ thrift_spec = ( None, # 0 (1, TType.STRING, 'channelId', None, None, ), # 1 (2, TType.STRING, 'representMid', None, None, ), # 2 (3, TType.I32, 'count', None, None, ), # 3 ) def __init__(self, channelId=None, representMid=None, count=None,): self.channelId = channelId self.representMid = representMid self.count = count 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.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.representMid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.count = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('FriendChannelMatrix') if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 1) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.representMid is not None: oprot.writeFieldBegin('representMid', TType.STRING, 2) oprot.writeString(self.representMid) oprot.writeFieldEnd() if self.count is not None: oprot.writeFieldBegin('count', TType.I32, 3) oprot.writeI32(self.count) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.representMid) value = (value * 31) ^ hash(self.count) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class FriendChannelMatricesResponse: """ Attributes: - expires - matrices """ thrift_spec = ( None, # 0 (1, TType.I64, 'expires', None, None, ), # 1 (2, TType.LIST, 'matrices', (TType.STRUCT,(FriendChannelMatrix, FriendChannelMatrix.thrift_spec)), None, ), # 2 ) def __init__(self, expires=None, matrices=None,): self.expires = expires self.matrices = matrices 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.expires = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.matrices = [] (_etype137, _size134) = iprot.readListBegin() for _i138 in xrange(_size134): _elem139 = FriendChannelMatrix() _elem139.read(iprot) self.matrices.append(_elem139) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('FriendChannelMatricesResponse') if self.expires is not None: oprot.writeFieldBegin('expires', TType.I64, 1) oprot.writeI64(self.expires) oprot.writeFieldEnd() if self.matrices is not None: oprot.writeFieldBegin('matrices', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.matrices)) for iter140 in self.matrices: iter140.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.expires) value = (value * 31) ^ hash(self.matrices) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Geolocation: """ Attributes: - longitude - latitude """ thrift_spec = ( None, # 0 (1, TType.DOUBLE, 'longitude', None, None, ), # 1 (2, TType.DOUBLE, 'latitude', None, None, ), # 2 ) def __init__(self, longitude=None, latitude=None,): self.longitude = longitude self.latitude = latitude 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.DOUBLE: self.longitude = iprot.readDouble() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.DOUBLE: self.latitude = iprot.readDouble() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Geolocation') if self.longitude is not None: oprot.writeFieldBegin('longitude', TType.DOUBLE, 1) oprot.writeDouble(self.longitude) oprot.writeFieldEnd() if self.latitude is not None: oprot.writeFieldBegin('latitude', TType.DOUBLE, 2) oprot.writeDouble(self.latitude) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.longitude) value = (value * 31) ^ hash(self.latitude) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class NotificationTarget: """ Attributes: - applicationType - applicationVersion - region """ thrift_spec = ( None, # 0 (1, TType.STRING, 'applicationType', None, None, ), # 1 (2, TType.STRING, 'applicationVersion', None, None, ), # 2 (3, TType.STRING, 'region', None, None, ), # 3 ) def __init__(self, applicationType=None, applicationVersion=None, region=None,): self.applicationType = applicationType self.applicationVersion = applicationVersion self.region = region 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.applicationType = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.applicationVersion = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.region = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('NotificationTarget') if self.applicationType is not None: oprot.writeFieldBegin('applicationType', TType.STRING, 1) oprot.writeString(self.applicationType) oprot.writeFieldEnd() if self.applicationVersion is not None: oprot.writeFieldBegin('applicationVersion', TType.STRING, 2) oprot.writeString(self.applicationVersion) oprot.writeFieldEnd() if self.region is not None: oprot.writeFieldBegin('region', TType.STRING, 3) oprot.writeString(self.region) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.applicationType) value = (value * 31) ^ hash(self.applicationVersion) value = (value * 31) ^ hash(self.region) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class GlobalEvent: """ Attributes: - key - targets - createdTime - data - maxDelay """ thrift_spec = ( None, # 0 (1, TType.STRING, 'key', None, None, ), # 1 (2, TType.LIST, 'targets', (TType.STRUCT,(NotificationTarget, NotificationTarget.thrift_spec)), None, ), # 2 (3, TType.I64, 'createdTime', None, None, ), # 3 (4, TType.I64, 'data', None, None, ), # 4 (5, TType.I32, 'maxDelay', None, None, ), # 5 ) def __init__(self, key=None, targets=None, createdTime=None, data=None, maxDelay=None,): self.key = key self.targets = targets self.createdTime = createdTime self.data = data self.maxDelay = maxDelay 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.key = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.targets = [] (_etype144, _size141) = iprot.readListBegin() for _i145 in xrange(_size141): _elem146 = NotificationTarget() _elem146.read(iprot) self.targets.append(_elem146) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: self.createdTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I64: self.data = iprot.readI64() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.maxDelay = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('GlobalEvent') if self.key is not None: oprot.writeFieldBegin('key', TType.STRING, 1) oprot.writeString(self.key) oprot.writeFieldEnd() if self.targets is not None: oprot.writeFieldBegin('targets', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.targets)) for iter147 in self.targets: iter147.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.createdTime is not None: oprot.writeFieldBegin('createdTime', TType.I64, 3) oprot.writeI64(self.createdTime) oprot.writeFieldEnd() if self.data is not None: oprot.writeFieldBegin('data', TType.I64, 4) oprot.writeI64(self.data) oprot.writeFieldEnd() if self.maxDelay is not None: oprot.writeFieldBegin('maxDelay', TType.I32, 5) oprot.writeI32(self.maxDelay) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.key) value = (value * 31) ^ hash(self.targets) value = (value * 31) ^ hash(self.createdTime) value = (value * 31) ^ hash(self.data) value = (value * 31) ^ hash(self.maxDelay) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Group: """ Attributes: - id - createdTime - name - pictureStatus - preventJoinByTicket - members - creator - invitee - notificationDisabled """ thrift_spec = ( None, # 0 (1, TType.STRING, 'id', None, None, ), # 1 (2, TType.I64, 'createdTime', None, None, ), # 2 None, # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.STRING, 'name', None, None, ), # 10 (11, TType.STRING, 'pictureStatus', None, None, ), # 11 (12, TType.BOOL, 'preventJoinByTicket', None, None, ), # 12 None, # 13 None, # 14 None, # 15 None, # 16 None, # 17 None, # 18 None, # 19 (20, TType.LIST, 'members', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 20 (21, TType.STRUCT, 'creator', (Contact, Contact.thrift_spec), None, ), # 21 (22, TType.LIST, 'invitee', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 22 None, # 23 None, # 24 None, # 25 None, # 26 None, # 27 None, # 28 None, # 29 None, # 30 (31, TType.BOOL, 'notificationDisabled', None, None, ), # 31 ) def __init__(self, id=None, createdTime=None, name=None, pictureStatus=None, preventJoinByTicket=None, members=None, creator=None, invitee=None, notificationDisabled=None,): self.id = id self.createdTime = createdTime self.name = name self.pictureStatus = pictureStatus self.preventJoinByTicket = preventJoinByTicket self.members = members self.creator = creator self.invitee = invitee self.notificationDisabled = notificationDisabled 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.id = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.createdTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: self.name = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: self.pictureStatus = iprot.readString() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.BOOL: self.preventJoinByTicket = iprot.readBool() else: iprot.skip(ftype) elif fid == 20: if ftype == TType.LIST: self.members = [] (_etype151, _size148) = iprot.readListBegin() for _i152 in xrange(_size148): _elem153 = Contact() _elem153.read(iprot) self.members.append(_elem153) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 21: if ftype == TType.STRUCT: self.creator = Contact() self.creator.read(iprot) else: iprot.skip(ftype) elif fid == 22: if ftype == TType.LIST: self.invitee = [] (_etype157, _size154) = iprot.readListBegin() for _i158 in xrange(_size154): _elem159 = Contact() _elem159.read(iprot) self.invitee.append(_elem159) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 31: if ftype == TType.BOOL: self.notificationDisabled = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Group') if self.id is not None: oprot.writeFieldBegin('id', TType.STRING, 1) oprot.writeString(self.id) oprot.writeFieldEnd() if self.createdTime is not None: oprot.writeFieldBegin('createdTime', TType.I64, 2) oprot.writeI64(self.createdTime) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 10) oprot.writeString(self.name) oprot.writeFieldEnd() if self.pictureStatus is not None: oprot.writeFieldBegin('pictureStatus', TType.STRING, 11) oprot.writeString(self.pictureStatus) oprot.writeFieldEnd() if self.preventJoinByTicket is not None: oprot.writeFieldBegin('preventJoinByTicket', TType.BOOL, 12) oprot.writeBool(self.preventJoinByTicket) oprot.writeFieldEnd() if self.members is not None: oprot.writeFieldBegin('members', TType.LIST, 20) oprot.writeListBegin(TType.STRUCT, len(self.members)) for iter160 in self.members: iter160.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.creator is not None: oprot.writeFieldBegin('creator', TType.STRUCT, 21) self.creator.write(oprot) oprot.writeFieldEnd() if self.invitee is not None: oprot.writeFieldBegin('invitee', TType.LIST, 22) oprot.writeListBegin(TType.STRUCT, len(self.invitee)) for iter161 in self.invitee: iter161.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.notificationDisabled is not None: oprot.writeFieldBegin('notificationDisabled', TType.BOOL, 31) oprot.writeBool(self.notificationDisabled) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.id) value = (value * 31) ^ hash(self.createdTime) value = (value * 31) ^ hash(self.name) value = (value * 31) ^ hash(self.pictureStatus) value = (value * 31) ^ hash(self.preventJoinByTicket) value = (value * 31) ^ hash(self.members) value = (value * 31) ^ hash(self.creator) value = (value * 31) ^ hash(self.invitee) value = (value * 31) ^ hash(self.notificationDisabled) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class IdentityCredential: """ Attributes: - provider - identifier - password """ thrift_spec = ( None, # 0 (1, TType.I32, 'provider', None, None, ), # 1 (2, TType.STRING, 'identifier', None, None, ), # 2 (3, TType.STRING, 'password', None, None, ), # 3 ) def __init__(self, provider=None, identifier=None, password=None,): self.provider = provider self.identifier = identifier self.password = password 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.provider = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.identifier = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.password = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('IdentityCredential') if self.provider is not None: oprot.writeFieldBegin('provider', TType.I32, 1) oprot.writeI32(self.provider) oprot.writeFieldEnd() if self.identifier is not None: oprot.writeFieldBegin('identifier', TType.STRING, 2) oprot.writeString(self.identifier) oprot.writeFieldEnd() if self.password is not None: oprot.writeFieldBegin('password', TType.STRING, 3) oprot.writeString(self.password) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.provider) value = (value * 31) ^ hash(self.identifier) value = (value * 31) ^ hash(self.password) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class LastReadMessageId: """ Attributes: - mid - lastReadMessageId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 (2, TType.STRING, 'lastReadMessageId', None, None, ), # 2 ) def __init__(self, mid=None, lastReadMessageId=None,): self.mid = mid self.lastReadMessageId = lastReadMessageId 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.lastReadMessageId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('LastReadMessageId') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.lastReadMessageId is not None: oprot.writeFieldBegin('lastReadMessageId', TType.STRING, 2) oprot.writeString(self.lastReadMessageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.lastReadMessageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class LastReadMessageIds: """ Attributes: - chatId - lastReadMessageIds """ thrift_spec = ( None, # 0 (1, TType.STRING, 'chatId', None, None, ), # 1 (2, TType.LIST, 'lastReadMessageIds', (TType.STRUCT,(LastReadMessageId, LastReadMessageId.thrift_spec)), None, ), # 2 ) def __init__(self, chatId=None, lastReadMessageIds=None,): self.chatId = chatId self.lastReadMessageIds = lastReadMessageIds 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.chatId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.lastReadMessageIds = [] (_etype165, _size162) = iprot.readListBegin() for _i166 in xrange(_size162): _elem167 = LastReadMessageId() _elem167.read(iprot) self.lastReadMessageIds.append(_elem167) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('LastReadMessageIds') if self.chatId is not None: oprot.writeFieldBegin('chatId', TType.STRING, 1) oprot.writeString(self.chatId) oprot.writeFieldEnd() if self.lastReadMessageIds is not None: oprot.writeFieldBegin('lastReadMessageIds', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.lastReadMessageIds)) for iter168 in self.lastReadMessageIds: iter168.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.chatId) value = (value * 31) ^ hash(self.lastReadMessageIds) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class LoginResult: """ Attributes: - authToken - certificate - verifier - pinCode - type """ thrift_spec = ( None, # 0 (1, TType.STRING, 'authToken', None, None, ), # 1 (2, TType.STRING, 'certificate', None, None, ), # 2 (3, TType.STRING, 'verifier', None, None, ), # 3 (4, TType.STRING, 'pinCode', None, None, ), # 4 (5, TType.I32, 'type', None, None, ), # 5 ) def __init__(self, authToken=None, certificate=None, verifier=None, pinCode=None, type=None,): self.authToken = authToken self.certificate = certificate self.verifier = verifier self.pinCode = pinCode self.type = type 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.authToken = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.certificate = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.verifier = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.pinCode = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.type = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('LoginResult') if self.authToken is not None: oprot.writeFieldBegin('authToken', TType.STRING, 1) oprot.writeString(self.authToken) oprot.writeFieldEnd() if self.certificate is not None: oprot.writeFieldBegin('certificate', TType.STRING, 2) oprot.writeString(self.certificate) oprot.writeFieldEnd() if self.verifier is not None: oprot.writeFieldBegin('verifier', TType.STRING, 3) oprot.writeString(self.verifier) oprot.writeFieldEnd() if self.pinCode is not None: oprot.writeFieldBegin('pinCode', TType.STRING, 4) oprot.writeString(self.pinCode) oprot.writeFieldEnd() if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 5) oprot.writeI32(self.type) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.authToken) value = (value * 31) ^ hash(self.certificate) value = (value * 31) ^ hash(self.verifier) value = (value * 31) ^ hash(self.pinCode) value = (value * 31) ^ hash(self.type) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class LoginSession: """ Attributes: - tokenKey - expirationTime - applicationType - systemName - accessLocation """ thrift_spec = ( None, # 0 (1, TType.STRING, 'tokenKey', None, None, ), # 1 None, # 2 (3, TType.I64, 'expirationTime', None, None, ), # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 None, # 10 (11, TType.I32, 'applicationType', None, None, ), # 11 (12, TType.STRING, 'systemName', None, None, ), # 12 None, # 13 None, # 14 None, # 15 None, # 16 None, # 17 None, # 18 None, # 19 None, # 20 None, # 21 (22, TType.STRING, 'accessLocation', None, None, ), # 22 ) def __init__(self, tokenKey=None, expirationTime=None, applicationType=None, systemName=None, accessLocation=None,): self.tokenKey = tokenKey self.expirationTime = expirationTime self.applicationType = applicationType self.systemName = systemName self.accessLocation = accessLocation 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.tokenKey = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: self.expirationTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.I32: self.applicationType = iprot.readI32() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: self.systemName = iprot.readString() else: iprot.skip(ftype) elif fid == 22: if ftype == TType.STRING: self.accessLocation = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('LoginSession') if self.tokenKey is not None: oprot.writeFieldBegin('tokenKey', TType.STRING, 1) oprot.writeString(self.tokenKey) oprot.writeFieldEnd() if self.expirationTime is not None: oprot.writeFieldBegin('expirationTime', TType.I64, 3) oprot.writeI64(self.expirationTime) oprot.writeFieldEnd() if self.applicationType is not None: oprot.writeFieldBegin('applicationType', TType.I32, 11) oprot.writeI32(self.applicationType) oprot.writeFieldEnd() if self.systemName is not None: oprot.writeFieldBegin('systemName', TType.STRING, 12) oprot.writeString(self.systemName) oprot.writeFieldEnd() if self.accessLocation is not None: oprot.writeFieldBegin('accessLocation', TType.STRING, 22) oprot.writeString(self.accessLocation) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.tokenKey) value = (value * 31) ^ hash(self.expirationTime) value = (value * 31) ^ hash(self.applicationType) value = (value * 31) ^ hash(self.systemName) value = (value * 31) ^ hash(self.accessLocation) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Message: """ Attributes: - from_ - to - toType - id - createdTime - deliveredTime - text - location - hasContent - contentType - contentPreview - contentMetadata """ thrift_spec = ( None, # 0 (1, TType.STRING, 'from_', None, None, ), # 1 (2, TType.STRING, 'to', None, None, ), # 2 (3, TType.I32, 'toType', None, None, ), # 3 (4, TType.STRING, 'id', None, None, ), # 4 (5, TType.I64, 'createdTime', None, None, ), # 5 (6, TType.I64, 'deliveredTime', None, None, ), # 6 None, # 7 None, # 8 None, # 9 (10, TType.STRING, 'text', None, None, ), # 10 (11, TType.STRUCT, 'location', (Location, Location.thrift_spec), None, ), # 11 None, # 12 None, # 13 (14, TType.BOOL, 'hasContent', None, None, ), # 14 (15, TType.I32, 'contentType', None, None, ), # 15 None, # 16 (17, TType.STRING, 'contentPreview', None, None, ), # 17 (18, TType.MAP, 'contentMetadata', (TType.STRING,None,TType.STRING,None), None, ), # 18 ) def __init__(self, from_=None, to=None, toType=None, id=None, createdTime=None, deliveredTime=None, text=None, location=None, hasContent=None, contentType=None, contentPreview=None, contentMetadata=None,): self.from_ = from_ self.to = to self.toType = toType self.id = id self.createdTime = createdTime self.deliveredTime = deliveredTime self.text = text self.location = location self.hasContent = hasContent self.contentType = contentType self.contentPreview = contentPreview self.contentMetadata = contentMetadata 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.from_ = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.to = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.toType = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.id = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I64: self.createdTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I64: self.deliveredTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: self.text = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRUCT: self.location = Location() self.location.read(iprot) else: iprot.skip(ftype) elif fid == 14: if ftype == TType.BOOL: self.hasContent = iprot.readBool() else: iprot.skip(ftype) elif fid == 15: if ftype == TType.I32: self.contentType = iprot.readI32() else: iprot.skip(ftype) elif fid == 17: if ftype == TType.STRING: self.contentPreview = iprot.readString() else: iprot.skip(ftype) elif fid == 18: if ftype == TType.MAP: self.contentMetadata = {} (_ktype170, _vtype171, _size169 ) = iprot.readMapBegin() for _i173 in xrange(_size169): _key174 = iprot.readString() _val175 = iprot.readString() self.contentMetadata[_key174] = _val175 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Message') if self.from_ is not None: oprot.writeFieldBegin('from_', TType.STRING, 1) oprot.writeString(self.from_) oprot.writeFieldEnd() if self.to is not None: oprot.writeFieldBegin('to', TType.STRING, 2) oprot.writeString(self.to) oprot.writeFieldEnd() if self.toType is not None: oprot.writeFieldBegin('toType', TType.I32, 3) oprot.writeI32(self.toType) oprot.writeFieldEnd() if self.id is not None: oprot.writeFieldBegin('id', TType.STRING, 4) oprot.writeString(self.id) oprot.writeFieldEnd() if self.createdTime is not None: oprot.writeFieldBegin('createdTime', TType.I64, 5) oprot.writeI64(self.createdTime) oprot.writeFieldEnd() if self.deliveredTime is not None: oprot.writeFieldBegin('deliveredTime', TType.I64, 6) oprot.writeI64(self.deliveredTime) oprot.writeFieldEnd() if self.text is not None: oprot.writeFieldBegin('text', TType.STRING, 10) oprot.writeString(self.text) oprot.writeFieldEnd() if self.location is not None: oprot.writeFieldBegin('location', TType.STRUCT, 11) self.location.write(oprot) oprot.writeFieldEnd() if self.hasContent is not None: oprot.writeFieldBegin('hasContent', TType.BOOL, 14) oprot.writeBool(self.hasContent) oprot.writeFieldEnd() if self.contentType is not None: oprot.writeFieldBegin('contentType', TType.I32, 15) oprot.writeI32(self.contentType) oprot.writeFieldEnd() if self.contentPreview is not None: oprot.writeFieldBegin('contentPreview', TType.STRING, 17) oprot.writeString(self.contentPreview) oprot.writeFieldEnd() if self.contentMetadata is not None: oprot.writeFieldBegin('contentMetadata', TType.MAP, 18) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.contentMetadata)) for kiter176,viter177 in self.contentMetadata.items(): oprot.writeString(kiter176) oprot.writeString(viter177) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.from_) value = (value * 31) ^ hash(self.to) value = (value * 31) ^ hash(self.toType) value = (value * 31) ^ hash(self.id) value = (value * 31) ^ hash(self.createdTime) value = (value * 31) ^ hash(self.deliveredTime) value = (value * 31) ^ hash(self.text) value = (value * 31) ^ hash(self.location) value = (value * 31) ^ hash(self.hasContent) value = (value * 31) ^ hash(self.contentType) value = (value * 31) ^ hash(self.contentPreview) value = (value * 31) ^ hash(self.contentMetadata) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class MessageOperation: """ Attributes: - revision - createdTime - type - reqSeq - status - param1 - param2 - param3 - message """ thrift_spec = ( None, # 0 (1, TType.I64, 'revision', None, None, ), # 1 (2, TType.I64, 'createdTime', None, None, ), # 2 (3, TType.I32, 'type', None, None, ), # 3 (4, TType.I32, 'reqSeq', None, None, ), # 4 (5, TType.I32, 'status', None, None, ), # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.STRING, 'param1', None, None, ), # 10 (11, TType.STRING, 'param2', None, None, ), # 11 (12, TType.STRING, 'param3', None, None, ), # 12 None, # 13 None, # 14 None, # 15 None, # 16 None, # 17 None, # 18 None, # 19 (20, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 20 ) def __init__(self, revision=None, createdTime=None, type=None, reqSeq=None, status=None, param1=None, param2=None, param3=None, message=None,): self.revision = revision self.createdTime = createdTime self.type = type self.reqSeq = reqSeq self.status = status self.param1 = param1 self.param2 = param2 self.param3 = param3 self.message = message 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.revision = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.createdTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.status = iprot.readI32() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: self.param1 = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: self.param2 = iprot.readString() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: self.param3 = iprot.readString() else: iprot.skip(ftype) elif fid == 20: if ftype == TType.STRUCT: self.message = Message() self.message.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('MessageOperation') if self.revision is not None: oprot.writeFieldBegin('revision', TType.I64, 1) oprot.writeI64(self.revision) oprot.writeFieldEnd() if self.createdTime is not None: oprot.writeFieldBegin('createdTime', TType.I64, 2) oprot.writeI64(self.createdTime) oprot.writeFieldEnd() if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 3) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 4) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.status is not None: oprot.writeFieldBegin('status', TType.I32, 5) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.param1 is not None: oprot.writeFieldBegin('param1', TType.STRING, 10) oprot.writeString(self.param1) oprot.writeFieldEnd() if self.param2 is not None: oprot.writeFieldBegin('param2', TType.STRING, 11) oprot.writeString(self.param2) oprot.writeFieldEnd() if self.param3 is not None: oprot.writeFieldBegin('param3', TType.STRING, 12) oprot.writeString(self.param3) oprot.writeFieldEnd() if self.message is not None: oprot.writeFieldBegin('message', TType.STRUCT, 20) self.message.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.revision) value = (value * 31) ^ hash(self.createdTime) value = (value * 31) ^ hash(self.type) value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.status) value = (value * 31) ^ hash(self.param1) value = (value * 31) ^ hash(self.param2) value = (value * 31) ^ hash(self.param3) value = (value * 31) ^ hash(self.message) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class MessageOperations: """ Attributes: - operations - endFlag """ thrift_spec = ( None, # 0 (1, TType.LIST, 'operations', (TType.STRUCT,(MessageOperation, MessageOperation.thrift_spec)), None, ), # 1 (2, TType.BOOL, 'endFlag', None, None, ), # 2 ) def __init__(self, operations=None, endFlag=None,): self.operations = operations self.endFlag = endFlag 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.operations = [] (_etype181, _size178) = iprot.readListBegin() for _i182 in xrange(_size178): _elem183 = MessageOperation() _elem183.read(iprot) self.operations.append(_elem183) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: self.endFlag = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('MessageOperations') if self.operations is not None: oprot.writeFieldBegin('operations', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.operations)) for iter184 in self.operations: iter184.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.endFlag is not None: oprot.writeFieldBegin('endFlag', TType.BOOL, 2) oprot.writeBool(self.endFlag) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.operations) value = (value * 31) ^ hash(self.endFlag) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class MetaProfile: """ Attributes: - createTime - regionCode - identities """ thrift_spec = ( None, # 0 (1, TType.I64, 'createTime', None, None, ), # 1 (2, TType.STRING, 'regionCode', None, None, ), # 2 (3, TType.MAP, 'identities', (TType.I32,None,TType.STRING,None), None, ), # 3 ) def __init__(self, createTime=None, regionCode=None, identities=None,): self.createTime = createTime self.regionCode = regionCode self.identities = identities 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.createTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.regionCode = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.identities = {} (_ktype186, _vtype187, _size185 ) = iprot.readMapBegin() for _i189 in xrange(_size185): _key190 = iprot.readI32() _val191 = iprot.readString() self.identities[_key190] = _val191 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('MetaProfile') if self.createTime is not None: oprot.writeFieldBegin('createTime', TType.I64, 1) oprot.writeI64(self.createTime) oprot.writeFieldEnd() if self.regionCode is not None: oprot.writeFieldBegin('regionCode', TType.STRING, 2) oprot.writeString(self.regionCode) oprot.writeFieldEnd() if self.identities is not None: oprot.writeFieldBegin('identities', TType.MAP, 3) oprot.writeMapBegin(TType.I32, TType.STRING, len(self.identities)) for kiter192,viter193 in self.identities.items(): oprot.writeI32(kiter192) oprot.writeString(viter193) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.createTime) value = (value * 31) ^ hash(self.regionCode) value = (value * 31) ^ hash(self.identities) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class NotificationItem: """ Attributes: - id - from_ - to - fromChannel - toChannel - revision - createdTime - content """ thrift_spec = ( None, # 0 (1, TType.STRING, 'id', None, None, ), # 1 (2, TType.STRING, 'from_', None, None, ), # 2 (3, TType.STRING, 'to', None, None, ), # 3 (4, TType.STRING, 'fromChannel', None, None, ), # 4 (5, TType.STRING, 'toChannel', None, None, ), # 5 None, # 6 (7, TType.I64, 'revision', None, None, ), # 7 (8, TType.I64, 'createdTime', None, None, ), # 8 (9, TType.MAP, 'content', (TType.STRING,None,TType.STRING,None), None, ), # 9 ) def __init__(self, id=None, from_=None, to=None, fromChannel=None, toChannel=None, revision=None, createdTime=None, content=None,): self.id = id self.from_ = from_ self.to = to self.fromChannel = fromChannel self.toChannel = toChannel self.revision = revision self.createdTime = createdTime self.content = content 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.id = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.from_ = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.to = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.fromChannel = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.toChannel = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I64: self.revision = iprot.readI64() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.I64: self.createdTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.MAP: self.content = {} (_ktype195, _vtype196, _size194 ) = iprot.readMapBegin() for _i198 in xrange(_size194): _key199 = iprot.readString() _val200 = iprot.readString() self.content[_key199] = _val200 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('NotificationItem') if self.id is not None: oprot.writeFieldBegin('id', TType.STRING, 1) oprot.writeString(self.id) oprot.writeFieldEnd() if self.from_ is not None: oprot.writeFieldBegin('from_', TType.STRING, 2) oprot.writeString(self.from_) oprot.writeFieldEnd() if self.to is not None: oprot.writeFieldBegin('to', TType.STRING, 3) oprot.writeString(self.to) oprot.writeFieldEnd() if self.fromChannel is not None: oprot.writeFieldBegin('fromChannel', TType.STRING, 4) oprot.writeString(self.fromChannel) oprot.writeFieldEnd() if self.toChannel is not None: oprot.writeFieldBegin('toChannel', TType.STRING, 5) oprot.writeString(self.toChannel) oprot.writeFieldEnd() if self.revision is not None: oprot.writeFieldBegin('revision', TType.I64, 7) oprot.writeI64(self.revision) oprot.writeFieldEnd() if self.createdTime is not None: oprot.writeFieldBegin('createdTime', TType.I64, 8) oprot.writeI64(self.createdTime) oprot.writeFieldEnd() if self.content is not None: oprot.writeFieldBegin('content', TType.MAP, 9) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.content)) for kiter201,viter202 in self.content.items(): oprot.writeString(kiter201) oprot.writeString(viter202) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.id) value = (value * 31) ^ hash(self.from_) value = (value * 31) ^ hash(self.to) value = (value * 31) ^ hash(self.fromChannel) value = (value * 31) ^ hash(self.toChannel) value = (value * 31) ^ hash(self.revision) value = (value * 31) ^ hash(self.createdTime) value = (value * 31) ^ hash(self.content) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class NotificationFetchResult: """ Attributes: - fetchMode - itemList """ thrift_spec = ( None, # 0 (1, TType.I32, 'fetchMode', None, None, ), # 1 (2, TType.LIST, 'itemList', (TType.STRUCT,(NotificationItem, NotificationItem.thrift_spec)), None, ), # 2 ) def __init__(self, fetchMode=None, itemList=None,): self.fetchMode = fetchMode self.itemList = itemList 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.fetchMode = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.itemList = [] (_etype206, _size203) = iprot.readListBegin() for _i207 in xrange(_size203): _elem208 = NotificationItem() _elem208.read(iprot) self.itemList.append(_elem208) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('NotificationFetchResult') if self.fetchMode is not None: oprot.writeFieldBegin('fetchMode', TType.I32, 1) oprot.writeI32(self.fetchMode) oprot.writeFieldEnd() if self.itemList is not None: oprot.writeFieldBegin('itemList', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.itemList)) for iter209 in self.itemList: iter209.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.fetchMode) value = (value * 31) ^ hash(self.itemList) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Operation: """ Attributes: - revision - createdTime - type - reqSeq - checksum - status - param1 - param2 - param3 - message """ thrift_spec = ( None, # 0 (1, TType.I64, 'revision', None, None, ), # 1 (2, TType.I64, 'createdTime', None, None, ), # 2 (3, TType.I32, 'type', None, None, ), # 3 (4, TType.I32, 'reqSeq', None, None, ), # 4 (5, TType.STRING, 'checksum', None, None, ), # 5 None, # 6 (7, TType.I32, 'status', None, None, ), # 7 None, # 8 None, # 9 (10, TType.STRING, 'param1', None, None, ), # 10 (11, TType.STRING, 'param2', None, None, ), # 11 (12, TType.STRING, 'param3', None, None, ), # 12 None, # 13 None, # 14 None, # 15 None, # 16 None, # 17 None, # 18 None, # 19 (20, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 20 ) def __init__(self, revision=None, createdTime=None, type=None, reqSeq=None, checksum=None, status=None, param1=None, param2=None, param3=None, message=None,): self.revision = revision self.createdTime = createdTime self.type = type self.reqSeq = reqSeq self.checksum = checksum self.status = status self.param1 = param1 self.param2 = param2 self.param3 = param3 self.message = message 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.revision = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.createdTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.reqSeq = iprot.readI32() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.checksum = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I32: self.status = iprot.readI32() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: self.param1 = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: self.param2 = iprot.readString() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: self.param3 = iprot.readString() else: iprot.skip(ftype) elif fid == 20: if ftype == TType.STRUCT: self.message = Message() self.message.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Operation') if self.revision is not None: oprot.writeFieldBegin('revision', TType.I64, 1) oprot.writeI64(self.revision) oprot.writeFieldEnd() if self.createdTime is not None: oprot.writeFieldBegin('createdTime', TType.I64, 2) oprot.writeI64(self.createdTime) oprot.writeFieldEnd() if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 3) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.reqSeq is not None: oprot.writeFieldBegin('reqSeq', TType.I32, 4) oprot.writeI32(self.reqSeq) oprot.writeFieldEnd() if self.checksum is not None: oprot.writeFieldBegin('checksum', TType.STRING, 5) oprot.writeString(self.checksum) oprot.writeFieldEnd() if self.status is not None: oprot.writeFieldBegin('status', TType.I32, 7) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.param1 is not None: oprot.writeFieldBegin('param1', TType.STRING, 10) oprot.writeString(self.param1) oprot.writeFieldEnd() if self.param2 is not None: oprot.writeFieldBegin('param2', TType.STRING, 11) oprot.writeString(self.param2) oprot.writeFieldEnd() if self.param3 is not None: oprot.writeFieldBegin('param3', TType.STRING, 12) oprot.writeString(self.param3) oprot.writeFieldEnd() if self.message is not None: oprot.writeFieldBegin('message', TType.STRUCT, 20) self.message.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.revision) value = (value * 31) ^ hash(self.createdTime) value = (value * 31) ^ hash(self.type) value = (value * 31) ^ hash(self.reqSeq) value = (value * 31) ^ hash(self.checksum) value = (value * 31) ^ hash(self.status) value = (value * 31) ^ hash(self.param1) value = (value * 31) ^ hash(self.param2) value = (value * 31) ^ hash(self.param3) value = (value * 31) ^ hash(self.message) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class PaymentReservation: """ Attributes: - receiverMid - productId - language - location - currency - price - appStoreCode - messageText - messageTemplate - packageId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'receiverMid', None, None, ), # 1 (2, TType.STRING, 'productId', None, None, ), # 2 (3, TType.STRING, 'language', None, None, ), # 3 (4, TType.STRING, 'location', None, None, ), # 4 (5, TType.STRING, 'currency', None, None, ), # 5 (6, TType.STRING, 'price', None, None, ), # 6 (7, TType.I32, 'appStoreCode', None, None, ), # 7 (8, TType.STRING, 'messageText', None, None, ), # 8 (9, TType.I32, 'messageTemplate', None, None, ), # 9 (10, TType.I64, 'packageId', None, None, ), # 10 ) def __init__(self, receiverMid=None, productId=None, language=None, location=None, currency=None, price=None, appStoreCode=None, messageText=None, messageTemplate=None, packageId=None,): self.receiverMid = receiverMid self.productId = productId self.language = language self.location = location self.currency = currency self.price = price self.appStoreCode = appStoreCode self.messageText = messageText self.messageTemplate = messageTemplate self.packageId = packageId 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.receiverMid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.productId = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.language = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.location = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.currency = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.price = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I32: self.appStoreCode = iprot.readI32() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.messageText = iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.I32: self.messageTemplate = iprot.readI32() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.I64: self.packageId = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('PaymentReservation') if self.receiverMid is not None: oprot.writeFieldBegin('receiverMid', TType.STRING, 1) oprot.writeString(self.receiverMid) oprot.writeFieldEnd() if self.productId is not None: oprot.writeFieldBegin('productId', TType.STRING, 2) oprot.writeString(self.productId) oprot.writeFieldEnd() if self.language is not None: oprot.writeFieldBegin('language', TType.STRING, 3) oprot.writeString(self.language) oprot.writeFieldEnd() if self.location is not None: oprot.writeFieldBegin('location', TType.STRING, 4) oprot.writeString(self.location) oprot.writeFieldEnd() if self.currency is not None: oprot.writeFieldBegin('currency', TType.STRING, 5) oprot.writeString(self.currency) oprot.writeFieldEnd() if self.price is not None: oprot.writeFieldBegin('price', TType.STRING, 6) oprot.writeString(self.price) oprot.writeFieldEnd() if self.appStoreCode is not None: oprot.writeFieldBegin('appStoreCode', TType.I32, 7) oprot.writeI32(self.appStoreCode) oprot.writeFieldEnd() if self.messageText is not None: oprot.writeFieldBegin('messageText', TType.STRING, 8) oprot.writeString(self.messageText) oprot.writeFieldEnd() if self.messageTemplate is not None: oprot.writeFieldBegin('messageTemplate', TType.I32, 9) oprot.writeI32(self.messageTemplate) oprot.writeFieldEnd() if self.packageId is not None: oprot.writeFieldBegin('packageId', TType.I64, 10) oprot.writeI64(self.packageId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.receiverMid) value = (value * 31) ^ hash(self.productId) value = (value * 31) ^ hash(self.language) value = (value * 31) ^ hash(self.location) value = (value * 31) ^ hash(self.currency) value = (value * 31) ^ hash(self.price) value = (value * 31) ^ hash(self.appStoreCode) value = (value * 31) ^ hash(self.messageText) value = (value * 31) ^ hash(self.messageTemplate) value = (value * 31) ^ hash(self.packageId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class PaymentReservationResult: """ Attributes: - orderId - confirmUrl - extras """ thrift_spec = ( None, # 0 (1, TType.STRING, 'orderId', None, None, ), # 1 (2, TType.STRING, 'confirmUrl', None, None, ), # 2 (3, TType.MAP, 'extras', (TType.STRING,None,TType.STRING,None), None, ), # 3 ) def __init__(self, orderId=None, confirmUrl=None, extras=None,): self.orderId = orderId self.confirmUrl = confirmUrl self.extras = extras 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.orderId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.confirmUrl = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.extras = {} (_ktype211, _vtype212, _size210 ) = iprot.readMapBegin() for _i214 in xrange(_size210): _key215 = iprot.readString() _val216 = iprot.readString() self.extras[_key215] = _val216 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('PaymentReservationResult') if self.orderId is not None: oprot.writeFieldBegin('orderId', TType.STRING, 1) oprot.writeString(self.orderId) oprot.writeFieldEnd() if self.confirmUrl is not None: oprot.writeFieldBegin('confirmUrl', TType.STRING, 2) oprot.writeString(self.confirmUrl) oprot.writeFieldEnd() if self.extras is not None: oprot.writeFieldBegin('extras', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.extras)) for kiter217,viter218 in self.extras.items(): oprot.writeString(kiter217) oprot.writeString(viter218) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.orderId) value = (value * 31) ^ hash(self.confirmUrl) value = (value * 31) ^ hash(self.extras) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Product: """ Attributes: - productId - packageId - version - authorName - onSale - validDays - saleType - copyright - title - descriptionText - shopOrderId - fromMid - Tomid - validUntil - priceTier - price - currency - currencySymbol - paymentType - createDate - ownFlag - eventType - urlSchema - downloadUrl - buddyMid - publishSince - newFlag - missionFlag """ thrift_spec = ( None, # 0 (1, TType.STRING, 'productId', None, None, ), # 1 (2, TType.I64, 'packageId', None, None, ), # 2 (3, TType.I32, 'version', None, None, ), # 3 (4, TType.STRING, 'authorName', None, None, ), # 4 (5, TType.BOOL, 'onSale', None, None, ), # 5 (6, TType.I32, 'validDays', None, None, ), # 6 (7, TType.I32, 'saleType', None, None, ), # 7 (8, TType.STRING, 'copyright', None, None, ), # 8 (9, TType.STRING, 'title', None, None, ), # 9 (10, TType.STRING, 'descriptionText', None, None, ), # 10 (11, TType.I64, 'shopOrderId', None, None, ), # 11 (12, TType.STRING, 'fromMid', None, None, ), # 12 (13, TType.STRING, 'Tomid', None, None, ), # 13 (14, TType.I64, 'validUntil', None, None, ), # 14 (15, TType.I32, 'priceTier', None, None, ), # 15 (16, TType.STRING, 'price', None, None, ), # 16 (17, TType.STRING, 'currency', None, None, ), # 17 (18, TType.STRING, 'currencySymbol', None, None, ), # 18 (19, TType.I32, 'paymentType', None, None, ), # 19 (20, TType.I64, 'createDate', None, None, ), # 20 (21, TType.BOOL, 'ownFlag', None, None, ), # 21 (22, TType.I32, 'eventType', None, None, ), # 22 (23, TType.STRING, 'urlSchema', None, None, ), # 23 (24, TType.STRING, 'downloadUrl', None, None, ), # 24 (25, TType.STRING, 'buddyMid', None, None, ), # 25 (26, TType.I64, 'publishSince', None, None, ), # 26 (27, TType.BOOL, 'newFlag', None, None, ), # 27 (28, TType.BOOL, 'missionFlag', None, None, ), # 28 ) def __init__(self, productId=None, packageId=None, version=None, authorName=None, onSale=None, validDays=None, saleType=None, copyright=None, title=None, descriptionText=None, shopOrderId=None, fromMid=None, Tomid=None, validUntil=None, priceTier=None, price=None, currency=None, currencySymbol=None, paymentType=None, createDate=None, ownFlag=None, eventType=None, urlSchema=None, downloadUrl=None, buddyMid=None, publishSince=None, newFlag=None, missionFlag=None,): self.productId = productId self.packageId = packageId self.version = version self.authorName = authorName self.onSale = onSale self.validDays = validDays self.saleType = saleType self.copyright = copyright self.title = title self.descriptionText = descriptionText self.shopOrderId = shopOrderId self.fromMid = fromMid self.Tomid = Tomid self.validUntil = validUntil self.priceTier = priceTier self.price = price self.currency = currency self.currencySymbol = currencySymbol self.paymentType = paymentType self.createDate = createDate self.ownFlag = ownFlag self.eventType = eventType self.urlSchema = urlSchema self.downloadUrl = downloadUrl self.buddyMid = buddyMid self.publishSince = publishSince self.newFlag = newFlag self.missionFlag = missionFlag 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.productId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.packageId = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.version = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.authorName = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: self.onSale = iprot.readBool() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I32: self.validDays = iprot.readI32() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I32: self.saleType = iprot.readI32() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.copyright = iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: self.title = iprot.readString() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: self.descriptionText = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.I64: self.shopOrderId = iprot.readI64() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: self.fromMid = iprot.readString() else: iprot.skip(ftype) elif fid == 13: if ftype == TType.STRING: self.Tomid = iprot.readString() else: iprot.skip(ftype) elif fid == 14: if ftype == TType.I64: self.validUntil = iprot.readI64() else: iprot.skip(ftype) elif fid == 15: if ftype == TType.I32: self.priceTier = iprot.readI32() else: iprot.skip(ftype) elif fid == 16: if ftype == TType.STRING: self.price = iprot.readString() else: iprot.skip(ftype) elif fid == 17: if ftype == TType.STRING: self.currency = iprot.readString() else: iprot.skip(ftype) elif fid == 18: if ftype == TType.STRING: self.currencySymbol = iprot.readString() else: iprot.skip(ftype) elif fid == 19: if ftype == TType.I32: self.paymentType = iprot.readI32() else: iprot.skip(ftype) elif fid == 20: if ftype == TType.I64: self.createDate = iprot.readI64() else: iprot.skip(ftype) elif fid == 21: if ftype == TType.BOOL: self.ownFlag = iprot.readBool() else: iprot.skip(ftype) elif fid == 22: if ftype == TType.I32: self.eventType = iprot.readI32() else: iprot.skip(ftype) elif fid == 23: if ftype == TType.STRING: self.urlSchema = iprot.readString() else: iprot.skip(ftype) elif fid == 24: if ftype == TType.STRING: self.downloadUrl = iprot.readString() else: iprot.skip(ftype) elif fid == 25: if ftype == TType.STRING: self.buddyMid = iprot.readString() else: iprot.skip(ftype) elif fid == 26: if ftype == TType.I64: self.publishSince = iprot.readI64() else: iprot.skip(ftype) elif fid == 27: if ftype == TType.BOOL: self.newFlag = iprot.readBool() else: iprot.skip(ftype) elif fid == 28: if ftype == TType.BOOL: self.missionFlag = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Product') if self.productId is not None: oprot.writeFieldBegin('productId', TType.STRING, 1) oprot.writeString(self.productId) oprot.writeFieldEnd() if self.packageId is not None: oprot.writeFieldBegin('packageId', TType.I64, 2) oprot.writeI64(self.packageId) oprot.writeFieldEnd() if self.version is not None: oprot.writeFieldBegin('version', TType.I32, 3) oprot.writeI32(self.version) oprot.writeFieldEnd() if self.authorName is not None: oprot.writeFieldBegin('authorName', TType.STRING, 4) oprot.writeString(self.authorName) oprot.writeFieldEnd() if self.onSale is not None: oprot.writeFieldBegin('onSale', TType.BOOL, 5) oprot.writeBool(self.onSale) oprot.writeFieldEnd() if self.validDays is not None: oprot.writeFieldBegin('validDays', TType.I32, 6) oprot.writeI32(self.validDays) oprot.writeFieldEnd() if self.saleType is not None: oprot.writeFieldBegin('saleType', TType.I32, 7) oprot.writeI32(self.saleType) oprot.writeFieldEnd() if self.copyright is not None: oprot.writeFieldBegin('copyright', TType.STRING, 8) oprot.writeString(self.copyright) oprot.writeFieldEnd() if self.title is not None: oprot.writeFieldBegin('title', TType.STRING, 9) oprot.writeString(self.title) oprot.writeFieldEnd() if self.descriptionText is not None: oprot.writeFieldBegin('descriptionText', TType.STRING, 10) oprot.writeString(self.descriptionText) oprot.writeFieldEnd() if self.shopOrderId is not None: oprot.writeFieldBegin('shopOrderId', TType.I64, 11) oprot.writeI64(self.shopOrderId) oprot.writeFieldEnd() if self.fromMid is not None: oprot.writeFieldBegin('fromMid', TType.STRING, 12) oprot.writeString(self.fromMid) oprot.writeFieldEnd() if self.Tomid is not None: oprot.writeFieldBegin('Tomid', TType.STRING, 13) oprot.writeString(self.Tomid) oprot.writeFieldEnd() if self.validUntil is not None: oprot.writeFieldBegin('validUntil', TType.I64, 14) oprot.writeI64(self.validUntil) oprot.writeFieldEnd() if self.priceTier is not None: oprot.writeFieldBegin('priceTier', TType.I32, 15) oprot.writeI32(self.priceTier) oprot.writeFieldEnd() if self.price is not None: oprot.writeFieldBegin('price', TType.STRING, 16) oprot.writeString(self.price) oprot.writeFieldEnd() if self.currency is not None: oprot.writeFieldBegin('currency', TType.STRING, 17) oprot.writeString(self.currency) oprot.writeFieldEnd() if self.currencySymbol is not None: oprot.writeFieldBegin('currencySymbol', TType.STRING, 18) oprot.writeString(self.currencySymbol) oprot.writeFieldEnd() if self.paymentType is not None: oprot.writeFieldBegin('paymentType', TType.I32, 19) oprot.writeI32(self.paymentType) oprot.writeFieldEnd() if self.createDate is not None: oprot.writeFieldBegin('createDate', TType.I64, 20) oprot.writeI64(self.createDate) oprot.writeFieldEnd() if self.ownFlag is not None: oprot.writeFieldBegin('ownFlag', TType.BOOL, 21) oprot.writeBool(self.ownFlag) oprot.writeFieldEnd() if self.eventType is not None: oprot.writeFieldBegin('eventType', TType.I32, 22) oprot.writeI32(self.eventType) oprot.writeFieldEnd() if self.urlSchema is not None: oprot.writeFieldBegin('urlSchema', TType.STRING, 23) oprot.writeString(self.urlSchema) oprot.writeFieldEnd() if self.downloadUrl is not None: oprot.writeFieldBegin('downloadUrl', TType.STRING, 24) oprot.writeString(self.downloadUrl) oprot.writeFieldEnd() if self.buddyMid is not None: oprot.writeFieldBegin('buddyMid', TType.STRING, 25) oprot.writeString(self.buddyMid) oprot.writeFieldEnd() if self.publishSince is not None: oprot.writeFieldBegin('publishSince', TType.I64, 26) oprot.writeI64(self.publishSince) oprot.writeFieldEnd() if self.newFlag is not None: oprot.writeFieldBegin('newFlag', TType.BOOL, 27) oprot.writeBool(self.newFlag) oprot.writeFieldEnd() if self.missionFlag is not None: oprot.writeFieldBegin('missionFlag', TType.BOOL, 28) oprot.writeBool(self.missionFlag) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.productId) value = (value * 31) ^ hash(self.packageId) value = (value * 31) ^ hash(self.version) value = (value * 31) ^ hash(self.authorName) value = (value * 31) ^ hash(self.onSale) value = (value * 31) ^ hash(self.validDays) value = (value * 31) ^ hash(self.saleType) value = (value * 31) ^ hash(self.copyright) value = (value * 31) ^ hash(self.title) value = (value * 31) ^ hash(self.descriptionText) value = (value * 31) ^ hash(self.shopOrderId) value = (value * 31) ^ hash(self.fromMid) value = (value * 31) ^ hash(self.Tomid) value = (value * 31) ^ hash(self.validUntil) value = (value * 31) ^ hash(self.priceTier) value = (value * 31) ^ hash(self.price) value = (value * 31) ^ hash(self.currency) value = (value * 31) ^ hash(self.currencySymbol) value = (value * 31) ^ hash(self.paymentType) value = (value * 31) ^ hash(self.createDate) value = (value * 31) ^ hash(self.ownFlag) value = (value * 31) ^ hash(self.eventType) value = (value * 31) ^ hash(self.urlSchema) value = (value * 31) ^ hash(self.downloadUrl) value = (value * 31) ^ hash(self.buddyMid) value = (value * 31) ^ hash(self.publishSince) value = (value * 31) ^ hash(self.newFlag) value = (value * 31) ^ hash(self.missionFlag) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ProductList: """ Attributes: - hasNext - bannerSequence - bannerTargetType - bannerTargetPath - productList - bannerLang """ thrift_spec = ( None, # 0 (1, TType.BOOL, 'hasNext', None, None, ), # 1 None, # 2 None, # 3 (4, TType.I64, 'bannerSequence', None, None, ), # 4 (5, TType.I32, 'bannerTargetType', None, None, ), # 5 (6, TType.STRING, 'bannerTargetPath', None, None, ), # 6 (7, TType.LIST, 'productList', (TType.STRUCT,(Product, Product.thrift_spec)), None, ), # 7 (8, TType.STRING, 'bannerLang', None, None, ), # 8 ) def __init__(self, hasNext=None, bannerSequence=None, bannerTargetType=None, bannerTargetPath=None, productList=None, bannerLang=None,): self.hasNext = hasNext self.bannerSequence = bannerSequence self.bannerTargetType = bannerTargetType self.bannerTargetPath = bannerTargetPath self.productList = productList self.bannerLang = bannerLang 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.BOOL: self.hasNext = iprot.readBool() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I64: self.bannerSequence = iprot.readI64() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: self.bannerTargetType = iprot.readI32() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.bannerTargetPath = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.productList = [] (_etype222, _size219) = iprot.readListBegin() for _i223 in xrange(_size219): _elem224 = Product() _elem224.read(iprot) self.productList.append(_elem224) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: self.bannerLang = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ProductList') if self.hasNext is not None: oprot.writeFieldBegin('hasNext', TType.BOOL, 1) oprot.writeBool(self.hasNext) oprot.writeFieldEnd() if self.bannerSequence is not None: oprot.writeFieldBegin('bannerSequence', TType.I64, 4) oprot.writeI64(self.bannerSequence) oprot.writeFieldEnd() if self.bannerTargetType is not None: oprot.writeFieldBegin('bannerTargetType', TType.I32, 5) oprot.writeI32(self.bannerTargetType) oprot.writeFieldEnd() if self.bannerTargetPath is not None: oprot.writeFieldBegin('bannerTargetPath', TType.STRING, 6) oprot.writeString(self.bannerTargetPath) oprot.writeFieldEnd() if self.productList is not None: oprot.writeFieldBegin('productList', TType.LIST, 7) oprot.writeListBegin(TType.STRUCT, len(self.productList)) for iter225 in self.productList: iter225.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.bannerLang is not None: oprot.writeFieldBegin('bannerLang', TType.STRING, 8) oprot.writeString(self.bannerLang) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.hasNext) value = (value * 31) ^ hash(self.bannerSequence) value = (value * 31) ^ hash(self.bannerTargetType) value = (value * 31) ^ hash(self.bannerTargetPath) value = (value * 31) ^ hash(self.productList) value = (value * 31) ^ hash(self.bannerLang) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ProductSimple: """ Attributes: - productId - packageId - version - onSale - validUntil """ thrift_spec = ( None, # 0 (1, TType.STRING, 'productId', None, None, ), # 1 (2, TType.I64, 'packageId', None, None, ), # 2 (3, TType.I32, 'version', None, None, ), # 3 (4, TType.BOOL, 'onSale', None, None, ), # 4 (5, TType.I64, 'validUntil', None, None, ), # 5 ) def __init__(self, productId=None, packageId=None, version=None, onSale=None, validUntil=None,): self.productId = productId self.packageId = packageId self.version = version self.onSale = onSale self.validUntil = validUntil 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.productId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.packageId = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.version = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: self.onSale = iprot.readBool() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I64: self.validUntil = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ProductSimple') if self.productId is not None: oprot.writeFieldBegin('productId', TType.STRING, 1) oprot.writeString(self.productId) oprot.writeFieldEnd() if self.packageId is not None: oprot.writeFieldBegin('packageId', TType.I64, 2) oprot.writeI64(self.packageId) oprot.writeFieldEnd() if self.version is not None: oprot.writeFieldBegin('version', TType.I32, 3) oprot.writeI32(self.version) oprot.writeFieldEnd() if self.onSale is not None: oprot.writeFieldBegin('onSale', TType.BOOL, 4) oprot.writeBool(self.onSale) oprot.writeFieldEnd() if self.validUntil is not None: oprot.writeFieldBegin('validUntil', TType.I64, 5) oprot.writeI64(self.validUntil) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.productId) value = (value * 31) ^ hash(self.packageId) value = (value * 31) ^ hash(self.version) value = (value * 31) ^ hash(self.onSale) value = (value * 31) ^ hash(self.validUntil) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ProductSimpleList: """ Attributes: - hasNext - reinvokeHour - lastVersionSeq - productList - recentNewReleaseDate - recentEventReleaseDate """ thrift_spec = ( None, # 0 (1, TType.BOOL, 'hasNext', None, None, ), # 1 (2, TType.I32, 'reinvokeHour', None, None, ), # 2 (3, TType.I64, 'lastVersionSeq', None, None, ), # 3 (4, TType.LIST, 'productList', (TType.STRUCT,(ProductSimple, ProductSimple.thrift_spec)), None, ), # 4 (5, TType.I64, 'recentNewReleaseDate', None, None, ), # 5 (6, TType.I64, 'recentEventReleaseDate', None, None, ), # 6 ) def __init__(self, hasNext=None, reinvokeHour=None, lastVersionSeq=None, productList=None, recentNewReleaseDate=None, recentEventReleaseDate=None,): self.hasNext = hasNext self.reinvokeHour = reinvokeHour self.lastVersionSeq = lastVersionSeq self.productList = productList self.recentNewReleaseDate = recentNewReleaseDate self.recentEventReleaseDate = recentEventReleaseDate 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.BOOL: self.hasNext = iprot.readBool() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.reinvokeHour = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: self.lastVersionSeq = iprot.readI64() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.productList = [] (_etype229, _size226) = iprot.readListBegin() for _i230 in xrange(_size226): _elem231 = ProductSimple() _elem231.read(iprot) self.productList.append(_elem231) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I64: self.recentNewReleaseDate = iprot.readI64() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I64: self.recentEventReleaseDate = iprot.readI64() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ProductSimpleList') if self.hasNext is not None: oprot.writeFieldBegin('hasNext', TType.BOOL, 1) oprot.writeBool(self.hasNext) oprot.writeFieldEnd() if self.reinvokeHour is not None: oprot.writeFieldBegin('reinvokeHour', TType.I32, 2) oprot.writeI32(self.reinvokeHour) oprot.writeFieldEnd() if self.lastVersionSeq is not None: oprot.writeFieldBegin('lastVersionSeq', TType.I64, 3) oprot.writeI64(self.lastVersionSeq) oprot.writeFieldEnd() if self.productList is not None: oprot.writeFieldBegin('productList', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.productList)) for iter232 in self.productList: iter232.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.recentNewReleaseDate is not None: oprot.writeFieldBegin('recentNewReleaseDate', TType.I64, 5) oprot.writeI64(self.recentNewReleaseDate) oprot.writeFieldEnd() if self.recentEventReleaseDate is not None: oprot.writeFieldBegin('recentEventReleaseDate', TType.I64, 6) oprot.writeI64(self.recentEventReleaseDate) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.hasNext) value = (value * 31) ^ hash(self.reinvokeHour) value = (value * 31) ^ hash(self.lastVersionSeq) value = (value * 31) ^ hash(self.productList) value = (value * 31) ^ hash(self.recentNewReleaseDate) value = (value * 31) ^ hash(self.recentEventReleaseDate) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Profile: """ Attributes: - mid - userid - phone - email - regionCode - displayName - phoneticName - pictureStatus - thumbnailUrl - statusMessage - allowSearchByUserid - allowSearchByEmail - picturePath """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 None, # 2 (3, TType.STRING, 'userid', None, None, ), # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.STRING, 'phone', None, None, ), # 10 (11, TType.STRING, 'email', None, None, ), # 11 (12, TType.STRING, 'regionCode', None, None, ), # 12 None, # 13 None, # 14 None, # 15 None, # 16 None, # 17 None, # 18 None, # 19 (20, TType.STRING, 'displayName', None, None, ), # 20 (21, TType.STRING, 'phoneticName', None, None, ), # 21 (22, TType.STRING, 'pictureStatus', None, None, ), # 22 (23, TType.STRING, 'thumbnailUrl', None, None, ), # 23 (24, TType.STRING, 'statusMessage', None, None, ), # 24 None, # 25 None, # 26 None, # 27 None, # 28 None, # 29 None, # 30 (31, TType.BOOL, 'allowSearchByUserid', None, None, ), # 31 (32, TType.BOOL, 'allowSearchByEmail', None, None, ), # 32 (33, TType.STRING, 'picturePath', None, None, ), # 33 ) def __init__(self, mid=None, userid=None, phone=None, email=None, regionCode=None, displayName=None, phoneticName=None, pictureStatus=None, thumbnailUrl=None, statusMessage=None, allowSearchByUserid=None, allowSearchByEmail=None, picturePath=None,): self.mid = mid self.userid = userid self.phone = phone self.email = email self.regionCode = regionCode self.displayName = displayName self.phoneticName = phoneticName self.pictureStatus = pictureStatus self.thumbnailUrl = thumbnailUrl self.statusMessage = statusMessage self.allowSearchByUserid = allowSearchByUserid self.allowSearchByEmail = allowSearchByEmail self.picturePath = picturePath 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.userid = iprot.readString() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: self.phone = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: self.email = iprot.readString() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: self.regionCode = iprot.readString() else: iprot.skip(ftype) elif fid == 20: if ftype == TType.STRING: self.displayName = iprot.readString() else: iprot.skip(ftype) elif fid == 21: if ftype == TType.STRING: self.phoneticName = iprot.readString() else: iprot.skip(ftype) elif fid == 22: if ftype == TType.STRING: self.pictureStatus = iprot.readString() else: iprot.skip(ftype) elif fid == 23: if ftype == TType.STRING: self.thumbnailUrl = iprot.readString() else: iprot.skip(ftype) elif fid == 24: if ftype == TType.STRING: self.statusMessage = iprot.readString() else: iprot.skip(ftype) elif fid == 31: if ftype == TType.BOOL: self.allowSearchByUserid = iprot.readBool() else: iprot.skip(ftype) elif fid == 32: if ftype == TType.BOOL: self.allowSearchByEmail = iprot.readBool() else: iprot.skip(ftype) elif fid == 33: if ftype == TType.STRING: self.picturePath = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Profile') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.userid is not None: oprot.writeFieldBegin('userid', TType.STRING, 3) oprot.writeString(self.userid) oprot.writeFieldEnd() if self.phone is not None: oprot.writeFieldBegin('phone', TType.STRING, 10) oprot.writeString(self.phone) oprot.writeFieldEnd() if self.email is not None: oprot.writeFieldBegin('email', TType.STRING, 11) oprot.writeString(self.email) oprot.writeFieldEnd() if self.regionCode is not None: oprot.writeFieldBegin('regionCode', TType.STRING, 12) oprot.writeString(self.regionCode) oprot.writeFieldEnd() if self.displayName is not None: oprot.writeFieldBegin('displayName', TType.STRING, 20) oprot.writeString(self.displayName) oprot.writeFieldEnd() if self.phoneticName is not None: oprot.writeFieldBegin('phoneticName', TType.STRING, 21) oprot.writeString(self.phoneticName) oprot.writeFieldEnd() if self.pictureStatus is not None: oprot.writeFieldBegin('pictureStatus', TType.STRING, 22) oprot.writeString(self.pictureStatus) oprot.writeFieldEnd() if self.thumbnailUrl is not None: oprot.writeFieldBegin('thumbnailUrl', TType.STRING, 23) oprot.writeString(self.thumbnailUrl) oprot.writeFieldEnd() if self.statusMessage is not None: oprot.writeFieldBegin('statusMessage', TType.STRING, 24) oprot.writeString(self.statusMessage) oprot.writeFieldEnd() if self.allowSearchByUserid is not None: oprot.writeFieldBegin('allowSearchByUserid', TType.BOOL, 31) oprot.writeBool(self.allowSearchByUserid) oprot.writeFieldEnd() if self.allowSearchByEmail is not None: oprot.writeFieldBegin('allowSearchByEmail', TType.BOOL, 32) oprot.writeBool(self.allowSearchByEmail) oprot.writeFieldEnd() if self.picturePath is not None: oprot.writeFieldBegin('picturePath', TType.STRING, 33) oprot.writeString(self.picturePath) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.userid) value = (value * 31) ^ hash(self.phone) value = (value * 31) ^ hash(self.email) value = (value * 31) ^ hash(self.regionCode) value = (value * 31) ^ hash(self.displayName) value = (value * 31) ^ hash(self.phoneticName) value = (value * 31) ^ hash(self.pictureStatus) value = (value * 31) ^ hash(self.thumbnailUrl) value = (value * 31) ^ hash(self.statusMessage) value = (value * 31) ^ hash(self.allowSearchByUserid) value = (value * 31) ^ hash(self.allowSearchByEmail) value = (value * 31) ^ hash(self.picturePath) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class ProximityMatchCandidateResult: """ Attributes: - users - buddies """ thrift_spec = ( None, # 0 (1, TType.LIST, 'users', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 1 (2, TType.LIST, 'buddies', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 2 ) def __init__(self, users=None, buddies=None,): self.users = users self.buddies = buddies 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.users = [] (_etype236, _size233) = iprot.readListBegin() for _i237 in xrange(_size233): _elem238 = Contact() _elem238.read(iprot) self.users.append(_elem238) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.buddies = [] (_etype242, _size239) = iprot.readListBegin() for _i243 in xrange(_size239): _elem244 = Contact() _elem244.read(iprot) self.buddies.append(_elem244) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('ProximityMatchCandidateResult') if self.users is not None: oprot.writeFieldBegin('users', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.users)) for iter245 in self.users: iter245.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.buddies is not None: oprot.writeFieldBegin('buddies', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.buddies)) for iter246 in self.buddies: iter246.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.users) value = (value * 31) ^ hash(self.buddies) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class RegisterWithSnsIdResult: """ Attributes: - authToken - userCreated """ thrift_spec = ( None, # 0 (1, TType.STRING, 'authToken', None, None, ), # 1 (2, TType.BOOL, 'userCreated', None, None, ), # 2 ) def __init__(self, authToken=None, userCreated=None,): self.authToken = authToken self.userCreated = userCreated 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.authToken = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: self.userCreated = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('RegisterWithSnsIdResult') if self.authToken is not None: oprot.writeFieldBegin('authToken', TType.STRING, 1) oprot.writeString(self.authToken) oprot.writeFieldEnd() if self.userCreated is not None: oprot.writeFieldBegin('userCreated', TType.BOOL, 2) oprot.writeBool(self.userCreated) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.authToken) value = (value * 31) ^ hash(self.userCreated) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class RequestTokenResponse: """ Attributes: - requestToken - returnUrl """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestToken', None, None, ), # 1 (2, TType.STRING, 'returnUrl', None, None, ), # 2 ) def __init__(self, requestToken=None, returnUrl=None,): self.requestToken = requestToken self.returnUrl = returnUrl 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.requestToken = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.returnUrl = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('RequestTokenResponse') if self.requestToken is not None: oprot.writeFieldBegin('requestToken', TType.STRING, 1) oprot.writeString(self.requestToken) oprot.writeFieldEnd() if self.returnUrl is not None: oprot.writeFieldBegin('returnUrl', TType.STRING, 2) oprot.writeString(self.returnUrl) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestToken) value = (value * 31) ^ hash(self.returnUrl) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Room: """ Attributes: - mid - createdTime - contacts - notificationDisabled """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 (2, TType.I64, 'createdTime', None, None, ), # 2 None, # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.LIST, 'contacts', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 10 None, # 11 None, # 12 None, # 13 None, # 14 None, # 15 None, # 16 None, # 17 None, # 18 None, # 19 None, # 20 None, # 21 None, # 22 None, # 23 None, # 24 None, # 25 None, # 26 None, # 27 None, # 28 None, # 29 None, # 30 (31, TType.BOOL, 'notificationDisabled', None, None, ), # 31 ) def __init__(self, mid=None, createdTime=None, contacts=None, notificationDisabled=None,): self.mid = mid self.createdTime = createdTime self.contacts = contacts self.notificationDisabled = notificationDisabled 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: self.createdTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.LIST: self.contacts = [] (_etype250, _size247) = iprot.readListBegin() for _i251 in xrange(_size247): _elem252 = Contact() _elem252.read(iprot) self.contacts.append(_elem252) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 31: if ftype == TType.BOOL: self.notificationDisabled = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Room') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.createdTime is not None: oprot.writeFieldBegin('createdTime', TType.I64, 2) oprot.writeI64(self.createdTime) oprot.writeFieldEnd() if self.contacts is not None: oprot.writeFieldBegin('contacts', TType.LIST, 10) oprot.writeListBegin(TType.STRUCT, len(self.contacts)) for iter253 in self.contacts: iter253.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.notificationDisabled is not None: oprot.writeFieldBegin('notificationDisabled', TType.BOOL, 31) oprot.writeBool(self.notificationDisabled) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.createdTime) value = (value * 31) ^ hash(self.contacts) value = (value * 31) ^ hash(self.notificationDisabled) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class RSAKey: """ Attributes: - keynm - nvalue - evalue - sessionKey """ thrift_spec = ( None, # 0 (1, TType.STRING, 'keynm', None, None, ), # 1 (2, TType.STRING, 'nvalue', None, None, ), # 2 (3, TType.STRING, 'evalue', None, None, ), # 3 (4, TType.STRING, 'sessionKey', None, None, ), # 4 ) def __init__(self, keynm=None, nvalue=None, evalue=None, sessionKey=None,): self.keynm = keynm self.nvalue = nvalue self.evalue = evalue self.sessionKey = sessionKey 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.keynm = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.nvalue = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.evalue = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.sessionKey = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('RSAKey') if self.keynm is not None: oprot.writeFieldBegin('keynm', TType.STRING, 1) oprot.writeString(self.keynm) oprot.writeFieldEnd() if self.nvalue is not None: oprot.writeFieldBegin('nvalue', TType.STRING, 2) oprot.writeString(self.nvalue) oprot.writeFieldEnd() if self.evalue is not None: oprot.writeFieldBegin('evalue', TType.STRING, 3) oprot.writeString(self.evalue) oprot.writeFieldEnd() if self.sessionKey is not None: oprot.writeFieldBegin('sessionKey', TType.STRING, 4) oprot.writeString(self.sessionKey) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.keynm) value = (value * 31) ^ hash(self.nvalue) value = (value * 31) ^ hash(self.evalue) value = (value * 31) ^ hash(self.sessionKey) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SendBuddyMessageResult: """ Attributes: - requestId - state - messageId - eventNo - receiverCount - successCount - failCount - cancelCount - blockCount - unregisterCount - timestamp - message """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.I32, 'state', None, None, ), # 2 (3, TType.STRING, 'messageId', None, None, ), # 3 (4, TType.I32, 'eventNo', None, None, ), # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 None, # 10 (11, TType.I64, 'receiverCount', None, None, ), # 11 (12, TType.I64, 'successCount', None, None, ), # 12 (13, TType.I64, 'failCount', None, None, ), # 13 (14, TType.I64, 'cancelCount', None, None, ), # 14 (15, TType.I64, 'blockCount', None, None, ), # 15 (16, TType.I64, 'unregisterCount', None, None, ), # 16 None, # 17 None, # 18 None, # 19 None, # 20 (21, TType.I64, 'timestamp', None, None, ), # 21 (22, TType.STRING, 'message', None, None, ), # 22 ) def __init__(self, requestId=None, state=None, messageId=None, eventNo=None, receiverCount=None, successCount=None, failCount=None, cancelCount=None, blockCount=None, unregisterCount=None, timestamp=None, message=None,): self.requestId = requestId self.state = state self.messageId = messageId self.eventNo = eventNo self.receiverCount = receiverCount self.successCount = successCount self.failCount = failCount self.cancelCount = cancelCount self.blockCount = blockCount self.unregisterCount = unregisterCount self.timestamp = timestamp self.message = message 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.state = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.messageId = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: self.eventNo = iprot.readI32() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.I64: self.receiverCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.I64: self.successCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 13: if ftype == TType.I64: self.failCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 14: if ftype == TType.I64: self.cancelCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 15: if ftype == TType.I64: self.blockCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 16: if ftype == TType.I64: self.unregisterCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 21: if ftype == TType.I64: self.timestamp = iprot.readI64() else: iprot.skip(ftype) elif fid == 22: if ftype == TType.STRING: self.message = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SendBuddyMessageResult') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.state is not None: oprot.writeFieldBegin('state', TType.I32, 2) oprot.writeI32(self.state) oprot.writeFieldEnd() if self.messageId is not None: oprot.writeFieldBegin('messageId', TType.STRING, 3) oprot.writeString(self.messageId) oprot.writeFieldEnd() if self.eventNo is not None: oprot.writeFieldBegin('eventNo', TType.I32, 4) oprot.writeI32(self.eventNo) oprot.writeFieldEnd() if self.receiverCount is not None: oprot.writeFieldBegin('receiverCount', TType.I64, 11) oprot.writeI64(self.receiverCount) oprot.writeFieldEnd() if self.successCount is not None: oprot.writeFieldBegin('successCount', TType.I64, 12) oprot.writeI64(self.successCount) oprot.writeFieldEnd() if self.failCount is not None: oprot.writeFieldBegin('failCount', TType.I64, 13) oprot.writeI64(self.failCount) oprot.writeFieldEnd() if self.cancelCount is not None: oprot.writeFieldBegin('cancelCount', TType.I64, 14) oprot.writeI64(self.cancelCount) oprot.writeFieldEnd() if self.blockCount is not None: oprot.writeFieldBegin('blockCount', TType.I64, 15) oprot.writeI64(self.blockCount) oprot.writeFieldEnd() if self.unregisterCount is not None: oprot.writeFieldBegin('unregisterCount', TType.I64, 16) oprot.writeI64(self.unregisterCount) oprot.writeFieldEnd() if self.timestamp is not None: oprot.writeFieldBegin('timestamp', TType.I64, 21) oprot.writeI64(self.timestamp) oprot.writeFieldEnd() if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 22) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.state) value = (value * 31) ^ hash(self.messageId) value = (value * 31) ^ hash(self.eventNo) value = (value * 31) ^ hash(self.receiverCount) value = (value * 31) ^ hash(self.successCount) value = (value * 31) ^ hash(self.failCount) value = (value * 31) ^ hash(self.cancelCount) value = (value * 31) ^ hash(self.blockCount) value = (value * 31) ^ hash(self.unregisterCount) value = (value * 31) ^ hash(self.timestamp) value = (value * 31) ^ hash(self.message) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SetBuddyOnAirResult: """ Attributes: - requestId - state - eventNo - receiverCount - successCount - failCount - cancelCount - unregisterCount - timestamp - message """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.I32, 'state', None, None, ), # 2 (3, TType.I32, 'eventNo', None, None, ), # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 None, # 10 (11, TType.I64, 'receiverCount', None, None, ), # 11 (12, TType.I64, 'successCount', None, None, ), # 12 (13, TType.I64, 'failCount', None, None, ), # 13 (14, TType.I64, 'cancelCount', None, None, ), # 14 (15, TType.I64, 'unregisterCount', None, None, ), # 15 None, # 16 None, # 17 None, # 18 None, # 19 None, # 20 (21, TType.I64, 'timestamp', None, None, ), # 21 (22, TType.STRING, 'message', None, None, ), # 22 ) def __init__(self, requestId=None, state=None, eventNo=None, receiverCount=None, successCount=None, failCount=None, cancelCount=None, unregisterCount=None, timestamp=None, message=None,): self.requestId = requestId self.state = state self.eventNo = eventNo self.receiverCount = receiverCount self.successCount = successCount self.failCount = failCount self.cancelCount = cancelCount self.unregisterCount = unregisterCount self.timestamp = timestamp self.message = message 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.state = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.eventNo = iprot.readI32() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.I64: self.receiverCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.I64: self.successCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 13: if ftype == TType.I64: self.failCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 14: if ftype == TType.I64: self.cancelCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 15: if ftype == TType.I64: self.unregisterCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 21: if ftype == TType.I64: self.timestamp = iprot.readI64() else: iprot.skip(ftype) elif fid == 22: if ftype == TType.STRING: self.message = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SetBuddyOnAirResult') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.state is not None: oprot.writeFieldBegin('state', TType.I32, 2) oprot.writeI32(self.state) oprot.writeFieldEnd() if self.eventNo is not None: oprot.writeFieldBegin('eventNo', TType.I32, 3) oprot.writeI32(self.eventNo) oprot.writeFieldEnd() if self.receiverCount is not None: oprot.writeFieldBegin('receiverCount', TType.I64, 11) oprot.writeI64(self.receiverCount) oprot.writeFieldEnd() if self.successCount is not None: oprot.writeFieldBegin('successCount', TType.I64, 12) oprot.writeI64(self.successCount) oprot.writeFieldEnd() if self.failCount is not None: oprot.writeFieldBegin('failCount', TType.I64, 13) oprot.writeI64(self.failCount) oprot.writeFieldEnd() if self.cancelCount is not None: oprot.writeFieldBegin('cancelCount', TType.I64, 14) oprot.writeI64(self.cancelCount) oprot.writeFieldEnd() if self.unregisterCount is not None: oprot.writeFieldBegin('unregisterCount', TType.I64, 15) oprot.writeI64(self.unregisterCount) oprot.writeFieldEnd() if self.timestamp is not None: oprot.writeFieldBegin('timestamp', TType.I64, 21) oprot.writeI64(self.timestamp) oprot.writeFieldEnd() if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 22) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.state) value = (value * 31) ^ hash(self.eventNo) value = (value * 31) ^ hash(self.receiverCount) value = (value * 31) ^ hash(self.successCount) value = (value * 31) ^ hash(self.failCount) value = (value * 31) ^ hash(self.cancelCount) value = (value * 31) ^ hash(self.unregisterCount) value = (value * 31) ^ hash(self.timestamp) value = (value * 31) ^ hash(self.message) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Settings: """ Attributes: - notificationEnable - notificationMuteExpiration - notificationNewMessage - notificationGroupInvitation - notificationShowMessage - notificationIncomingCall - notificationSoundMessage - notificationSoundGroup - notificationDisabledWithSub - privacySyncContacts - privacySearchByPhoneNumber - privacySearchByUserid - privacySearchByEmail - privacyAllowSecondaryDeviceLogin - privacyProfileImagePostToMyhome - privacyReceiveMessagesFromNotFriend - contactMyTicket - identityProvider - identityIdentifier - snsAccounts - phoneRegistration - emailConfirmationStatus - preferenceLocale - customModes """ thrift_spec = ( None, # 0 None, # 1 None, # 2 None, # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.BOOL, 'notificationEnable', None, None, ), # 10 (11, TType.I64, 'notificationMuteExpiration', None, None, ), # 11 (12, TType.BOOL, 'notificationNewMessage', None, None, ), # 12 (13, TType.BOOL, 'notificationGroupInvitation', None, None, ), # 13 (14, TType.BOOL, 'notificationShowMessage', None, None, ), # 14 (15, TType.BOOL, 'notificationIncomingCall', None, None, ), # 15 (16, TType.STRING, 'notificationSoundMessage', None, None, ), # 16 (17, TType.STRING, 'notificationSoundGroup', None, None, ), # 17 (18, TType.BOOL, 'notificationDisabledWithSub', None, None, ), # 18 None, # 19 (20, TType.BOOL, 'privacySyncContacts', None, None, ), # 20 (21, TType.BOOL, 'privacySearchByPhoneNumber', None, None, ), # 21 (22, TType.BOOL, 'privacySearchByUserid', None, None, ), # 22 (23, TType.BOOL, 'privacySearchByEmail', None, None, ), # 23 (24, TType.BOOL, 'privacyAllowSecondaryDeviceLogin', None, None, ), # 24 (25, TType.BOOL, 'privacyProfileImagePostToMyhome', None, None, ), # 25 (26, TType.BOOL, 'privacyReceiveMessagesFromNotFriend', None, None, ), # 26 None, # 27 None, # 28 None, # 29 (30, TType.STRING, 'contactMyTicket', None, None, ), # 30 None, # 31 None, # 32 None, # 33 None, # 34 None, # 35 None, # 36 None, # 37 None, # 38 None, # 39 (40, TType.I32, 'identityProvider', None, None, ), # 40 (41, TType.STRING, 'identityIdentifier', None, None, ), # 41 (42, TType.MAP, 'snsAccounts', (TType.I32,None,TType.STRING,None), None, ), # 42 (43, TType.BOOL, 'phoneRegistration', None, None, ), # 43 (44, TType.I32, 'emailConfirmationStatus', None, None, ), # 44 None, # 45 None, # 46 None, # 47 None, # 48 None, # 49 (50, TType.STRING, 'preferenceLocale', None, None, ), # 50 None, # 51 None, # 52 None, # 53 None, # 54 None, # 55 None, # 56 None, # 57 None, # 58 None, # 59 (60, TType.MAP, 'customModes', (TType.I32,None,TType.STRING,None), None, ), # 60 ) def __init__(self, notificationEnable=None, notificationMuteExpiration=None, notificationNewMessage=None, notificationGroupInvitation=None, notificationShowMessage=None, notificationIncomingCall=None, notificationSoundMessage=None, notificationSoundGroup=None, notificationDisabledWithSub=None, privacySyncContacts=None, privacySearchByPhoneNumber=None, privacySearchByUserid=None, privacySearchByEmail=None, privacyAllowSecondaryDeviceLogin=None, privacyProfileImagePostToMyhome=None, privacyReceiveMessagesFromNotFriend=None, contactMyTicket=None, identityProvider=None, identityIdentifier=None, snsAccounts=None, phoneRegistration=None, emailConfirmationStatus=None, preferenceLocale=None, customModes=None,): self.notificationEnable = notificationEnable self.notificationMuteExpiration = notificationMuteExpiration self.notificationNewMessage = notificationNewMessage self.notificationGroupInvitation = notificationGroupInvitation self.notificationShowMessage = notificationShowMessage self.notificationIncomingCall = notificationIncomingCall self.notificationSoundMessage = notificationSoundMessage self.notificationSoundGroup = notificationSoundGroup self.notificationDisabledWithSub = notificationDisabledWithSub self.privacySyncContacts = privacySyncContacts self.privacySearchByPhoneNumber = privacySearchByPhoneNumber self.privacySearchByUserid = privacySearchByUserid self.privacySearchByEmail = privacySearchByEmail self.privacyAllowSecondaryDeviceLogin = privacyAllowSecondaryDeviceLogin self.privacyProfileImagePostToMyhome = privacyProfileImagePostToMyhome self.privacyReceiveMessagesFromNotFriend = privacyReceiveMessagesFromNotFriend self.contactMyTicket = contactMyTicket self.identityProvider = identityProvider self.identityIdentifier = identityIdentifier self.snsAccounts = snsAccounts self.phoneRegistration = phoneRegistration self.emailConfirmationStatus = emailConfirmationStatus self.preferenceLocale = preferenceLocale self.customModes = customModes 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 == 10: if ftype == TType.BOOL: self.notificationEnable = iprot.readBool() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.I64: self.notificationMuteExpiration = iprot.readI64() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.BOOL: self.notificationNewMessage = iprot.readBool() else: iprot.skip(ftype) elif fid == 13: if ftype == TType.BOOL: self.notificationGroupInvitation = iprot.readBool() else: iprot.skip(ftype) elif fid == 14: if ftype == TType.BOOL: self.notificationShowMessage = iprot.readBool() else: iprot.skip(ftype) elif fid == 15: if ftype == TType.BOOL: self.notificationIncomingCall = iprot.readBool() else: iprot.skip(ftype) elif fid == 16: if ftype == TType.STRING: self.notificationSoundMessage = iprot.readString() else: iprot.skip(ftype) elif fid == 17: if ftype == TType.STRING: self.notificationSoundGroup = iprot.readString() else: iprot.skip(ftype) elif fid == 18: if ftype == TType.BOOL: self.notificationDisabledWithSub = iprot.readBool() else: iprot.skip(ftype) elif fid == 20: if ftype == TType.BOOL: self.privacySyncContacts = iprot.readBool() else: iprot.skip(ftype) elif fid == 21: if ftype == TType.BOOL: self.privacySearchByPhoneNumber = iprot.readBool() else: iprot.skip(ftype) elif fid == 22: if ftype == TType.BOOL: self.privacySearchByUserid = iprot.readBool() else: iprot.skip(ftype) elif fid == 23: if ftype == TType.BOOL: self.privacySearchByEmail = iprot.readBool() else: iprot.skip(ftype) elif fid == 24: if ftype == TType.BOOL: self.privacyAllowSecondaryDeviceLogin = iprot.readBool() else: iprot.skip(ftype) elif fid == 25: if ftype == TType.BOOL: self.privacyProfileImagePostToMyhome = iprot.readBool() else: iprot.skip(ftype) elif fid == 26: if ftype == TType.BOOL: self.privacyReceiveMessagesFromNotFriend = iprot.readBool() else: iprot.skip(ftype) elif fid == 30: if ftype == TType.STRING: self.contactMyTicket = iprot.readString() else: iprot.skip(ftype) elif fid == 40: if ftype == TType.I32: self.identityProvider = iprot.readI32() else: iprot.skip(ftype) elif fid == 41: if ftype == TType.STRING: self.identityIdentifier = iprot.readString() else: iprot.skip(ftype) elif fid == 42: if ftype == TType.MAP: self.snsAccounts = {} (_ktype255, _vtype256, _size254 ) = iprot.readMapBegin() for _i258 in xrange(_size254): _key259 = iprot.readI32() _val260 = iprot.readString() self.snsAccounts[_key259] = _val260 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 43: if ftype == TType.BOOL: self.phoneRegistration = iprot.readBool() else: iprot.skip(ftype) elif fid == 44: if ftype == TType.I32: self.emailConfirmationStatus = iprot.readI32() else: iprot.skip(ftype) elif fid == 50: if ftype == TType.STRING: self.preferenceLocale = iprot.readString() else: iprot.skip(ftype) elif fid == 60: if ftype == TType.MAP: self.customModes = {} (_ktype262, _vtype263, _size261 ) = iprot.readMapBegin() for _i265 in xrange(_size261): _key266 = iprot.readI32() _val267 = iprot.readString() self.customModes[_key266] = _val267 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Settings') if self.notificationEnable is not None: oprot.writeFieldBegin('notificationEnable', TType.BOOL, 10) oprot.writeBool(self.notificationEnable) oprot.writeFieldEnd() if self.notificationMuteExpiration is not None: oprot.writeFieldBegin('notificationMuteExpiration', TType.I64, 11) oprot.writeI64(self.notificationMuteExpiration) oprot.writeFieldEnd() if self.notificationNewMessage is not None: oprot.writeFieldBegin('notificationNewMessage', TType.BOOL, 12) oprot.writeBool(self.notificationNewMessage) oprot.writeFieldEnd() if self.notificationGroupInvitation is not None: oprot.writeFieldBegin('notificationGroupInvitation', TType.BOOL, 13) oprot.writeBool(self.notificationGroupInvitation) oprot.writeFieldEnd() if self.notificationShowMessage is not None: oprot.writeFieldBegin('notificationShowMessage', TType.BOOL, 14) oprot.writeBool(self.notificationShowMessage) oprot.writeFieldEnd() if self.notificationIncomingCall is not None: oprot.writeFieldBegin('notificationIncomingCall', TType.BOOL, 15) oprot.writeBool(self.notificationIncomingCall) oprot.writeFieldEnd() if self.notificationSoundMessage is not None: oprot.writeFieldBegin('notificationSoundMessage', TType.STRING, 16) oprot.writeString(self.notificationSoundMessage) oprot.writeFieldEnd() if self.notificationSoundGroup is not None: oprot.writeFieldBegin('notificationSoundGroup', TType.STRING, 17) oprot.writeString(self.notificationSoundGroup) oprot.writeFieldEnd() if self.notificationDisabledWithSub is not None: oprot.writeFieldBegin('notificationDisabledWithSub', TType.BOOL, 18) oprot.writeBool(self.notificationDisabledWithSub) oprot.writeFieldEnd() if self.privacySyncContacts is not None: oprot.writeFieldBegin('privacySyncContacts', TType.BOOL, 20) oprot.writeBool(self.privacySyncContacts) oprot.writeFieldEnd() if self.privacySearchByPhoneNumber is not None: oprot.writeFieldBegin('privacySearchByPhoneNumber', TType.BOOL, 21) oprot.writeBool(self.privacySearchByPhoneNumber) oprot.writeFieldEnd() if self.privacySearchByUserid is not None: oprot.writeFieldBegin('privacySearchByUserid', TType.BOOL, 22) oprot.writeBool(self.privacySearchByUserid) oprot.writeFieldEnd() if self.privacySearchByEmail is not None: oprot.writeFieldBegin('privacySearchByEmail', TType.BOOL, 23) oprot.writeBool(self.privacySearchByEmail) oprot.writeFieldEnd() if self.privacyAllowSecondaryDeviceLogin is not None: oprot.writeFieldBegin('privacyAllowSecondaryDeviceLogin', TType.BOOL, 24) oprot.writeBool(self.privacyAllowSecondaryDeviceLogin) oprot.writeFieldEnd() if self.privacyProfileImagePostToMyhome is not None: oprot.writeFieldBegin('privacyProfileImagePostToMyhome', TType.BOOL, 25) oprot.writeBool(self.privacyProfileImagePostToMyhome) oprot.writeFieldEnd() if self.privacyReceiveMessagesFromNotFriend is not None: oprot.writeFieldBegin('privacyReceiveMessagesFromNotFriend', TType.BOOL, 26) oprot.writeBool(self.privacyReceiveMessagesFromNotFriend) oprot.writeFieldEnd() if self.contactMyTicket is not None: oprot.writeFieldBegin('contactMyTicket', TType.STRING, 30) oprot.writeString(self.contactMyTicket) oprot.writeFieldEnd() if self.identityProvider is not None: oprot.writeFieldBegin('identityProvider', TType.I32, 40) oprot.writeI32(self.identityProvider) oprot.writeFieldEnd() if self.identityIdentifier is not None: oprot.writeFieldBegin('identityIdentifier', TType.STRING, 41) oprot.writeString(self.identityIdentifier) oprot.writeFieldEnd() if self.snsAccounts is not None: oprot.writeFieldBegin('snsAccounts', TType.MAP, 42) oprot.writeMapBegin(TType.I32, TType.STRING, len(self.snsAccounts)) for kiter268,viter269 in self.snsAccounts.items(): oprot.writeI32(kiter268) oprot.writeString(viter269) oprot.writeMapEnd() oprot.writeFieldEnd() if self.phoneRegistration is not None: oprot.writeFieldBegin('phoneRegistration', TType.BOOL, 43) oprot.writeBool(self.phoneRegistration) oprot.writeFieldEnd() if self.emailConfirmationStatus is not None: oprot.writeFieldBegin('emailConfirmationStatus', TType.I32, 44) oprot.writeI32(self.emailConfirmationStatus) oprot.writeFieldEnd() if self.preferenceLocale is not None: oprot.writeFieldBegin('preferenceLocale', TType.STRING, 50) oprot.writeString(self.preferenceLocale) oprot.writeFieldEnd() if self.customModes is not None: oprot.writeFieldBegin('customModes', TType.MAP, 60) oprot.writeMapBegin(TType.I32, TType.STRING, len(self.customModes)) for kiter270,viter271 in self.customModes.items(): oprot.writeI32(kiter270) oprot.writeString(viter271) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.notificationEnable) value = (value * 31) ^ hash(self.notificationMuteExpiration) value = (value * 31) ^ hash(self.notificationNewMessage) value = (value * 31) ^ hash(self.notificationGroupInvitation) value = (value * 31) ^ hash(self.notificationShowMessage) value = (value * 31) ^ hash(self.notificationIncomingCall) value = (value * 31) ^ hash(self.notificationSoundMessage) value = (value * 31) ^ hash(self.notificationSoundGroup) value = (value * 31) ^ hash(self.notificationDisabledWithSub) value = (value * 31) ^ hash(self.privacySyncContacts) value = (value * 31) ^ hash(self.privacySearchByPhoneNumber) value = (value * 31) ^ hash(self.privacySearchByUserid) value = (value * 31) ^ hash(self.privacySearchByEmail) value = (value * 31) ^ hash(self.privacyAllowSecondaryDeviceLogin) value = (value * 31) ^ hash(self.privacyProfileImagePostToMyhome) value = (value * 31) ^ hash(self.privacyReceiveMessagesFromNotFriend) value = (value * 31) ^ hash(self.contactMyTicket) value = (value * 31) ^ hash(self.identityProvider) value = (value * 31) ^ hash(self.identityIdentifier) value = (value * 31) ^ hash(self.snsAccounts) value = (value * 31) ^ hash(self.phoneRegistration) value = (value * 31) ^ hash(self.emailConfirmationStatus) value = (value * 31) ^ hash(self.preferenceLocale) value = (value * 31) ^ hash(self.customModes) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SimpleChannelClient: """ Attributes: - applicationType - applicationVersion - locale """ thrift_spec = ( None, # 0 (1, TType.STRING, 'applicationType', None, None, ), # 1 (2, TType.STRING, 'applicationVersion', None, None, ), # 2 (3, TType.STRING, 'locale', None, None, ), # 3 ) def __init__(self, applicationType=None, applicationVersion=None, locale=None,): self.applicationType = applicationType self.applicationVersion = applicationVersion self.locale = locale 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.applicationType = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.applicationVersion = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.locale = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SimpleChannelClient') if self.applicationType is not None: oprot.writeFieldBegin('applicationType', TType.STRING, 1) oprot.writeString(self.applicationType) oprot.writeFieldEnd() if self.applicationVersion is not None: oprot.writeFieldBegin('applicationVersion', TType.STRING, 2) oprot.writeString(self.applicationVersion) oprot.writeFieldEnd() if self.locale is not None: oprot.writeFieldBegin('locale', TType.STRING, 3) oprot.writeString(self.locale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.applicationType) value = (value * 31) ^ hash(self.applicationVersion) value = (value * 31) ^ hash(self.locale) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SimpleChannelContact: """ Attributes: - mid - displayName - pictureStatus - picturePath - statusMessage """ thrift_spec = ( None, # 0 (1, TType.STRING, 'mid', None, None, ), # 1 (2, TType.STRING, 'displayName', None, None, ), # 2 (3, TType.STRING, 'pictureStatus', None, None, ), # 3 (4, TType.STRING, 'picturePath', None, None, ), # 4 (5, TType.STRING, 'statusMessage', None, None, ), # 5 ) def __init__(self, mid=None, displayName=None, pictureStatus=None, picturePath=None, statusMessage=None,): self.mid = mid self.displayName = displayName self.pictureStatus = pictureStatus self.picturePath = picturePath self.statusMessage = statusMessage 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.mid = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.displayName = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.pictureStatus = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.picturePath = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.statusMessage = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SimpleChannelContact') if self.mid is not None: oprot.writeFieldBegin('mid', TType.STRING, 1) oprot.writeString(self.mid) oprot.writeFieldEnd() if self.displayName is not None: oprot.writeFieldBegin('displayName', TType.STRING, 2) oprot.writeString(self.displayName) oprot.writeFieldEnd() if self.pictureStatus is not None: oprot.writeFieldBegin('pictureStatus', TType.STRING, 3) oprot.writeString(self.pictureStatus) oprot.writeFieldEnd() if self.picturePath is not None: oprot.writeFieldBegin('picturePath', TType.STRING, 4) oprot.writeString(self.picturePath) oprot.writeFieldEnd() if self.statusMessage is not None: oprot.writeFieldBegin('statusMessage', TType.STRING, 5) oprot.writeString(self.statusMessage) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.mid) value = (value * 31) ^ hash(self.displayName) value = (value * 31) ^ hash(self.pictureStatus) value = (value * 31) ^ hash(self.picturePath) value = (value * 31) ^ hash(self.statusMessage) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SnsFriend: """ Attributes: - snsUserId - snsUserName - snsIdType """ thrift_spec = ( None, # 0 (1, TType.STRING, 'snsUserId', None, None, ), # 1 (2, TType.STRING, 'snsUserName', None, None, ), # 2 (3, TType.I32, 'snsIdType', None, None, ), # 3 ) def __init__(self, snsUserId=None, snsUserName=None, snsIdType=None,): self.snsUserId = snsUserId self.snsUserName = snsUserName self.snsIdType = snsIdType 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.snsUserId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.snsUserName = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.snsIdType = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SnsFriend') if self.snsUserId is not None: oprot.writeFieldBegin('snsUserId', TType.STRING, 1) oprot.writeString(self.snsUserId) oprot.writeFieldEnd() if self.snsUserName is not None: oprot.writeFieldBegin('snsUserName', TType.STRING, 2) oprot.writeString(self.snsUserName) oprot.writeFieldEnd() if self.snsIdType is not None: oprot.writeFieldBegin('snsIdType', TType.I32, 3) oprot.writeI32(self.snsIdType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsUserId) value = (value * 31) ^ hash(self.snsUserName) value = (value * 31) ^ hash(self.snsIdType) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SnsFriendContactRegistration: """ Attributes: - contact - snsIdType - snsUserId """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'contact', (Contact, Contact.thrift_spec), None, ), # 1 (2, TType.I32, 'snsIdType', None, None, ), # 2 (3, TType.STRING, 'snsUserId', None, None, ), # 3 ) def __init__(self, contact=None, snsIdType=None, snsUserId=None,): self.contact = contact self.snsIdType = snsIdType self.snsUserId = snsUserId 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.STRUCT: self.contact = Contact() self.contact.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.snsIdType = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.snsUserId = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SnsFriendContactRegistration') if self.contact is not None: oprot.writeFieldBegin('contact', TType.STRUCT, 1) self.contact.write(oprot) oprot.writeFieldEnd() if self.snsIdType is not None: oprot.writeFieldBegin('snsIdType', TType.I32, 2) oprot.writeI32(self.snsIdType) oprot.writeFieldEnd() if self.snsUserId is not None: oprot.writeFieldBegin('snsUserId', TType.STRING, 3) oprot.writeString(self.snsUserId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.contact) value = (value * 31) ^ hash(self.snsIdType) value = (value * 31) ^ hash(self.snsUserId) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SnsFriendModification: """ Attributes: - type - snsFriend """ thrift_spec = ( None, # 0 (1, TType.I32, 'type', None, None, ), # 1 (2, TType.STRUCT, 'snsFriend', (SnsFriend, SnsFriend.thrift_spec), None, ), # 2 ) def __init__(self, type=None, snsFriend=None,): self.type = type self.snsFriend = snsFriend 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.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: self.snsFriend = SnsFriend() self.snsFriend.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SnsFriendModification') if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 1) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.snsFriend is not None: oprot.writeFieldBegin('snsFriend', TType.STRUCT, 2) self.snsFriend.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.type) value = (value * 31) ^ hash(self.snsFriend) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SnsFriends: """ Attributes: - snsFriends - hasMore """ thrift_spec = ( None, # 0 (1, TType.LIST, 'snsFriends', (TType.STRUCT,(SnsFriend, SnsFriend.thrift_spec)), None, ), # 1 (2, TType.BOOL, 'hasMore', None, None, ), # 2 ) def __init__(self, snsFriends=None, hasMore=None,): self.snsFriends = snsFriends self.hasMore = hasMore 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.snsFriends = [] (_etype275, _size272) = iprot.readListBegin() for _i276 in xrange(_size272): _elem277 = SnsFriend() _elem277.read(iprot) self.snsFriends.append(_elem277) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: self.hasMore = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SnsFriends') if self.snsFriends is not None: oprot.writeFieldBegin('snsFriends', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.snsFriends)) for iter278 in self.snsFriends: iter278.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasMore is not None: oprot.writeFieldBegin('hasMore', TType.BOOL, 2) oprot.writeBool(self.hasMore) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsFriends) value = (value * 31) ^ hash(self.hasMore) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SnsIdUserStatus: """ Attributes: - userExisting - phoneNumberRegistered - sameDevice """ thrift_spec = ( None, # 0 (1, TType.BOOL, 'userExisting', None, None, ), # 1 (2, TType.BOOL, 'phoneNumberRegistered', None, None, ), # 2 (3, TType.BOOL, 'sameDevice', None, None, ), # 3 ) def __init__(self, userExisting=None, phoneNumberRegistered=None, sameDevice=None,): self.userExisting = userExisting self.phoneNumberRegistered = phoneNumberRegistered self.sameDevice = sameDevice 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.BOOL: self.userExisting = iprot.readBool() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: self.phoneNumberRegistered = iprot.readBool() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.BOOL: self.sameDevice = iprot.readBool() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SnsIdUserStatus') if self.userExisting is not None: oprot.writeFieldBegin('userExisting', TType.BOOL, 1) oprot.writeBool(self.userExisting) oprot.writeFieldEnd() if self.phoneNumberRegistered is not None: oprot.writeFieldBegin('phoneNumberRegistered', TType.BOOL, 2) oprot.writeBool(self.phoneNumberRegistered) oprot.writeFieldEnd() if self.sameDevice is not None: oprot.writeFieldBegin('sameDevice', TType.BOOL, 3) oprot.writeBool(self.sameDevice) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.userExisting) value = (value * 31) ^ hash(self.phoneNumberRegistered) value = (value * 31) ^ hash(self.sameDevice) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SnsProfile: """ Attributes: - snsUserId - snsUserName - email - thumbnailUrl """ thrift_spec = ( None, # 0 (1, TType.STRING, 'snsUserId', None, None, ), # 1 (2, TType.STRING, 'snsUserName', None, None, ), # 2 (3, TType.STRING, 'email', None, None, ), # 3 (4, TType.STRING, 'thumbnailUrl', None, None, ), # 4 ) def __init__(self, snsUserId=None, snsUserName=None, email=None, thumbnailUrl=None,): self.snsUserId = snsUserId self.snsUserName = snsUserName self.email = email self.thumbnailUrl = thumbnailUrl 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.snsUserId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.snsUserName = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.email = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.thumbnailUrl = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SnsProfile') if self.snsUserId is not None: oprot.writeFieldBegin('snsUserId', TType.STRING, 1) oprot.writeString(self.snsUserId) oprot.writeFieldEnd() if self.snsUserName is not None: oprot.writeFieldBegin('snsUserName', TType.STRING, 2) oprot.writeString(self.snsUserName) oprot.writeFieldEnd() if self.email is not None: oprot.writeFieldBegin('email', TType.STRING, 3) oprot.writeString(self.email) oprot.writeFieldEnd() if self.thumbnailUrl is not None: oprot.writeFieldBegin('thumbnailUrl', TType.STRING, 4) oprot.writeString(self.thumbnailUrl) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.snsUserId) value = (value * 31) ^ hash(self.snsUserName) value = (value * 31) ^ hash(self.email) value = (value * 31) ^ hash(self.thumbnailUrl) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class SystemConfiguration: """ Attributes: - endpoint - endpointSsl - updateUrl - c2dmAccount - nniServer """ thrift_spec = ( None, # 0 (1, TType.STRING, 'endpoint', None, None, ), # 1 (2, TType.STRING, 'endpointSsl', None, None, ), # 2 (3, TType.STRING, 'updateUrl', None, None, ), # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 None, # 10 (11, TType.STRING, 'c2dmAccount', None, None, ), # 11 (12, TType.STRING, 'nniServer', None, None, ), # 12 ) def __init__(self, endpoint=None, endpointSsl=None, updateUrl=None, c2dmAccount=None, nniServer=None,): self.endpoint = endpoint self.endpointSsl = endpointSsl self.updateUrl = updateUrl self.c2dmAccount = c2dmAccount self.nniServer = nniServer 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.endpoint = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.endpointSsl = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.updateUrl = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: self.c2dmAccount = iprot.readString() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: self.nniServer = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('SystemConfiguration') if self.endpoint is not None: oprot.writeFieldBegin('endpoint', TType.STRING, 1) oprot.writeString(self.endpoint) oprot.writeFieldEnd() if self.endpointSsl is not None: oprot.writeFieldBegin('endpointSsl', TType.STRING, 2) oprot.writeString(self.endpointSsl) oprot.writeFieldEnd() if self.updateUrl is not None: oprot.writeFieldBegin('updateUrl', TType.STRING, 3) oprot.writeString(self.updateUrl) oprot.writeFieldEnd() if self.c2dmAccount is not None: oprot.writeFieldBegin('c2dmAccount', TType.STRING, 11) oprot.writeString(self.c2dmAccount) oprot.writeFieldEnd() if self.nniServer is not None: oprot.writeFieldBegin('nniServer', TType.STRING, 12) oprot.writeString(self.nniServer) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.endpoint) value = (value * 31) ^ hash(self.endpointSsl) value = (value * 31) ^ hash(self.updateUrl) value = (value * 31) ^ hash(self.c2dmAccount) value = (value * 31) ^ hash(self.nniServer) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class TalkException(TException): """ Attributes: - code - reason - parameterMap """ thrift_spec = ( None, # 0 (1, TType.I32, 'code', None, None, ), # 1 (2, TType.STRING, 'reason', None, None, ), # 2 (3, TType.MAP, 'parameterMap', (TType.STRING,None,TType.STRING,None), None, ), # 3 ) def __init__(self, code=None, reason=None, parameterMap=None,): self.code = code self.reason = reason self.parameterMap = parameterMap 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.code = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.reason = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.parameterMap = {} (_ktype280, _vtype281, _size279 ) = iprot.readMapBegin() for _i283 in xrange(_size279): _key284 = iprot.readString() _val285 = iprot.readString() self.parameterMap[_key284] = _val285 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('TalkException') if self.code is not None: oprot.writeFieldBegin('code', TType.I32, 1) oprot.writeI32(self.code) oprot.writeFieldEnd() if self.reason is not None: oprot.writeFieldBegin('reason', TType.STRING, 2) oprot.writeString(self.reason) oprot.writeFieldEnd() if self.parameterMap is not None: oprot.writeFieldBegin('parameterMap', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameterMap)) for kiter286,viter287 in self.parameterMap.items(): oprot.writeString(kiter286) oprot.writeString(viter287) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __str__(self): return repr(self) def __hash__(self): value = 17 value = (value * 31) ^ hash(self.code) value = (value * 31) ^ hash(self.reason) value = (value * 31) ^ hash(self.parameterMap) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class Ticket: """ Attributes: - id - expirationTime - maxUseCount """ thrift_spec = ( None, # 0 (1, TType.STRING, 'id', None, None, ), # 1 None, # 2 None, # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.I64, 'expirationTime', None, None, ), # 10 None, # 11 None, # 12 None, # 13 None, # 14 None, # 15 None, # 16 None, # 17 None, # 18 None, # 19 None, # 20 (21, TType.I32, 'maxUseCount', None, None, ), # 21 ) def __init__(self, id=None, expirationTime=None, maxUseCount=None,): self.id = id self.expirationTime = expirationTime self.maxUseCount = maxUseCount 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.id = iprot.readString() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.I64: self.expirationTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 21: if ftype == TType.I32: self.maxUseCount = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('Ticket') if self.id is not None: oprot.writeFieldBegin('id', TType.STRING, 1) oprot.writeString(self.id) oprot.writeFieldEnd() if self.expirationTime is not None: oprot.writeFieldBegin('expirationTime', TType.I64, 10) oprot.writeI64(self.expirationTime) oprot.writeFieldEnd() if self.maxUseCount is not None: oprot.writeFieldBegin('maxUseCount', TType.I32, 21) oprot.writeI32(self.maxUseCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.id) value = (value * 31) ^ hash(self.expirationTime) value = (value * 31) ^ hash(self.maxUseCount) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class TMessageBox: """ Attributes: - id - channelId - lastSeq - unreadCount - lastModifiedTime - status - midType - lastMessages """ thrift_spec = ( None, # 0 (1, TType.STRING, 'id', None, None, ), # 1 (2, TType.STRING, 'channelId', None, None, ), # 2 None, # 3 None, # 4 (5, TType.I64, 'lastSeq', None, None, ), # 5 (6, TType.I64, 'unreadCount', None, None, ), # 6 (7, TType.I64, 'lastModifiedTime', None, None, ), # 7 (8, TType.I32, 'status', None, None, ), # 8 (9, TType.I32, 'midType', None, None, ), # 9 (10, TType.LIST, 'lastMessages', (TType.STRUCT,(Message, Message.thrift_spec)), None, ), # 10 ) def __init__(self, id=None, channelId=None, lastSeq=None, unreadCount=None, lastModifiedTime=None, status=None, midType=None, lastMessages=None,): self.id = id self.channelId = channelId self.lastSeq = lastSeq self.unreadCount = unreadCount self.lastModifiedTime = lastModifiedTime self.status = status self.midType = midType self.lastMessages = lastMessages 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.id = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.channelId = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I64: self.lastSeq = iprot.readI64() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I64: self.unreadCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I64: self.lastModifiedTime = iprot.readI64() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.I32: self.status = iprot.readI32() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.I32: self.midType = iprot.readI32() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.LIST: self.lastMessages = [] (_etype291, _size288) = iprot.readListBegin() for _i292 in xrange(_size288): _elem293 = Message() _elem293.read(iprot) self.lastMessages.append(_elem293) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('TMessageBox') if self.id is not None: oprot.writeFieldBegin('id', TType.STRING, 1) oprot.writeString(self.id) oprot.writeFieldEnd() if self.channelId is not None: oprot.writeFieldBegin('channelId', TType.STRING, 2) oprot.writeString(self.channelId) oprot.writeFieldEnd() if self.lastSeq is not None: oprot.writeFieldBegin('lastSeq', TType.I64, 5) oprot.writeI64(self.lastSeq) oprot.writeFieldEnd() if self.unreadCount is not None: oprot.writeFieldBegin('unreadCount', TType.I64, 6) oprot.writeI64(self.unreadCount) oprot.writeFieldEnd() if self.lastModifiedTime is not None: oprot.writeFieldBegin('lastModifiedTime', TType.I64, 7) oprot.writeI64(self.lastModifiedTime) oprot.writeFieldEnd() if self.status is not None: oprot.writeFieldBegin('status', TType.I32, 8) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.midType is not None: oprot.writeFieldBegin('midType', TType.I32, 9) oprot.writeI32(self.midType) oprot.writeFieldEnd() if self.lastMessages is not None: oprot.writeFieldBegin('lastMessages', TType.LIST, 10) oprot.writeListBegin(TType.STRUCT, len(self.lastMessages)) for iter294 in self.lastMessages: iter294.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.id) value = (value * 31) ^ hash(self.channelId) value = (value * 31) ^ hash(self.lastSeq) value = (value * 31) ^ hash(self.unreadCount) value = (value * 31) ^ hash(self.lastModifiedTime) value = (value * 31) ^ hash(self.status) value = (value * 31) ^ hash(self.midType) value = (value * 31) ^ hash(self.lastMessages) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class TMessageBoxWrapUp: """ Attributes: - messageBox - name - contacts - pictureRevision """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'messageBox', (TMessageBox, TMessageBox.thrift_spec), None, ), # 1 (2, TType.STRING, 'name', None, None, ), # 2 (3, TType.LIST, 'contacts', (TType.STRUCT,(Contact, Contact.thrift_spec)), None, ), # 3 (4, TType.STRING, 'pictureRevision', None, None, ), # 4 ) def __init__(self, messageBox=None, name=None, contacts=None, pictureRevision=None,): self.messageBox = messageBox self.name = name self.contacts = contacts self.pictureRevision = pictureRevision 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.STRUCT: self.messageBox = TMessageBox() self.messageBox.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.name = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.contacts = [] (_etype298, _size295) = iprot.readListBegin() for _i299 in xrange(_size295): _elem300 = Contact() _elem300.read(iprot) self.contacts.append(_elem300) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.pictureRevision = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('TMessageBoxWrapUp') if self.messageBox is not None: oprot.writeFieldBegin('messageBox', TType.STRUCT, 1) self.messageBox.write(oprot) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 2) oprot.writeString(self.name) oprot.writeFieldEnd() if self.contacts is not None: oprot.writeFieldBegin('contacts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.contacts)) for iter301 in self.contacts: iter301.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.pictureRevision is not None: oprot.writeFieldBegin('pictureRevision', TType.STRING, 4) oprot.writeString(self.pictureRevision) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.messageBox) value = (value * 31) ^ hash(self.name) value = (value * 31) ^ hash(self.contacts) value = (value * 31) ^ hash(self.pictureRevision) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class TMessageBoxWrapUpResponse: """ Attributes: - messageBoxWrapUpList - totalSize """ thrift_spec = ( None, # 0 (1, TType.LIST, 'messageBoxWrapUpList', (TType.STRUCT,(TMessageBoxWrapUp, TMessageBoxWrapUp.thrift_spec)), None, ), # 1 (2, TType.I32, 'totalSize', None, None, ), # 2 ) def __init__(self, messageBoxWrapUpList=None, totalSize=None,): self.messageBoxWrapUpList = messageBoxWrapUpList self.totalSize = totalSize 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.messageBoxWrapUpList = [] (_etype305, _size302) = iprot.readListBegin() for _i306 in xrange(_size302): _elem307 = TMessageBoxWrapUp() _elem307.read(iprot) self.messageBoxWrapUpList.append(_elem307) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.totalSize = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('TMessageBoxWrapUpResponse') if self.messageBoxWrapUpList is not None: oprot.writeFieldBegin('messageBoxWrapUpList', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.messageBoxWrapUpList)) for iter308 in self.messageBoxWrapUpList: iter308.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.totalSize is not None: oprot.writeFieldBegin('totalSize', TType.I32, 2) oprot.writeI32(self.totalSize) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.messageBoxWrapUpList) value = (value * 31) ^ hash(self.totalSize) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class UniversalNotificationServiceException(TException): """ Attributes: - code - reason - parameterMap """ thrift_spec = ( None, # 0 (1, TType.I32, 'code', None, None, ), # 1 (2, TType.STRING, 'reason', None, None, ), # 2 (3, TType.MAP, 'parameterMap', (TType.STRING,None,TType.STRING,None), None, ), # 3 ) def __init__(self, code=None, reason=None, parameterMap=None,): self.code = code self.reason = reason self.parameterMap = parameterMap 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.code = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: self.reason = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.parameterMap = {} (_ktype310, _vtype311, _size309 ) = iprot.readMapBegin() for _i313 in xrange(_size309): _key314 = iprot.readString() _val315 = iprot.readString() self.parameterMap[_key314] = _val315 iprot.readMapEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('UniversalNotificationServiceException') if self.code is not None: oprot.writeFieldBegin('code', TType.I32, 1) oprot.writeI32(self.code) oprot.writeFieldEnd() if self.reason is not None: oprot.writeFieldBegin('reason', TType.STRING, 2) oprot.writeString(self.reason) oprot.writeFieldEnd() if self.parameterMap is not None: oprot.writeFieldBegin('parameterMap', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameterMap)) for kiter316,viter317 in self.parameterMap.items(): oprot.writeString(kiter316) oprot.writeString(viter317) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __str__(self): return repr(self) def __hash__(self): value = 17 value = (value * 31) ^ hash(self.code) value = (value * 31) ^ hash(self.reason) value = (value * 31) ^ hash(self.parameterMap) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class UpdateBuddyProfileResult: """ Attributes: - requestId - state - eventNo - receiverCount - successCount - failCount - cancelCount - unregisterCount - timestamp - message """ thrift_spec = ( None, # 0 (1, TType.STRING, 'requestId', None, None, ), # 1 (2, TType.I32, 'state', None, None, ), # 2 (3, TType.I32, 'eventNo', None, None, ), # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 None, # 10 (11, TType.I64, 'receiverCount', None, None, ), # 11 (12, TType.I64, 'successCount', None, None, ), # 12 (13, TType.I64, 'failCount', None, None, ), # 13 (14, TType.I64, 'cancelCount', None, None, ), # 14 (15, TType.I64, 'unregisterCount', None, None, ), # 15 None, # 16 None, # 17 None, # 18 None, # 19 None, # 20 (21, TType.I64, 'timestamp', None, None, ), # 21 (22, TType.STRING, 'message', None, None, ), # 22 ) def __init__(self, requestId=None, state=None, eventNo=None, receiverCount=None, successCount=None, failCount=None, cancelCount=None, unregisterCount=None, timestamp=None, message=None,): self.requestId = requestId self.state = state self.eventNo = eventNo self.receiverCount = receiverCount self.successCount = successCount self.failCount = failCount self.cancelCount = cancelCount self.unregisterCount = unregisterCount self.timestamp = timestamp self.message = message 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.requestId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.state = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.eventNo = iprot.readI32() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.I64: self.receiverCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.I64: self.successCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 13: if ftype == TType.I64: self.failCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 14: if ftype == TType.I64: self.cancelCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 15: if ftype == TType.I64: self.unregisterCount = iprot.readI64() else: iprot.skip(ftype) elif fid == 21: if ftype == TType.I64: self.timestamp = iprot.readI64() else: iprot.skip(ftype) elif fid == 22: if ftype == TType.STRING: self.message = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('UpdateBuddyProfileResult') if self.requestId is not None: oprot.writeFieldBegin('requestId', TType.STRING, 1) oprot.writeString(self.requestId) oprot.writeFieldEnd() if self.state is not None: oprot.writeFieldBegin('state', TType.I32, 2) oprot.writeI32(self.state) oprot.writeFieldEnd() if self.eventNo is not None: oprot.writeFieldBegin('eventNo', TType.I32, 3) oprot.writeI32(self.eventNo) oprot.writeFieldEnd() if self.receiverCount is not None: oprot.writeFieldBegin('receiverCount', TType.I64, 11) oprot.writeI64(self.receiverCount) oprot.writeFieldEnd() if self.successCount is not None: oprot.writeFieldBegin('successCount', TType.I64, 12) oprot.writeI64(self.successCount) oprot.writeFieldEnd() if self.failCount is not None: oprot.writeFieldBegin('failCount', TType.I64, 13) oprot.writeI64(self.failCount) oprot.writeFieldEnd() if self.cancelCount is not None: oprot.writeFieldBegin('cancelCount', TType.I64, 14) oprot.writeI64(self.cancelCount) oprot.writeFieldEnd() if self.unregisterCount is not None: oprot.writeFieldBegin('unregisterCount', TType.I64, 15) oprot.writeI64(self.unregisterCount) oprot.writeFieldEnd() if self.timestamp is not None: oprot.writeFieldBegin('timestamp', TType.I64, 21) oprot.writeI64(self.timestamp) oprot.writeFieldEnd() if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 22) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.requestId) value = (value * 31) ^ hash(self.state) value = (value * 31) ^ hash(self.eventNo) value = (value * 31) ^ hash(self.receiverCount) value = (value * 31) ^ hash(self.successCount) value = (value * 31) ^ hash(self.failCount) value = (value * 31) ^ hash(self.cancelCount) value = (value * 31) ^ hash(self.unregisterCount) value = (value * 31) ^ hash(self.timestamp) value = (value * 31) ^ hash(self.message) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class UserAuthStatus: """ Attributes: - phoneNumberRegistered - registeredSnsIdTypes """ thrift_spec = ( None, # 0 (1, TType.BOOL, 'phoneNumberRegistered', None, None, ), # 1 (2, TType.LIST, 'registeredSnsIdTypes', (TType.I32,None), None, ), # 2 ) def __init__(self, phoneNumberRegistered=None, registeredSnsIdTypes=None,): self.phoneNumberRegistered = phoneNumberRegistered self.registeredSnsIdTypes = registeredSnsIdTypes 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.BOOL: self.phoneNumberRegistered = iprot.readBool() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.registeredSnsIdTypes = [] (_etype321, _size318) = iprot.readListBegin() for _i322 in xrange(_size318): _elem323 = iprot.readI32() self.registeredSnsIdTypes.append(_elem323) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('UserAuthStatus') if self.phoneNumberRegistered is not None: oprot.writeFieldBegin('phoneNumberRegistered', TType.BOOL, 1) oprot.writeBool(self.phoneNumberRegistered) oprot.writeFieldEnd() if self.registeredSnsIdTypes is not None: oprot.writeFieldBegin('registeredSnsIdTypes', TType.LIST, 2) oprot.writeListBegin(TType.I32, len(self.registeredSnsIdTypes)) for iter324 in self.registeredSnsIdTypes: oprot.writeI32(iter324) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.phoneNumberRegistered) value = (value * 31) ^ hash(self.registeredSnsIdTypes) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class VerificationSessionData: """ Attributes: - sessionId - method - callback - normalizedPhone - countryCode - nationalSignificantNumber - availableVerificationMethods """ thrift_spec = ( None, # 0 (1, TType.STRING, 'sessionId', None, None, ), # 1 (2, TType.I32, 'method', None, None, ), # 2 (3, TType.STRING, 'callback', None, None, ), # 3 (4, TType.STRING, 'normalizedPhone', None, None, ), # 4 (5, TType.STRING, 'countryCode', None, None, ), # 5 (6, TType.STRING, 'nationalSignificantNumber', None, None, ), # 6 (7, TType.LIST, 'availableVerificationMethods', (TType.I32,None), None, ), # 7 ) def __init__(self, sessionId=None, method=None, callback=None, normalizedPhone=None, countryCode=None, nationalSignificantNumber=None, availableVerificationMethods=None,): self.sessionId = sessionId self.method = method self.callback = callback self.normalizedPhone = normalizedPhone self.countryCode = countryCode self.nationalSignificantNumber = nationalSignificantNumber self.availableVerificationMethods = availableVerificationMethods 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.sessionId = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.method = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: self.callback = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: self.normalizedPhone = iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: self.countryCode = iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: self.nationalSignificantNumber = iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.availableVerificationMethods = [] (_etype328, _size325) = iprot.readListBegin() for _i329 in xrange(_size325): _elem330 = iprot.readI32() self.availableVerificationMethods.append(_elem330) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('VerificationSessionData') if self.sessionId is not None: oprot.writeFieldBegin('sessionId', TType.STRING, 1) oprot.writeString(self.sessionId) oprot.writeFieldEnd() if self.method is not None: oprot.writeFieldBegin('method', TType.I32, 2) oprot.writeI32(self.method) oprot.writeFieldEnd() if self.callback is not None: oprot.writeFieldBegin('callback', TType.STRING, 3) oprot.writeString(self.callback) oprot.writeFieldEnd() if self.normalizedPhone is not None: oprot.writeFieldBegin('normalizedPhone', TType.STRING, 4) oprot.writeString(self.normalizedPhone) oprot.writeFieldEnd() if self.countryCode is not None: oprot.writeFieldBegin('countryCode', TType.STRING, 5) oprot.writeString(self.countryCode) oprot.writeFieldEnd() if self.nationalSignificantNumber is not None: oprot.writeFieldBegin('nationalSignificantNumber', TType.STRING, 6) oprot.writeString(self.nationalSignificantNumber) oprot.writeFieldEnd() if self.availableVerificationMethods is not None: oprot.writeFieldBegin('availableVerificationMethods', TType.LIST, 7) oprot.writeListBegin(TType.I32, len(self.availableVerificationMethods)) for iter331 in self.availableVerificationMethods: oprot.writeI32(iter331) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.sessionId) value = (value * 31) ^ hash(self.method) value = (value * 31) ^ hash(self.callback) value = (value * 31) ^ hash(self.normalizedPhone) value = (value * 31) ^ hash(self.countryCode) value = (value * 31) ^ hash(self.nationalSignificantNumber) value = (value * 31) ^ hash(self.availableVerificationMethods) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class WapInvitation: """ Attributes: - type - inviteeEmail - inviterMid - roomMid """ thrift_spec = ( None, # 0 (1, TType.I32, 'type', None, None, ), # 1 None, # 2 None, # 3 None, # 4 None, # 5 None, # 6 None, # 7 None, # 8 None, # 9 (10, TType.STRING, 'inviteeEmail', None, None, ), # 10 (11, TType.STRING, 'inviterMid', None, None, ), # 11 (12, TType.STRING, 'roomMid', None, None, ), # 12 ) def __init__(self, type=None, inviteeEmail=None, inviterMid=None, roomMid=None,): self.type = type self.inviteeEmail = inviteeEmail self.inviterMid = inviterMid self.roomMid = roomMid 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.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: self.inviteeEmail = iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: self.inviterMid = iprot.readString() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: self.roomMid = iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() 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('WapInvitation') if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 1) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.inviteeEmail is not None: oprot.writeFieldBegin('inviteeEmail', TType.STRING, 10) oprot.writeString(self.inviteeEmail) oprot.writeFieldEnd() if self.inviterMid is not None: oprot.writeFieldBegin('inviterMid', TType.STRING, 11) oprot.writeString(self.inviterMid) oprot.writeFieldEnd() if self.roomMid is not None: oprot.writeFieldBegin('roomMid', TType.STRING, 12) oprot.writeString(self.roomMid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.type) value = (value * 31) ^ hash(self.inviteeEmail) value = (value * 31) ^ hash(self.inviterMid) value = (value * 31) ^ hash(self.roomMid) return value def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) ================================================ FILE: README.md ================================================ # LINE TCR Forked from LINEALPHA [MerkKremont] fixing some error and delete unusable code ## Require to install ``` pip install rsa pip install request pip install thrift==0.9.3 ``` ================================================ FILE: tcr.py ================================================ # -*- coding: utf-8 -*- import LINETCR from LINETCR.lib.curve.ttypes import * from datetime import datetime import time,random,sys,json,codecs,threading,glob,re cl = LINETCR.LINE() cl.login(qr=True) cl.loginResult() ki = kk = kc = cl print "login success" reload(sys) sys.setdefaultencoding('utf-8') helpMessage =""" Chivas Bot [Id︎] [Mid] [Me︎] [TL︎:「Text」] [Mc 「mid」] [K on/off] [Join︎ on/off] [Gcancel:︎「Number of people」] [Group cancelalll︎] [Leave︎ on/off] [Add on/off] [Share on/off] [Message change:「text」] [Message check] [Confirm] [Jam on/off] [Change clock:「name」] [Up] [Cv join] [*] Command in the groups [*] [Curl] [Ourl] [url] [url:「Group ID」] [Invite:「mid」] [Kick:「mid」] [Ginfo] [jointicket] [Cancel] [Gn 「group name」] [Nk 「name」] [*] Command kicker only [*] [Bye] [Kill ban] [Kill 「@」] [Ban 「@」] By Tag [Unban 「@」] By Tag [Ban︎] Share Contact [Unban︎] Share Contact [Banlist︎] [Cek ban] [Cv mid] [Cv ︎invite:「mid」] [Cv ︎rename:「name」] [Cv ︎gift] [Respo︎n] [Bot cancel] [Title:] """ KAC=[cl,ki,kk,kc] mid = cl.getProfile().mid Amid = ki.getProfile().mid Bmid = kk.getProfile().mid Cmid = kc.getProfile().mid Bots=[mid,Amid,Bmid,Cmid] admin=["YOUR_MID_HERE"] wait = { 'contact':True, 'autoJoin':True, 'autoCancel':{"on":True,"members":1}, 'leaveRoom':True, 'timeline':True, 'autoAdd':True, 'message':"Thanks for add me", "lang":"JP", "comment":"Thanks for add me", "commentOn":False, "commentBlack":{}, "wblack":False, "dblack":False, "clock":True, "cName":"Chivas ", "blacklist":{}, "wblacklist":False, "dblacklist":False, "protectionOn":True, "atjointicket":False } wait2 = { 'readPoint':{}, 'readMember':{}, 'setTime':{}, 'ROM':{} } setTime = {} setTime = wait2['setTime'] def sendMessage(to, text, contentMetadata={}, contentType=0): mes = Message() mes.to, mes.from_ = to, profile.mid mes.text = text mes.contentType, mes.contentMetadata = contentType, contentMetadata if to not in messageReq: messageReq[to] = -1 messageReq[to] += 1 def NOTIFIED_READ_MESSAGE(op): try: if op.param1 in wait2['readPoint']: Name = cl.getContact(op.param2).displayName if Name in wait2['readMember'][op.param1]: pass else: wait2['readMember'][op.param1] += "\n・" + Name wait2['ROM'][op.param1][op.param2] = "・" + Name else: pass except: pass def bot(op): try: if op.type == 0: return if op.type == 5: if wait["autoAdd"] == True: cl.findAndAddContactsByMid(op.param1) if (wait["message"] in [""," ","\n",None]): pass else: cl.sendText(op.param1,str(wait["message"])) if op.type == 13: if op.param3 in mid: if op.param2 in Amid: G = ki.getGroup(op.param1) G.preventJoinByTicket = False ki.updateGroup(G) Ticket = ki.reissueGroupTicket(op.param1) cl.acceptGroupInvitationByTicket(op.param1,Ticket) G.preventJoinByTicket = True ki.updateGroup(G) Ticket = ki.reissueGroupTicket(op.param1) if op.param3 in Amid: if op.param2 in Bmid: X = kk.getGroup(op.param1) X.preventJoinByTicket = False kk.updateGroup(X) Ti = kk.reissueGroupTicket(op.param1) ki.acceptGroupInvitationByTicket(op.param1,Ti) X.preventJoinByTicket = True kk.updateGroup(X) Ti = kk.reissueGroupTicket(op.param1) if op.param3 in Bmid: if op.param2 in Cmid: X = kc.getGroup(op.param1) X.preventJoinByTicket = False kc.updateGroup(X) Ti = kc.reissueGroupTicket(op.param1) kk.acceptGroupInvitationByTicket(op.param1,Ti) X.preventJoinByTicket = True kc.updateGroup(X) Ti = kc.reissueGroupTicket(op.param1) if op.param3 in Cmid: if op.param2 in mid: X = cl.getGroup(op.param1) X.preventJoinByTicket = False cl.updateGroup(X) Ti = cl.reissueGroupTicket(op.param1) kc.acceptGroupInvitationByTicket(op.param1,Ti) X.preventJoinByTicket = True cl.updateGroup(X) Ti = cl.reissueGroupTicket(op.param1) if op.type == 13: print op.param1 print op.param2 print op.param3 if mid in op.param3: G = cl.getGroup(op.param1) if wait["autoJoin"] == True: if wait["autoCancel"]["on"] == True: if len(G.members) <= wait["autoCancel"]["members"]: cl.rejectGroupInvitation(op.param1) else: cl.acceptGroupInvitation(op.param1) else: cl.acceptGroupInvitation(op.param1) elif wait["autoCancel"]["on"] == True: if len(G.members) <= wait["autoCancel"]["members"]: cl.rejectGroupInvitation(op.param1) else: Inviter = op.param3.replace("",',') InviterX = Inviter.split(",") matched_list = [] for tag in wait["blacklist"]: matched_list+=filter(lambda str: str == tag, InviterX) if matched_list == []: pass else: cl.cancelGroupInvitation(op.param1, matched_list) if op.type == 19: if mid in op.param3: if op.param2 in Bots: pass try: ki.kickoutFromGroup(op.param1,[op.param2]) except: try: random.choice(KAC).kickoutFromGroup(op.param1,[op.param2]) except: print ("client Kick regulation or Because it does not exist in the group、\n["+op.param1+"]\nの\n["+op.param2+"]\nを蹴る事ができませんでした。\nブラックリストに追加します。") if op.param2 in wait["blacklist"]: pass if op.param2 in wait["whitelist"]: pass else: wait["blacklist"][op.param2] = True G = ki.getGroup(op.param1) G.preventJoinByTicket = False ki.updateGroup(G) Ti = ki.reissueGroupTicket(op.param1) cl.acceptGroupInvitationByTicket(op.param1,Ti) ki.acceptGroupInvitationByTicket(op.param1,Ti) kk.acceptGroupInvitationByTicket(op.param1,Ti) kc.acceptGroupInvitationByTicket(op.param1,Ti) X = cl.getGroup(op.param1) X.preventJoinByTicket = True cl.updateGroup(X) Ti = cl.reissueGroupTicket(op.param1) if op.param2 in wait["blacklist"]: pass if op.param2 in wait["whitelist"]: pass else: wait["blacklist"][op.param2] = True if Amid in op.param3: if op.param2 in Bots: pass try: kk.kickoutFromGroup(op.param1,[op.param2]) kc.kickoutFromGroup(op.param1,[op.param2]) except: try: random.choice(KAC).kickoutFromGroup(op.param1,[op.param2]) except: print ("clientが蹴り規制orグループに存在しない為、\n["+op.param1+"]\nの\n["+op.param2+"]\nを蹴る事ができませんでした。\nブラックリストに追加します。") if op.param2 in wait["blacklist"]: pass if op.param2 in wait["whitelist"]: pass else: wait["blacklist"][op.param2] = True X = kk.getGroup(op.param1) X.preventJoinByTicket = False cl.updateGroup(X) Ti = kk.reissueGroupTicket(op.param1) cl.acceptGroupInvitationByTicket(op.param1,Ti) ki.acceptGroupInvitationByTicket(op.param1,Ti) kk.acceptGroupInvitationByTicket(op.param1,Ti) G = ki.getGroup(op.param1) G.preventJoinByTicket = True ki.updateGroup(G) Ticket = ki.reissueGroupTicket(op.param1) if op.param2 in wait["blacklist"]: pass if op.param2 in wait["whitelist"]: pass else: wait["blacklist"][op.param2] = True if Bmid in op.param3: if op.param2 in Bots: pass try: kc.kickoutFromGroup(op.param1,[op.param2]) kk.kickoutFromGroup(op.param1,[op.param2]) except: try: random.choice(KAC).kickoutFromGroup(op.param1,[op.param2]) except: print ("clientが蹴り規制orグループに存在しない為、\n["+op.param1+"]\nの\n["+op.param2+"]\nを蹴る事ができませんでした。\nブラックリストに追加します。") if op.param2 in wait["blacklist"]: pass if op.param2 in wait["whitelist"]: pass else: wait["blacklist"][op.param2] = True X = kc.getGroup(op.param1) X.preventJoinByTicket = False kc.updateGroup(X) Ti = kc.reissueGroupTicket(op.param1) cl.acceptGroupInvitationByTicket(op.param1,Ti) ki.acceptGroupInvitationByTicket(op.param1,Ti) kk.acceptGroupInvitationByTicket(op.param1,Ti) kc.acceptGroupInvitationByTicket(op.param1,Ti) G = kk.getGroup(op.param1) G.preventJoinByTicket = True kk.updateGroup(G) Ticket = kk.reissueGroupTicket(op.param1) if op.param2 in wait["blacklist"]: pass if op.param2 in wait["whitelist"]: pass else: wait["blacklist"][op.param2] = True if Cmid in op.param3: if op.param2 in Bots: pass try: cl.kickoutFromGroup(op.param1,[op.param2]) kk.kickoutFromGroup(op.param1,[op.param2]) except: try: random.choice(KAC).kickoutFromGroup(op.param1,[op.param2]) except: print ("clientが蹴り規制orグループに存在しない為、\n["+op.param1+"]\nの\n["+op.param2+"]\nを蹴る事ができませんでした。\nブラックリストに追加します。") if op.param2 in wait["blacklist"]: pass if op.param2 in wait["whitelist"]: pass else: wait["blacklist"][op.param2] = True X = cl.getGroup(op.param1) X.preventJoinByTicket = False cl.updateGroup(X) Ti = cl.reissueGroupTicket(op.param1) cl.acceptGroupInvitationByTicket(op.param1,Ti) ki.acceptGroupInvitationByTicket(op.param1,Ti) kk.acceptGroupInvitationByTicket(op.param1,Ti) kc.acceptGroupInvitationByTicket(op.param1,Ti) G = kc.getGroup(op.param1) G.preventJoinByTicket = True kc.updateGroup(G) Ticket = kc.reissueGroupTicket(op.param1) if op.param2 in wait["blacklist"]: pass if op.param2 in wait["whitelist"]: pass else: wait["blacklist"][op.param2] = True if op.type == 13: if mid in op.param3: G = cl.getGroup(op.param1) if wait["autoJoin"] == True: if wait["autoCancel"]["on"] == True: if len(G.members) <= wait["autoCancel"]["members"]: cl.rejectGroupInvitation(op.param1) else: cl.acceptGroupInvitation(op.param1) else: cl.acceptGroupInvitation(op.param1) elif wait["autoCancel"]["on"] == True: if len(G.members) <= wait["autoCancel"]["members"]: cl.rejectGroupInvitation(op.param1) else: Inviter = op.param3.replace("",',') InviterX = Inviter.split(",") matched_list = [] for tag in wait["blacklist"]: matched_list+=filter(lambda str: str == tag, InviterX) if matched_list == []: pass else: cl.cancelGroupInvitation(op.param1, matched_list) if op.type == 22: if wait["leaveRoom"] == True: cl.leaveRoom(op.param1) if op.type == 24: if wait["leaveRoom"] == True: cl.leaveRoom(op.param1) if op.type == 26: msg = op.message if msg.toType == 0: msg.to = msg.from_ if msg.from_ == profile.mid: if "join:" in msg.text: list_ = msg.text.split(":") try: cl.acceptGroupInvitationByTicket(list_[1],list_[2]) X = cl.getGroup(list_[1]) X.preventJoinByTicket = True cl.updateGroup(X) except: cl.sendText(msg.to,"error") if msg.toType == 1: if wait["leaveRoom"] == True: cl.leaveRoom(msg.to) if msg.contentType == 16: url = msg.contentMetadata("line://home/post?userMid="+mid+"&postId="+"new_post") cl.like(url[25:58], url[66:], likeType=1001) if op.type == 26: msg = op.message if msg.contentType == 13: if wait["wblack"] == True: if msg.contentMetadata["mid"] in wait["commentBlack"]: cl.sendText(msg.to,"already") wait["wblack"] = False else: wait["commentBlack"][msg.contentMetadata["mid"]] = True wait["wblack"] = False cl.sendText(msg.to,"decided not to comment") elif wait["dblack"] == True: if msg.contentMetadata["mid"] in wait["commentBlack"]: del wait["commentBlack"][msg.contentMetadata["mid"]] cl.sendText(msg.to,"deleted") ki.sendText(msg.to,"deleted") kk.sendText(msg.to,"deleted") kc.sendText(msg.to,"deleted") wait["dblack"] = False else: wait["dblack"] = False cl.sendText(msg.to,"It is not in the black list") ki.sendText(msg.to,"It is not in the black list") kk.sendText(msg.to,"It is not in the black list") kc.sendText(msg.to,"It is not in the black list") elif wait["wblacklist"] == True: if msg.contentMetadata["mid"] in wait["blacklist"]: cl.sendText(msg.to,"already") ki.sendText(msg.to,"already") kk.sendText(msg.to,"already") kc.sendText(msg.to,"already") wait["wblacklist"] = False else: wait["blacklist"][msg.contentMetadata["mid"]] = True wait["wblacklist"] = False cl.sendText(msg.to,"aded") ki.sendText(msg.to,"aded") kk.sendText(msg.to,"aded") kc.sendText(msg.to,"aded") elif wait["dblacklist"] == True: if msg.contentMetadata["mid"] in wait["blacklist"]: del wait["blacklist"][msg.contentMetadata["mid"]] cl.sendText(msg.to,"deleted") ki.sendText(msg.to,"deleted") kk.sendText(msg.to,"deleted") kc.sendText(msg.to,"deleted") wait["dblacklist"] = False else: wait["dblacklist"] = False cl.sendText(msg.to,"It is not in the black list") ki.sendText(msg.to,"It is not in the black list") kk.sendText(msg.to,"It is not in the black list") kc.sendText(msg.to,"It is not in the black list") elif wait["contact"] == True: msg.contentType = 0 cl.sendText(msg.to,msg.contentMetadata["mid"]) if 'displayName' in msg.contentMetadata: contact = cl.getContact(msg.contentMetadata["mid"]) try: cu = cl.channel.getCover(msg.contentMetadata["mid"]) except: cu = "" cl.sendText(msg.to,"[displayName]:\n" + msg.contentMetadata["displayName"] + "\n[mid]:\n" + msg.contentMetadata["mid"] + "\n[statusMessage]:\n" + contact.statusMessage + "\n[pictureStatus]:\nhttp://dl.profile.line-cdn.net/" + contact.pictureStatus + "\n[coverURL]:\n" + str(cu)) else: contact = cl.getContact(msg.contentMetadata["mid"]) try: cu = cl.channel.getCover(msg.contentMetadata["mid"]) except: cu = "" cl.sendText(msg.to,"[displayName]:\n" + contact.displayName + "\n[mid]:\n" + msg.contentMetadata["mid"] + "\n[statusMessage]:\n" + contact.statusMessage + "\n[pictureStatus]:\nhttp://dl.profile.line-cdn.net/" + contact.pictureStatus + "\n[coverURL]:\n" + str(cu)) elif msg.contentType == 16: if wait["timeline"] == True: msg.contentType = 0 if wait["lang"] == "JP": msg.text = "post URL\n" + msg.contentMetadata["postEndUrl"] else: msg.text = "URL→\n" + msg.contentMetadata["postEndUrl"] cl.sendText(msg.to,msg.text) elif msg.text is None: return elif msg.text in ["Key","help","Help"]: if wait["lang"] == "JP": cl.sendText(msg.to,helpMessage) else: cl.sendText(msg.to,helpt) elif ("Gn " in msg.text): if msg.toType == 2: X = cl.getGroup(msg.to) X.name = msg.text.replace("Gn ","") cl.updateGroup(X) else: cl.sendText(msg.to,"It can't be used besides the group.") elif ("Cv1 gn " in msg.text): if msg.toType == 2: X = cl.getGroup(msg.to) X.name = msg.text.replace("Cv1 gn ","") ki.updateGroup(X) else: ki.sendText(msg.to,"It can't be used besides the group.") elif ("Cv2 gn " in msg.text): if msg.toType == 2: X = cl.getGroup(msg.to) X.name = msg.text.replace("Cv2 gn ","") kk.updateGroup(X) else: kk.sendText(msg.to,"It can't be used besides the group.") elif ("Cv3 gn " in msg.text): if msg.toType == 2: X = cl.getGroup(msg.to) X.name = msg.text.replace("Cv3 gn ","") kc.updateGroup(X) else: kc.sendText(msg.to,"It can't be used besides the group.") elif "Kick " in msg.text: midd = msg.text.replace("Kick ","") cl.kickoutFromGroup(msg.to,[midd]) elif "Cv1 kick " in msg.text: midd = msg.text.replace("Cv1 kick ","") ki.kickoutFromGroup(msg.to,[midd]) elif "Cv2 kick " in msg.text: midd = msg.text.replace("Cv2 kick ","") kk.kickoutFromGroup(msg.to,[midd]) elif "Cv3 kick " in msg.text: midd = msg.text.replace("Cv3 kick ","") kc.kickoutFromGroup(msg.to,[midd]) elif "Invite " in msg.text: midd = msg.text.replace("Invite ","") cl.findAndAddContactsByMid(midd) cl.inviteIntoGroup(msg.to,[midd]) elif "Cv1 invite " in msg.text: midd = msg.text.replace("Cv1 invite ","") ki.findAndAddContactsByMid(midd) ki.inviteIntoGroup(msg.to,[midd]) elif "Cv2 invite " in msg.text: midd = msg.text.replace("Cv2 invite ","") kk.findAndAddContactsByMid(midd) kk.inviteIntoGroup(msg.to,[midd]) elif "Cv3 invite " in msg.text: midd = msg.text.replace("Cv3 invite ","") kc.findAndAddContactsByMid(midd) kc.inviteIntoGroup(msg.to,[midd]) elif msg.text in ["Me"]: msg.contentType = 13 msg.contentMetadata = {'mid': mid} cl.sendMessage(msg) elif msg.text in ["Cv1"]: msg.contentType = 13 msg.contentMetadata = {'mid': Amid} ki.sendMessage(msg) elif msg.text in ["Cv2"]: msg.contentType = 13 msg.contentMetadata = {'mid': Bmid} kk.sendMessage(msg) elif msg.text in ["愛のプレゼント","Gift"]: msg.contentType = 9 msg.contentMetadata={'PRDID': 'a0768339-c2d3-4189-9653-2909e9bb6f58', 'PRDTYPE': 'THEME', 'MSGTPL': '5'} msg.text = None cl.sendMessage(msg) elif msg.text in ["愛のプレゼント","Cv1 gift"]: msg.contentType = 9 msg.contentMetadata={'PRDID': 'a0768339-c2d3-4189-9653-2909e9bb6f58', 'PRDTYPE': 'THEME', 'MSGTPL': '6'} msg.text = None ki.sendMessage(msg) elif msg.text in ["愛のプレゼント","Cv2 gift"]: msg.contentType = 9 msg.contentMetadata={'PRDID': 'a0768339-c2d3-4189-9653-2909e9bb6f58', 'PRDTYPE': 'THEME', 'MSGTPL': '8'} msg.text = None kk.sendMessage(msg) elif msg.text in ["愛のプレゼント","Cv3 gift"]: msg.contentType = 9 msg.contentMetadata={'PRDID': 'a0768339-c2d3-4189-9653-2909e9bb6f58', 'PRDTYPE': 'THEME', 'MSGTPL': '10'} msg.text = None kc.sendMessage(msg) elif msg.text in ["愛のプレゼント","All gift"]: msg.contentType = 9 msg.contentMetadata={'PRDID': 'a0768339-c2d3-4189-9653-2909e9bb6f58', 'PRDTYPE': 'THEME', 'MSGTPL': '12'} msg.text = None ki.sendMessage(msg) kk.sendMessage(msg) kc.sendMessage(msg) elif msg.text in ["cancel","Cancel"]: if msg.toType == 2: X = cl.getGroup(msg.to) if X.invitee is not None: gInviMids = [contact.mid for contact in X.invitee] cl.cancelGroupInvitation(msg.to, gInviMids) else: if wait["lang"] == "JP": cl.sendText(msg.to,"No one is inviting") else: cl.sendText(msg.to,"Sorry, nobody absent") else: if wait["lang"] == "JP": cl.sendText(msg.to,"Can not be used outside the group") else: cl.sendText(msg.to,"Not for use less than group") elif msg.text in ["Cv cancel","Bot cancel"]: if msg.toType == 2: G = k3.getGroup(msg.to) if G.invitee is not None: gInviMids = [contact.mid for contact in G.invitee] k3.cancelGroupInvitation(msg.to, gInviMids) else: if wait["lang"] == "JP": k3.sendText(msg.to,"No one is inviting") else: k3.sendText(msg.to,"Sorry, nobody absent") else: if wait["lang"] == "JP": k3.sendText(msg.to,"Can not be used outside the group") else: k3.sendText(msg.to,"Not for use less than group") #elif "gurl" == msg.text: #print cl.getGroup(msg.to) ##cl.sendMessage(msg) elif msg.text in ["Ourl","Link on"]: if msg.toType == 2: X = cl.getGroup(msg.to) X.preventJoinByTicket = False cl.updateGroup(X) if wait["lang"] == "JP": cl.sendText(msg.to,"Done") else: cl.sendText(msg.to,"already open") else: if wait["lang"] == "JP": cl.sendText(msg.to,"Can not be used outside the group") else: cl.sendText(msg.to,"Not for use less than group") elif msg.text in ["Cv1 ourl","Cv1 link on"]: if msg.toType == 2: X = cl.getGroup(msg.to) X.preventJoinByTicket = False ki.updateGroup(X) if wait["lang"] == "JP": ki.sendText(msg.to,"Done Chivas") else: ki.sendText(msg.to,"already open") else: if wait["lang"] == "JP": cl.sendText(msg.to,"Can not be used outside the group") else: cl.sendText(msg.to,"Not for use less than group") elif msg.text in ["Cv2 ourl","Cv2 link on"]: if msg.toType == 2: X = kk.getGroup(msg.to) X.preventJoinByTicket = False kk.updateGroup(X) if wait["lang"] == "JP": kk.sendText(msg.to,"Done Chivas") else: kk.sendText(msg.to,"already open") else: if wait["lang"] == "JP": kk.sendText(msg.to,"Can not be used outside the group") else: kk.sendText(msg.to,"Not for use less than group") elif msg.text in ["Cv3 ourl","Cv3 link on"]: if msg.toType == 2: X = kc.getGroup(msg.to) X.preventJoinByTicket = False kc.updateGroup(X) if wait["lang"] == "JP": kc.sendText(msg.to,"Done Chivas") else: kc.sendText(msg.to,"already open") else: if wait["lang"] == "JP": kc.sendText(msg.to,"Can not be used outside the group") else: kc.sendText(msg.to,"Not for use less than group") elif msg.text in ["Curl","Link off"]: if msg.toType == 2: X = cl.getGroup(msg.to) X.preventJoinByTicket = True cl.updateGroup(X) if wait["lang"] == "JP": cl.sendText(msg.to,"Done") else: cl.sendText(msg.to,"already close") else: if wait["lang"] == "JP": cl.sendText(msg.to,"Can not be used outside the group") else: cl.sendText(msg.to,"Not for use less than group") elif msg.text in ["Cv1 curl","Cv1 link off"]: if msg.toType == 2: X = ki.getGroup(msg.to) X.preventJoinByTicket = True ki.updateGroup(X) if wait["lang"] == "JP": ki.sendText(msg.to,"Done Chivas") else: ki.sendText(msg.to,"already close") else: if wait["lang"] == "JP": ki.sendText(msg.to,"Can not be used outside the group") else: ki.sendText(msg.to,"Not for use less than group") elif msg.text in ["Cv2 curl","Cv2 link off"]: if msg.toType == 2: X = kk.getGroup(msg.to) X.preventJoinByTicket = True kk.updateGroup(X) if wait["lang"] == "JP": kk.sendText(msg.to,"Done Chivas") else: kk.sendText(msg.to,"already close") else: if wait["lang"] == "JP": kk.sendText(msg.to,"Can not be used outside the group") else: kk.sendText(msg.to,"Not for use less than group") elif msg.text in ["Cv3 curl","Cv3 link off"]: if msg.toType == 2: X = kc.getGroup(msg.to) X.preventJoinByTicket = True kc.updateGroup(X) if wait["lang"] == "JP": kc.sendText(msg.to,"Done Chivas") else: kc.sendText(msg.to,"already close") else: if wait["lang"] == "JP": kc.sendText(msg.to,"Can not be used outside the group") else: kc.sendText(msg.to,"Not for use less than group") elif "jointicket " in msg.text.lower(): rplace=msg.text.lower().replace("jointicket ") if rplace == "on": wait["atjointicket"]=True elif rplace == "off": wait["atjointicket"]=False cl.sendText(msg.to,"Auto Join Group by Ticket is %s" % str(wait["atjointicket"])) elif '/ti/g/' in msg.text.lower(): link_re = re.compile('(?:line\:\/|line\.me\/R)\/ti\/g\/([a-zA-Z0-9_-]+)?') links = link_re.findall(msg.text) n_links=[] for l in links: if l not in n_links: n_links.append(l) for ticket_id in n_links: if wait["atjointicket"] == True: group=cl.findGroupByTicket(ticket_id) cl.acceptGroupInvitationByTicket(group.id,ticket_id) cl.sendText(msg.to,"Sukses join ke grup %s" % str(group.name)) elif msg.text == "Ginfo": if msg.toType == 2: ginfo = cl.getGroup(msg.to) try: gCreator = ginfo.creator.displayName except: gCreator = "Error" if wait["lang"] == "JP": if ginfo.invitee is None: sinvitee = "0" else: sinvitee = str(len(ginfo.invitee)) if ginfo.preventJoinByTicket == True: u = "close" else: u = "open" cl.sendText(msg.to,"[group name]\n" + str(ginfo.name) + "\n[gid]\n" + msg.to + "\n[group creator]\n" + gCreator + "\n[profile status]\nhttp://dl.profile.line.naver.jp/" + ginfo.pictureStatus + "\nmembers:" + str(len(ginfo.members)) + "members\npending:" + sinvitee + "people\nURL:" + u + "it is inside") else: cl.sendText(msg.to,"[group name]\n" + str(ginfo.name) + "\n[gid]\n" + msg.to + "\n[group creator]\n" + gCreator + "\n[profile status]\nhttp://dl.profile.line.naver.jp/" + ginfo.pictureStatus) else: if wait["lang"] == "JP": cl.sendText(msg.to,"Can not be used outside the group") else: cl.sendText(msg.to,"Not for use less than group") elif "Id" == msg.text: cl.sendText(msg.to,msg.to) elif "All mid" == msg.text: cl.sendText(msg.to,mid) ki.sendText(msg.to,Amid) kk.sendText(msg.to,Bmid) kc.sendText(msg.to,Cmid) elif "Mid" == msg.text: cl.sendText(msg.to,mid) elif "Cv1 mid" == msg.text: ki.sendText(msg.to,Amid) elif "Cv2 mid" == msg.text: kk.sendText(msg.to,Bmid) elif "Cv3 mid" == msg.text: kc.sendText(msg.to,Cmid) elif msg.text in ["Wkwk"]: msg.contentType = 7 msg.text = None msg.contentMetadata = { "STKID": "100", "STKPKGID": "1", "STKVER": "100" } ki.sendMessage(msg) kk.sendMessage(msg) elif msg.text in ["Hehehe"]: msg.contentType = 7 msg.text = None msg.contentMetadata = { "STKID": "10", "STKPKGID": "1", "STKVER": "100" } ki.sendMessage(msg) kk.sendMessage(msg) elif msg.text in ["Galon"]: msg.contentType = 7 msg.text = None msg.contentMetadata = { "STKID": "9", "STKPKGID": "1", "STKVER": "100" } ki.sendMessage(msg) kk.sendMessage(msg) elif msg.text in ["You"]: msg.contentType = 7 msg.text = None msg.contentMetadata = { "STKID": "7", "STKPKGID": "1", "STKVER": "100" } ki.sendMessage(msg) kk.sendMessage(msg) elif msg.text in ["Hadeuh"]: msg.contentType = 7 msg.text = None msg.contentMetadata = { "STKID": "6", "STKPKGID": "1", "STKVER": "100" } ki.sendMessage(msg) kk.sendMessage(msg) elif msg.text in ["Please"]: msg.contentType = 7 msg.text = None msg.contentMetadata = { "STKID": "4", "STKPKGID": "1", "STKVER": "100" } ki.sendMessage(msg) kk.sendMessage(msg) elif msg.text in ["Haaa"]: msg.contentType = 7 msg.text = None msg.contentMetadata = { "STKID": "3", "STKPKGID": "1", "STKVER": "100" } ki.sendMessage(msg) kk.sendMessage(msg) elif msg.text in ["Lol"]: msg.contentType = 7 msg.text = None msg.contentMetadata = { "STKID": "110", "STKPKGID": "1", "STKVER": "100" } ki.sendMessage(msg) kk.sendMessage(msg) elif msg.text in ["Hmmm"]: msg.contentType = 7 msg.text = None msg.contentMetadata = { "STKID": "101", "STKPKGID": "1", "STKVER": "100" } ki.sendMessage(msg) elif msg.text in ["Welcome"]: msg.contentType = 7 msg.text = None msg.contentMetadata = { "STKID": "247", "STKPKGID": "3", "STKVER": "100" } ki.sendMessage(msg) kk.sendMessage(msg) elif msg.text in ["TL:"]: tl_text = msg.text.replace("TL:","") cl.sendText(msg.to,"line://home/post?userMid="+mid+"&postId="+cl.new_post(tl_text)["result"]["post"]["postInfo"]["postId"]) elif msg.text in ["Cn "]: string = msg.text.replace("Cn ","") if len(string.decode('utf-8')) <= 20: profile = cl.getProfile() profile.displayName = string cl.updateProfile(profile) cl.sendText(msg.to,"name " + string + " done") elif msg.text in ["Cv1 rename "]: string = msg.text.replace("Cv1 rename ","") if len(string.decode('utf-8')) <= 20: profile_B = ki.getProfile() profile_B.displayName = string ki.updateProfile(profile_B) ki.sendText(msg.to,"name " + string + " done") elif msg.text in ["Cv2 rename "]: string = msg.text.replace("Cv2 rename ","") if len(string.decode('utf-8')) <= 20: profile_B = kk.getProfile() profile_B.displayName = string kk.updateProfile(profile_B) kk.sendText(msg.to,"name " + string + " done") elif msg.text in ["Mc "]: mmid = msg.text.replace("Mc ","") msg.contentType = 13 msg.contentMetadata = {"mid":mmid} cl.sendMessage(msg) elif msg.text in ["連絡先:オン","K on","Contact on","顯示:開"]: if wait["contact"] == True: if wait["lang"] == "JP": cl.sendText(msg.to,"already on") else: cl.sendText(msg.to,"done") else: wait["contact"] = True if wait["lang"] == "JP": cl.sendText(msg.to,"already on") else: cl.sendText(msg.to,"done") elif msg.text in ["連絡先:オフ","K off","Contact off","顯示:關"]: if wait["contact"] == False: if wait["lang"] == "JP": cl.sendText(msg.to,"already off") else: cl.sendText(msg.to,"done ") else: wait["contact"] = False if wait["lang"] == "JP": cl.sendText(msg.to,"already off") else: cl.sendText(msg.to,"done") elif msg.text in ["è‡ªå‹•å‚åŠ :オン","Join on","Auto join:on","è‡ªå‹•åƒåŠ ï¼šé–‹"]: if wait["autoJoin"] == True: if wait["lang"] == "JP": cl.sendText(msg.to,"already on") else: cl.sendText(msg.to,"done") else: wait["autoJoin"] = True if wait["lang"] == "JP": cl.sendText(msg.to,"already on") else: cl.sendText(msg.to,"done") elif msg.text in ["è‡ªå‹•å‚åŠ :オフ","Join off","Auto join:off","è‡ªå‹•åƒåŠ ï¼šé—œ"]: if wait["autoJoin"] == False: if wait["lang"] == "JP": cl.sendText(msg.to,"already off") else: cl.sendText(msg.to,"done") else: wait["autoJoin"] = False if wait["lang"] == "JP": cl.sendText(msg.to,"already off") else: cl.sendText(msg.to,"done") elif msg.text in ["Gcancel:"]: try: strnum = msg.text.replace("Gcancel:","") if strnum == "off": wait["autoCancel"]["on"] = False if wait["lang"] == "JP": cl.sendText(msg.to,"Invitation refused turned off\nTo turn on please specify the number of people and send") else: cl.sendText(msg.to,"关了邀请拒绝。要时开请指定人数发送") else: num = int(strnum) wait["autoCancel"]["on"] = True if wait["lang"] == "JP": cl.sendText(msg.to,strnum + "The group of people and below decided to automatically refuse invitation") else: cl.sendText(msg.to,strnum + "使人以下的小组用自动邀请拒绝") except: if wait["lang"] == "JP": cl.sendText(msg.to,"Value is wrong") else: cl.sendText(msg.to,"Bizarre ratings") elif msg.text in ["強制自動退出:オン","Leave on","Auto leave:on","強制自動退出:開"]: if wait["leaveRoom"] == True: if wait["lang"] == "JP": cl.sendText(msg.to,"already on") else: cl.sendText(msg.to,"done") else: wait["leaveRoom"] = True if wait["lang"] == "JP": cl.sendText(msg.to,"done") else: cl.sendText(msg.to,"要了开。") elif msg.text in ["強制自動退出:オフ","Leave off","Auto leave:off","強制自動退出:關"]: if wait["leaveRoom"] == False: if wait["lang"] == "JP": cl.sendText(msg.to,"already off") else: cl.sendText(msg.to,"done") else: wait["leaveRoom"] = False if wait["lang"] == "JP": cl.sendText(msg.to,"done") else: cl.sendText(msg.to,"already") elif msg.text in ["共有:オン","Share on","Share on"]: if wait["timeline"] == True: if wait["lang"] == "JP": cl.sendText(msg.to,"already on") else: cl.sendText(msg.to,"done") else: wait["timeline"] = True if wait["lang"] == "JP": cl.sendText(msg.to,"done") else: cl.sendText(msg.to,"要了开。") elif msg.text in ["共有:オフ","Share off","Share off"]: if wait["timeline"] == False: if wait["lang"] == "JP": cl.sendText(msg.to,"already off") else: cl.sendText(msg.to,"done") else: wait["timeline"] = False if wait["lang"] == "JP": cl.sendText(msg.to,"done") else: cl.sendText(msg.to,"要了关断。") elif msg.text in ["Set"]: md = "" if wait["contact"] == True: md+=" Contact : on\n" else: md+=" Contact : off\n" if wait["autoJoin"] == True: md+=" Auto join : on\n" else: md +=" Auto join : off\n" if wait["autoCancel"]["on"] == True:md+=" Group cancel :" + str(wait["autoCancel"]["members"]) + "\n" else: md+= " Group cancel : off\n" if wait["leaveRoom"] == True: md+=" Auto leave : on\n" else: md+=" Auto leave : off\n" if wait["timeline"] == True: md+=" Share : on\n" else:md+=" Share : off\n" if wait["autoAdd"] == True: md+=" Auto add : on\n" else:md+=" Auto add : off\n" if wait["commentOn"] == True: md+=" Comment : on\n" else:md+=" Comment : off\n" if wait["atjointicket"] == True: md+=" Auto Join Group by Ticket : on\n" else:md+=" Auto Join Group by Ticket : off\n" cl.sendText(msg.to,md) elif "album merit " in msg.text: gid = msg.text.replace("album merit ","") album = cl.getAlbum(gid) if album["result"]["items"] == []: if wait["lang"] == "JP": cl.sendText(msg.to,"There is no album") else: cl.sendText(msg.to,"相册没在。") else: if wait["lang"] == "JP": mg = "The following is the target album" else: mg = "以下是对象的相册" for y in album["result"]["items"]: if "photoCount" in y: mg += str(y["title"]) + ":" + str(y["photoCount"]) + "sheet\n" else: mg += str(y["title"]) + ":0sheet\n" cl.sendText(msg.to,mg) elif "album " in msg.text: gid = msg.text.replace("album ","") album = cl.getAlbum(gid) if album["result"]["items"] == []: if wait["lang"] == "JP": cl.sendText(msg.to,"There is no album") else: cl.sendText(msg.to,"相册没在。") else: if wait["lang"] == "JP": mg = "The following is the target album" else: mg = "以下是对象的相册" for y in album["result"]["items"]: if "photoCount" in y: mg += str(y["title"]) + ":" + str(y["photoCount"]) + "sheet\n" else: mg += str(y["title"]) + ":0sheet\n" elif "album remove " in msg.text: gid = msg.text.replace("album remove ","") albums = cl.getAlbum(gid)["result"]["items"] i = 0 if albums != []: for album in albums: cl.deleteAlbum(gid,album["id"]) i += 1 if wait["lang"] == "JP": cl.sendText(msg.to,str(i) + "Deleted albums") else: cl.sendText(msg.to,str(i) + "åˆ é™¤äº†äº‹çš„ç›¸å†Œã€‚") elif msg.text in ["Group id","群組全id"]: gid = cl.getGroupIdsJoined() h = "" for i in gid: h += "[%s]:%s\n" % (cl.getGroup(i).name,i) cl.sendText(msg.to,h) elif msg.text in ["Cancelall"]: gid = cl.getGroupIdsInvited() for i in gid: cl.rejectGroupInvitation(i) if wait["lang"] == "JP": cl.sendText(msg.to,"All invitations have been refused") else: cl.sendText(msg.to,"拒绝了全部的邀请。") elif "album remove→" in msg.text: gid = msg.text.replace("album remove→","") albums = cl.getAlbum(gid)["result"]["items"] i = 0 if albums != []: for album in albums: cl.deleteAlbum(gid,album["id"]) i += 1 if wait["lang"] == "JP": cl.sendText(msg.to,str(i) + "Albums deleted") else: cl.sendText(msg.to,str(i) + "åˆ é™¤äº†äº‹çš„ç›¸å†Œã€‚") elif msg.text in ["è‡ªå‹•è¿½åŠ :オン","Add on","Auto add:on","è‡ªå‹•è¿½åŠ ï¼šé–‹"]: if wait["autoAdd"] == True: if wait["lang"] == "JP": cl.sendText(msg.to,"already on") else: cl.sendText(msg.to,"done") else: wait["autoAdd"] = True if wait["lang"] == "JP": cl.sendText(msg.to,"done") else: cl.sendText(msg.to,"要了开。") elif msg.text in ["è‡ªå‹•è¿½åŠ :オフ","Add off","Auto add:off","è‡ªå‹•è¿½åŠ ï¼šé—œ"]: if wait["autoAdd"] == False: if wait["lang"] == "JP": cl.sendText(msg.to,"already off") else: cl.sendText(msg.to,"done") else: wait["autoAdd"] = False if wait["lang"] == "JP": cl.sendText(msg.to,"done") else: cl.sendText(msg.to,"要了关断。") elif "Message change: " in msg.text: wait["message"] = msg.text.replace("Message change: ","") cl.sendText(msg.to,"message changed") elif "Message add: " in msg.text: wait["message"] = msg.text.replace("Message add: ","") if wait["lang"] == "JP": cl.sendText(msg.to,"message changed") else: cl.sendText(msg.to,"done。") elif msg.text in ["Message","è‡ªå‹•è¿½åŠ å•å€™èªžç¢ºèª"]: if wait["lang"] == "JP": cl.sendText(msg.to,"message change to\n\n" + wait["message"]) else: cl.sendText(msg.to,"The automatic appending information is set as follows。\n\n" + wait["message"]) elif "Comment:" in msg.text: c = msg.text.replace("Comment:","") if c in [""," ","\n",None]: cl.sendText(msg.to,"message changed") else: wait["comment"] = c cl.sendText(msg.to,"changed\n\n" + c) elif "Add comment:" in msg.text: c = msg.text.replace("Add comment:","") if c in [""," ","\n",None]: cl.sendText(msg.to,"String that can not be changed") else: wait["comment"] = c cl.sendText(msg.to,"changed\n\n" + c) elif msg.text in ["コメント:オン","Comment on","Comment:on","è‡ªå‹•é¦–é ç•™è¨€ï¼šé–‹"]: if wait["commentOn"] == True: if wait["lang"] == "JP": cl.sendText(msg.to,"done") else: cl.sendText(msg.to,"already on") else: wait["commentOn"] = True if wait["lang"] == "JP": cl.sendText(msg.to,"done") else: cl.sendText(msg.to,"要了开。") elif msg.text in ["コメント:オフ","Comment on","Comment off","è‡ªå‹•é¦–é ç•™è¨€ï¼šé—œ"]: if wait["commentOn"] == False: if wait["lang"] == "JP": cl.sendText(msg.to,"done") else: cl.sendText(msg.to,"already off") else: wait["commentOn"] = False if wait["lang"] == "JP": cl.sendText(msg.to,"done") else: cl.sendText(msg.to,"要了关断。") elif msg.text in ["Comment","留言確認"]: cl.sendText(msg.to,"message changed to\n\n" + str(wait["comment"])) elif msg.text in ["Gurl"]: if msg.toType == 2: x = cl.getGroup(msg.to) if x.preventJoinByTicket == True: x.preventJoinByTicket = False cl.updateGroup(x) gurl = cl.reissueGroupTicket(msg.to) cl.sendText(msg.to,"line://ti/g/" + gurl) else: if wait["lang"] == "JP": cl.sendText(msg.to,"Can't be used outside the group") else: cl.sendText(msg.to,"Not for use less than group") elif msg.text in ["Cv1 gurl"]: if msg.toType == 2: x = cl.getGroup(msg.to) if x.preventJoinByTicket == True: x.preventJoinByTicket = False ki.updateGroup(x) gurl = ki.reissueGroupTicket(msg.to) ki.sendText(msg.to,"line://ti/g/" + gurl) else: if wait["lang"] == "JP": cl.sendText(msg.to,"Can't be used outside the group") else: cl.sendText(msg.to,"Not for use less than group") elif msg.text in ["Cv2 gurl"]: if msg.toType == 2: x = cl.getGroup(msg.to) if x.preventJoinByTicket == True: x.preventJoinByTicket = False kk.updateGroup(x) gurl = kk.reissueGroupTicket(msg.to) kk.sendText(msg.to,"line://ti/g/" + gurl) else: if wait["lang"] == "JP": cl.sendText(msg.to,"Can't be used outside the group") else: cl.sendText(msg.to,"Not for use less than group") elif msg.text in ["Cv3 gurl"]: if msg.toType == 2: x = cl.getGroup(msg.to) if x.preventJoinByTicket == True: x.preventJoinByTicket = False kc.updateGroup(x) gurl = kc.reissueGroupTicket(msg.to) kc.sendText(msg.to,"line://ti/g/" + gurl) else: if wait["lang"] == "JP": cl.sendText(msg.to,"Can't be used outside the group") else: cl.sendText(msg.to,"Not for use less than group") elif msg.text in ["Comment bl "]: wait["wblack"] = True cl.sendText(msg.to,"add to comment bl") elif msg.text in ["Comment wl "]: wait["dblack"] = True cl.sendText(msg.to,"wl to comment bl") elif msg.text in ["Comment bl confirm"]: if wait["commentBlack"] == {}: cl.sendText(msg.to,"confirmed") else: cl.sendText(msg.to,"Blacklist") mc = "" for mi_d in wait["commentBlack"]: mc += "" +cl.getContact(mi_d).displayName + "\n" cl.sendText(msg.to,mc) elif msg.text in ["Jam on"]: if wait["clock"] == True: cl.sendText(msg.to,"already on") else: wait["clock"] = True now2 = datetime.now() nowT = datetime.strftime(now2,"(%H:%M)") profile = cl.getProfile() profile.displayName = wait["cName"] + nowT cl.updateProfile(profile) cl.sendText(msg.to,"done") elif msg.text in ["Jam off"]: if wait["clock"] == False: cl.sendText(msg.to,"already off") else: wait["clock"] = False cl.sendText(msg.to,"done") elif msg.text in ["Change clock "]: n = msg.text.replace("Change clock ","") if len(n.decode("utf-8")) > 13: cl.sendText(msg.to,"changed") else: wait["cName"] = n cl.sendText(msg.to,"changed to\n\n" + n) elif msg.text in ["Up"]: if wait["clock"] == True: now2 = datetime.now() nowT = datetime.strftime(now2,"(%H:%M)") profile = cl.getProfile() profile.displayName = wait["cName"] + nowT cl.updateProfile(profile) cl.sendText(msg.to,"Jam Update") else: cl.sendText(msg.to,"Please turn on the name clock") elif msg.text == "$set": cl.sendText(msg.to, "Check sider") ki.sendText(msg.to, "Check sider") kk.sendText(msg.to, "Check sider") kc.sendText(msg.to, "Check sider") try: del wait2['readPoint'][msg.to] del wait2['readMember'][msg.to] except: pass wait2['readPoint'][msg.to] = msg.id wait2['readMember'][msg.to] = "" wait2['ROM'][msg.to] = {} print wait2 elif msg.text == "$read": if msg.to in wait2['readPoint']: if wait2["ROM"][msg.to].items() == []: chiya = "" else: chiya = "" for rom in wait2["ROM"][msg.to].items(): print rom chiya += rom[1] + "\n" cl.sendText(msg.to, "People who readed %s\nthat's it\n\nPeople who have ignored reads\n%sIt is abnormal ♪\n\nReading point creation date n time:\n[%s]" % (wait2['readMember'][msg.to],chiya,setTime[msg.to])) else: cl.sendText(msg.to, "An already read point has not been set.\n「set」you can send ♪ read point will be created ♪") #----------------------------------------------- #----------------------------------------------- elif msg.text in ["All join"]: G = cl.getGroup(msg.to) ginfo = cl.getGroup(msg.to) G.preventJoinByTicket = False cl.updateGroup(G) invsend = 0 Ticket = cl.reissueGroupTicket(msg.to) ki.acceptGroupInvitationByTicket(msg.to,Ticket) time.sleep(0.2) kk.acceptGroupInvitationByTicket(msg.to,Ticket) time.sleep(0.2) kc.acceptGroupInvitationByTicket(msg.to,Ticket) time.sleep(0.2) G = cl.getGroup(msg.to) G.preventJoinByTicket = True ki.updateGroup(G) print "kicker ok" G.preventJoinByTicket(G) ki.updateGroup(G) elif msg.text in ["Cv1 join"]: X = cl.getGroup(msg.to) X.preventJoinByTicket = False cl.updateGroup(X) invsend = 0 Ti = cl.reissueGroupTicket(msg.to) ki.acceptGroupInvitationByTicket(msg.to,Ti) G = kk.getGroup(msg.to) G.preventJoinByTicket = True ki.updateGroup(G) Ticket = kk.reissueGroupTicket(msg.to) elif msg.text in ["Cv2 join"]: X = cl.getGroup(msg.to) X.preventJoinByTicket = False cl.updateGroup(X) invsend = 0 Ti = cl.reissueGroupTicket(msg.to) kk.acceptGroupInvitationByTicket(msg.to,Ti) G = ki.getGroup(msg.to) G.preventJoinByTicket = True kk.updateGroup(G) Ticket = kk.reissueGroupTicket(msg.to) #----------------------------------------------- #.acceptGroupInvitationByTicket(msg.to,Ticket) elif msg.text in ["Cv3 join"]: G = cl.getGroup(msg.to) ginfo = cl.getGroup(msg.to) G.preventJoinByTicket = False cl.updateGroup(G) invsend = 0 Ticket = cl.reissueGroupTicket(msg.to) kc.acceptGroupInvitationByTicket(msg.to,Ticket) print "kicker ok" G.preventJoinByTicket = True kc.updateGroup(G) #----------------------------------------------- elif msg.text in ["Bye all"]: if msg.toType == 2: ginfo = cl.getGroup(msg.to) try: ki.leaveGroup(msg.to) kk.leaveGroup(msg.to) kc.leaveGroup(msg.to) except: pass elif msg.text in ["Bye 1"]: if msg.toType == 2: ginfo = cl.getGroup(msg.to) try: ki.leaveGroup(msg.to) except: pass elif msg.text in ["Bye 2"]: if msg.toType == 2: ginfo = cl.getGroup(msg.to) try: ki.leaveGroup(msg.to) kk.leaveGroup(msg.to) except: pass elif msg.text in ["Cv1 @bye"]: if msg.toType == 2: ginfo = cl.getGroup(msg.to) try: ki.leaveGroup(msg.to) except: pass elif msg.text in ["Cv2 @bye"]: if msg.toType == 2: ginfo = cl.getGroup(msg.to) try: kk.leaveGroup(msg.to) except: pass elif msg.text in ["Cv3 @bye"]: if msg.toType == 2: ginfo = cl.getGroup(msg.to) try: kc.leaveGroup(msg.to) except: pass #----------------------------------------------- elif msg.text in ["Tg","Tag all"]: group = cl.getGroup(msg.to) jw = [contact.mid for contact in group.members] cb = "" cb2 = "" strt = int(0) akh = int(0) for rs in jw: xname = cl.getContact(rs).displayName xlen = int(len('x')+1) akh = akh + xlen cb += """{"S":"""+json.dumps(str(strt))+""","E":"""+json.dumps(str(akh))+""","M":"""+json.dumps(rs)+"},""" strt = strt + int(len('x')+3) akh = akh + 2 cb2 += "@x \n" cb = (cb[:int(len(cb)-1)]) msg.contentType = 0 msg.text = cb2 msg.contentMetadata ={'MENTION':'{"MENTIONEES":['+cb+']}','EMTVER':'d'} try: cl.sendMessage(msg) except Exception as error: print error #----------------------------------------------- elif msg.text in ["Kill"]: if msg.toType == 2: group = ki.getGroup(msg.to) gMembMids = [contact.mid for contact in group.members] matched_list = [] for tag in wait["blacklist"]: matched_list+=filter(lambda str: str == tag, gMembMids) if matched_list == []: kk.sendText(msg.to,"Fuck You") kc.sendText(msg.to,"Fuck You") return for jj in matched_list: try: klist=[ki,kk,kc] kicker=random.choice(klist) kicker.kickoutFromGroup(msg.to,[jj]) print (msg.to,[jj]) except: pass elif "Cleanse" in msg.text: if msg.toType == 2: print "ok" _name = msg.text.replace("Cleanse","") gs = ki.getGroup(msg.to) gs = kk.getGroup(msg.to) gs = kc.getGroup(msg.to) ki.sendText(msg.to,"Just some casual cleansing ô") kk.sendText(msg.to,"Group cleansed.") kc.sendText(msg.to,"Fuck You All") targets = [] for g in gs.members: if _name in g.displayName: targets.append(g.mid) if targets == []: ki.sendText(msg.to,"Not found.") kk.sendText(msg.to,"Not found.") kc.sendText(msg.to,"Not found.") else: for target in targets: try: klist=[ki,kk,kc] kicker=random.choice(klist) kicker.kickoutFromGroup(msg.to,[target]) print (msg.to,[g.mid]) except: ki.sendText(msg.to,"Group cleanse") kk.sendText(msg.to,"Group cleanse") kc.sendText(msg.to,"Group cleanse") elif "Nk " in msg.text: if msg.from_ in admin: nk0 = msg.text.replace("Nk ","") nk1 = nk0.lstrip() nk2 = nk1.replace("@","") nk3 = nk2.rstrip() _name = nk3 gs = cl.getGroup(msg.to) targets = [] for s in gs.members: if _name in s.displayName: targets.append(s.mid) if targets == []: sendMessage(msg.to,"user does not exist") pass else: for target in targets: try: klist=[cl,ki,kk,kc] kicker=random.choice(klist) kicker.kickoutFromGroup(msg.to,[target]) print (msg.to,[g.mid]) except: ki.sendText(msg.to,"Succes Cv") kk.sendText(msg.to,"Fuck You") elif "Blacklist @ " in msg.text: _name = msg.text.replace("Blacklist @ ","") _kicktarget = _name.rstrip(' ') gs = ki2.getGroup(msg.to) targets = [] for g in gs.members: if _kicktarget == g.displayName: targets.append(g.mid) if targets == []: cl.sendText(msg.to,"Not found") else: for target in targets: try: wait["blacklist"][target] = True f=codecs.open('st2__b.json','w','utf-8') json.dump(wait["blacklist"], f, sort_keys=True, indent=4,ensure_ascii=False) k3.sendText(msg.to,"Succes Cv") except: ki.sendText(msg.to,"error") elif "Ban @" in msg.text: if msg.toType == 2: print "[Ban]ok" _name = msg.text.replace("Ban @","") _nametarget = _name.rstrip(' ') gs = ki.getGroup(msg.to) gs = kk.getGroup(msg.to) gs = kc.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: ki.sendText(msg.to,"Not found Cv") kk.sendText(msg.to,"Not found Cv") kc.sendText(msg.to,"Not found Cv") else: for target in targets: try: wait["blacklist"][target] = True f=codecs.open('st2__b.json','w','utf-8') json.dump(wait["blacklist"], f, sort_keys=True, indent=4,ensure_ascii=False) cl.sendText(msg.to,"Succes Cv") ki.sendText(msg.to,"Succes Cv") kk.sendText(msg.to,"Succes Cv") kc.sendText(msg.to,"Succes Cv") except: ki.sendText(msg.to,"Error") kk.sendText(msg.to,"Error") kc.sendText(msg.to,"Error") elif "Unban @" in msg.text: if msg.toType == 2: print "[Unban]ok" _name = msg.text.replace("Unban @","") _nametarget = _name.rstrip(' ') gs = ki.getGroup(msg.to) gs = kk.getGroup(msg.to) gs = kc.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: ki.sendText(msg.to,"Not found Cv") kk.sendText(msg.to,"Not found Cv") kc.sendText(msg.to,"Not found Cv") else: for target in targets: try: del wait["blacklist"][target] f=codecs.open('st2__b.json','w','utf-8') json.dump(wait["blacklist"], f, sort_keys=True, indent=4,ensure_ascii=False) cl.sendText(msg.to,"Succes Cv") ki.sendText(msg.to,"Succes Cv") kk.sendText(msg.to,"Succes Cv") kc.sendText(msg.to,"Succes Cv") except: ki.sendText(msg.to,"Succes Cv") kk.sendText(msg.to,"Succes Cv") kc.sendText(msg.to,"Succes Cv") #----------------------------------------------- elif msg.text in ["Test"]: ki.sendText(msg.to,"Ok Cv 􀨁􀄻double thumbs up􏿿") kk.sendText(msg.to,"Ok Cv 􀨁􀄻double thumbs up􏿿") kc.sendText(msg.to,"Ok Cv 􀨁􀄻double thumbs up􏿿") #----------------------------------------------- elif "Bc " in msg.text: bctxt = msg.text.replace("Bc ","") ki.sendText(msg.to,(bctxt)) kk.sendText(msg.to,(bctxt)) kc.sendText(msg.to,(bctxt)) #----------------------------------------------- elif msg.text in ["Cv say hi"]: ki.sendText(msg.to,"Hi buddy 􀜁􀅔Har Har􏿿") kk.sendText(msg.to,"Hi buddy 􀜁􀅔Har Har􏿿") kc.sendText(msg.to,"Hi buddy 􀜁􀅔Har Har􏿿") #----------------------------------------------- elif msg.text in ["Cv say hinata pekok"]: ki.sendText(msg.to,"Hinata pekok 􀜁􀅔Har Har􏿿") kk.sendText(msg.to,"Hinata pekok 􀜁􀅔Har Har􏿿") kc.sendText(msg.to,"Hinata pekok 􀜁􀅔Har Har􏿿") elif msg.text in ["Cv say didik pekok"]: ki.sendText(msg.to,"Didik pekok 􀜁􀅔Har Har􏿿") kk.sendText(msg.to,"Didik pekok 􀜁􀅔Har Har􏿿") kc.sendText(msg.to,"Didik pekok 􀜁􀅔Har Har􏿿") elif msg.text in ["Cv say bobo ah","Bobo dulu ah"]: ki.sendText(msg.to,"Have a nice dream Cv 􀜁􀅔Har Har􏿿") kk.sendText(msg.to,"Have a nice dream Cv 􀜁􀅔Har Har􏿿") kc.sendText(msg.to,"Have a nice dream Cv 􀜁􀅔Har Har􏿿") elif msg.text in ["Cv say chomel pekok"]: ki.sendText(msg.to,"Chomel pekok 􀜁􀅔Har Har􏿿") kk.sendText(msg.to,"Chomel pekok 􀜁􀅔Har Har􏿿") kc.sendText(msg.to,"Chomel pekok 􀜁􀅔Har Har􏿿") elif msg.text in ["#welcome"]: ki.sendText(msg.to,"Selamat datang di Chivas Family Room") kk.sendText(msg.to,"Jangan nakal ok!") #----------------------------------------------- elif msg.text in ["PING","Ping","ping"]: ki.sendText(msg.to,"PONG 􀨁􀄻double thumbs up􏿿􀜁􀅔Har Har􏿿") kk.sendText(msg.to,"PONG 􀨁􀄻double thumbs up􏿿􀜁􀅔Har Har􏿿") kc.sendText(msg.to,"PONG 􀨁􀄻double thumbs up􏿿􀜁􀅔Har Har􏿿") #----------------------------------------------- elif msg.text in ["Respon","respon"]: ki.sendText(msg.to,"Cv1") kk.sendText(msg.to,"Cv2") kc.sendText(msg.to,"Cv3") #----------------------------------------------- elif msg.text in ["Sp","Speed","speed"]: start = time.time() cl.sendText(msg.to, "Progress...") elapsed_time = time.time() - start cl.sendText(msg.to, "%sseconds" % (elapsed_time)) ki.sendText(msg.to, "%sseconds" % (elapsed_time)) kk.sendText(msg.to, "%sseconds" % (elapsed_time)) kc.sendText(msg.to, "%sseconds" % (elapsed_time)) #------------------------------------------------------------------ elif "Steal home @" in msg.text: print "[Command]dp executing" _name = msg.text.replace("Steal home @","") _nametarget = _name.rstrip(' ') gs = cl.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: ki.sendText(msg.to,"Contact not found") else: for target in targets: try: contact = cl.getContact(target) cu = cl.channel.getCover(target) path = str(cu) cl.sendImageWithURL(msg.to, path) except: pass print "[Command]dp executed" #------------------------------------------------------------------ elif "Steal dp @" in msg.text: print "[Command]dp executing" _name = msg.text.replace("Steal dp @","") _nametarget = _name.rstrip(' ') gs = cl.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: ki.sendText(msg.to,"Contact not found") else: for target in targets: try: contact = cl.getContact(target) path = "http://dl.profile.line-cdn.net/" + contact.pictureStatus cl.sendImageWithURL(msg.to, path) except: pass print "[Command]dp executed" #------------------------------------------------------------------ elif msg.text in ["Ban"]: wait["wblacklist"] = True cl.sendText(msg.to,"send contact") ki.sendText(msg.to,"send contact") kk.sendText(msg.to,"send contact") kc.sendText(msg.to,"send contact") elif msg.text in ["Unban"]: wait["dblacklist"] = True cl.sendText(msg.to,"send contact") ki.sendText(msg.to,"send contact") kk.sendText(msg.to,"send contact") kc.sendText(msg.to,"send contact") elif msg.text in ["Banlist"]: if wait["blacklist"] == {}: cl.sendText(msg.to,"nothing") ki.sendText(msg.to,"nothing") kk.sendText(msg.to,"nothing") kc.sendText(msg.to,"nothing") else: cl.sendText(msg.to,"Blacklist user") mc = "" for mi_d in wait["blacklist"]: mc += "->" +cl.getContact(mi_d).displayName + "\n" cl.sendText(msg.to,mc) ki.sendText(msg.to,mc) kk.sendText(msg.to,mc) kc.sendText(msg.to,mc) elif msg.text in ["Cek ban"]: if msg.toType == 2: group = cl.getGroup(msg.to) gMembMids = [contact.mid for contact in group.members] matched_list = [] for tag in wait["blacklist"]: matched_list+=filter(lambda str: str == tag, gMembMids) cocoa = "" for mm in matched_list: cocoa += mm + "\n" cl.sendText(msg.to,cocoa + "") elif msg.text in ["Kill ban"]: if msg.toType == 2: group = cl.getGroup(msg.to) gMembMids = [contact.mid for contact in group.members] matched_list = [] for tag in wait["blacklist"]: matched_list+=filter(lambda str: str == tag, gMembMids) if matched_list == []: cl.sendText(msg.to,"There was no blacklist user") ki.sendText(msg.to,"There was no blacklist user") kk.sendText(msg.to,"There was no blacklist user") kc.sendText(msg.to,"There was no blacklist user") return for jj in matched_list: cl.kickoutFromGroup(msg.to,[jj]) ki.kickoutFromGroup(msg.to,[jj]) kk.kickoutFromGroup(msg.to,[jj]) kc.kickoutFromGroup(msg.to,[jj]) cl.sendText(msg.to,"Blacklist emang pantas tuk di usir") ki.sendText(msg.to,"Blacklist emang pantas tuk di usir") kk.sendText(msg.to,"Blacklist emang pantas tuk di usir") kc.sendText(msg.to,"Blacklist emang pantas tuk di usir") elif msg.text in ["Clear"]: if msg.toType == 2: group = cl.getGroup(msg.to) gMembMids = [contact.mid for contact in group.invitee] for _mid in gMembMids: cl.cancelGroupInvitation(msg.to,[_mid]) cl.sendText(msg.to,"I pretended to cancel and canceled.") elif "random:" in msg.text: if msg.toType == 2: strnum = msg.text.replace("random:","") source_str = 'abcdefghijklmnopqrstuvwxyz1234567890@:;./_][!&%$#)(=~^|' try: num = int(strnum) group = cl.getGroup(msg.to) for var in range(0,num): name = "".join([random.choice(source_str) for x in xrange(10)]) time.sleep(0.01) group.name = name cl.updateGroup(group) except: cl.sendText(msg.to,"Error") elif "album→" in msg.text: try: albumtags = msg.text.replace("album→","") gid = albumtags[:6] name = albumtags.replace(albumtags[:34],"") cl.createAlbum(gid,name) cl.sendText(msg.to,name + "created an album") except: cl.sendText(msg.to,"Error") elif "fakec→" in msg.text: try: source_str = 'abcdefghijklmnopqrstuvwxyz1234567890@:;./_][!&%$#)(=~^|' name = "".join([random.choice(source_str) for x in xrange(10)]) anu = msg.text.replace("fakec→","") cl.sendText(msg.to,str(cl.channel.createAlbum(msg.to,name,anu))) except Exception as e: try: cl.sendText(msg.to,str(e)) except: pass if op.type == 59: print op except Exception as error: print error def a2(): now2 = datetime.now() nowT = datetime.strftime(now2,"%M") if nowT[14:] in ["10","20","30","40","50","00"]: return False else: return True def nameUpdate(): while True: try: #while a2(): #pass if wait["clock"] == True: now2 = datetime.now() nowT = datetime.strftime(now2,"(%H:%M)") profile = cl.getProfile() profile.displayName = wait["cName"] + nowT cl.updateProfile(profile) time.sleep(600) except: pass thread2 = threading.Thread(target=nameUpdate) thread2.daemon = True thread2.start() while True: try: Ops = cl.fetchOps(cl.Poll.rev, 5) except EOFError: raise Exception("It might be wrong revision\n" + str(cl.Poll.rev)) for Op in Ops: if (Op.type != OpType.END_OF_OPERATION): cl.Poll.rev = max(cl.Poll.rev, Op.revision) bot(Op)