Sha256: 6521100e865b8aa2a973c75fdd3eea8ec98de588cb11a6b0e1153633c83b21ac
Contents?: true
Size: 627 Bytes
Versions: 59
Compression:
Stored size: 627 Bytes
Contents
from javonet.core.handler.HandlerDictionary import handler_dict from javonet.utils.Command import Command class AbstractCommandHandler: _required_parameters_count = 0 def process(self, command): pass def handle_command(self, command): self.__iterate(command) return self.process(command) @staticmethod def __iterate(command): for i in range(0, len(command.payload)): if isinstance(command.payload[i], Command): command.payload[i] = handler_dict.get(command.payload[i].command_type).handle_command( command.payload[i])
Version data entries
59 entries across 34 versions & 1 rubygems