def __idle_httpgetpostkeyres(self, container): self.log.trace() self.__live["postkey"] = ApiInfo.extractPostkey( postkey=container.message) self.log.info("postkey(%s)", self.__live["postkey"]) self.state = self.__StateId.IDLE return True
def __chatsending_httpgetpostkeyres(self, container): self.log.trace() self.__live["postkey"] = ApiInfo.extractPostkey( postkey=container.message) self.log.info("postkey(%s)", self.__live["postkey"]) data = self.__restoreSendDataStore() if data != None: chatTag = self.__create_chat_tag(data) result = self.send_message( UnitId.SOCKETCTRL, EventId.SOCKETSENDREQ, SocketSendReq(destination=self.__main_socket, data=chatTag)) self.state = self.__StateId.CHATSENDING return True