Esempio n. 1
0
    def __idle_threadinfonotify(self, container):
        self.log.trace()

        print(container.message.attrs)

        ApiInfo.recordConnectTime(
            start_time=self.__live["playerstatus"]["start_time"],
            server_time=container.message.attrs["server_time"])

        self.__save_thread(container.message.attrs)

        self.state = self.__StateId.IDLE
        return True
Esempio n. 2
0
    def __chatsending_threadinfonotify(self, container):
        self.log.trace()

        print(container.message.attrs)

        ApiInfo.recordConnectTime(
            start_time=self.__live["playerstatus"]["start_time"],
            server_time=container.message.attrs["server_time"])

        self.__save_thread(container.message.attrs)

        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