def _squadCreatedImRecruit(self, squadNum): keyName = getReadableKey(CommandMapping.CMD_VOICECHAT_ENABLE) key = getKey(CommandMapping.CMD_VOICECHAT_ENABLE) state = _getVIOPState(key) message = '#messenger:client/dynSquad/created/recruit/%s' % state self.__sendMessage(message, squadNum=squadNum, keyName=keyName)
def _iAmJoinedSquad(self, squadNum): keyName = getReadableKey(CommandMapping.CMD_VOICECHAT_ENABLE) key = getKey(CommandMapping.CMD_VOICECHAT_ENABLE) state = _getVIOPState(key) message = '#messenger:client/dynSquad/inviteAccepted/myself/%s' % state self.__sendMessage(message, squadNum=squadNum, keyName=keyName)
def __getState(self, command): return _getVIOPState(getKey(command))