Beispiel #1
0
 def process_sendChatCheckedByWatermark(self, seqid, iprot, oprot):
     args = sendChatCheckedByWatermark_args()
     args.read(iprot)
     iprot.readMessageEnd()
     result = sendChatCheckedByWatermark_result()
     try:
         self._handler.sendChatCheckedByWatermark(args.seq, args.mid,
                                                  args.watermark,
                                                  args.sessionId)
         msg_type = TMessageType.REPLY
     except TTransport.TTransportException:
         raise
     except TalkException as e:
         msg_type = TMessageType.REPLY
         result.e = e
     except TApplicationException as ex:
         logging.exception('TApplication exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = ex
     except Exception:
         logging.exception('Unexpected exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = TApplicationException(
             TApplicationException.INTERNAL_ERROR, 'Internal error')
     oprot.writeMessageBegin("sendChatCheckedByWatermark", msg_type, seqid)
     result.write(oprot)
     oprot.writeMessageEnd()
     oprot.trans.flush()
Beispiel #2
0
 def process_notifyLeaveRoom(self, seqid, iprot, oprot):
     args = notifyLeaveRoom_args()
     args.read(iprot)
     iprot.readMessageEnd()
     result = notifyLeaveRoom_result()
     try:
         self._handler.notifyLeaveRoom(args.roomMid)
         msg_type = TMessageType.REPLY
     except TTransport.TTransportException:
         raise
     except TalkException as e:
         msg_type = TMessageType.REPLY
         result.e = e
     except TApplicationException as ex:
         logging.exception('TApplication exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = ex
     except Exception:
         logging.exception('Unexpected exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = TApplicationException(
             TApplicationException.INTERNAL_ERROR, 'Internal error')
     oprot.writeMessageBegin("notifyLeaveRoom", msg_type, seqid)
     result.write(oprot)
     oprot.writeMessageEnd()
     oprot.trans.flush()
Beispiel #3
0
 def process_getBotUseInfo(self, seqid, iprot, oprot):
     args = getBotUseInfo_args()
     args.read(iprot)
     iprot.readMessageEnd()
     result = getBotUseInfo_result()
     try:
         result.success = self._handler.getBotUseInfo(args.botMid)
         msg_type = TMessageType.REPLY
     except TTransport.TTransportException:
         raise
     except TalkException as e:
         msg_type = TMessageType.REPLY
         result.e = e
     except TApplicationException as ex:
         logging.exception('TApplication exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = ex
     except Exception:
         logging.exception('Unexpected exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = TApplicationException(
             TApplicationException.INTERNAL_ERROR, 'Internal error')
     oprot.writeMessageBegin("getBotUseInfo", msg_type, seqid)
     result.write(oprot)
     oprot.writeMessageEnd()
     oprot.trans.flush()
Beispiel #4
0
 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:
         raise
     except TalkException as e:
         msg_type = TMessageType.REPLY
         result.e = e
     except TApplicationException as ex:
         logging.exception('TApplication exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = ex
     except Exception:
         logging.exception('Unexpected exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = TApplicationException(
             TApplicationException.INTERNAL_ERROR, 'Internal error')
     oprot.writeMessageBegin("retrieveRequestToken", msg_type, seqid)
     result.write(oprot)
     oprot.writeMessageEnd()
     oprot.trans.flush()
Beispiel #5
0
 def process_queryBeaconActions(self, seqid, iprot, oprot):
     args = queryBeaconActions_args()
     args.read(iprot)
     iprot.readMessageEnd()
     result = queryBeaconActions_result()
     try:
         result.success = self._handler.queryBeaconActions(
             args.hwid, args.secureMessage, args.applicationType,
             args.applicationVersion, args.lang)
         msg_type = TMessageType.REPLY
     except TTransport.TTransportException:
         raise
     except TalkException as e:
         msg_type = TMessageType.REPLY
         result.e = e
     except TApplicationException as ex:
         logging.exception('TApplication exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = ex
     except Exception:
         logging.exception('Unexpected exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = TApplicationException(
             TApplicationException.INTERNAL_ERROR, 'Internal error')
     oprot.writeMessageBegin("queryBeaconActions", msg_type, seqid)
     result.write(oprot)
     oprot.writeMessageEnd()
     oprot.trans.flush()
Beispiel #6
0
 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:
         raise
     except TalkException as e:
         msg_type = TMessageType.REPLY
         result.e = e
     except TApplicationException as ex:
         logging.exception('TApplication exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = ex
     except Exception:
         logging.exception('Unexpected exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = TApplicationException(
             TApplicationException.INTERNAL_ERROR, 'Internal error')
     oprot.writeMessageBegin("checkUserAgeWithDocomo", 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:
         raise
     except TalkException as e:
         msg_type = TMessageType.REPLY
         result.e = e
     except TApplicationException as ex:
         logging.exception('TApplication exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = ex
     except Exception:
         logging.exception('Unexpected exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
     oprot.writeMessageBegin("requestVirtualAccountPasswordSet", msg_type, seqid)
     result.write(oprot)
     oprot.writeMessageEnd()
     oprot.trans.flush()
Beispiel #8
0
 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:
         raise
     except TalkException as e:
         msg_type = TMessageType.REPLY
         result.e = e
     except TApplicationException as ex:
         logging.exception('TApplication exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = ex
     except Exception:
         logging.exception('Unexpected exception in handler')
         msg_type = TMessageType.EXCEPTION
         result = TApplicationException(
             TApplicationException.INTERNAL_ERROR, 'Internal error')
     oprot.writeMessageBegin("postSnsInvitationMessage", msg_type, seqid)
     result.write(oprot)
     oprot.writeMessageEnd()
     oprot.trans.flush()
Beispiel #9
0
 def recv_notifyLeaveGroup(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = notifyLeaveGroup_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.e is not None:
         raise result.e
     return
Beispiel #10
0
 def recv_sendChatCheckedByWatermark(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = sendChatCheckedByWatermark_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.e is not None:
         raise result.e
     return
Beispiel #11
0
 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 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
Beispiel #13
0
 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
Beispiel #14
0
 def recv_requestBanPage(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = requestBanPage_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, "requestBanPage failed: unknown result")
Beispiel #15
0
 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")