from includes.interfaces.Processor import Processor
from includes.configs.Defaults import Default

class InputProcessor(Processor):
	@staticmethod
	def process(processor, user_input):
		command, params = InputProcessor.parse_input(user_input)
		# use the processor to send the (command - Eg. park) (params - Eg. ["KA-BL-93-4444", "White"]) to the processor
		# processor can be anything from ParkingManager or AdsManager or something else
		print(processor.process(command)(params))

	@staticmethod
	def parse_input(user_input):
		return user_input.split()[Default.COMMAND_INDEX], user_input.split()[Default.PARAM_INDEX:]
87ae0e96d9e269f08cea98a4bd90b5803a954976
<mask token>

<mask token>


class InputProcessor(Processor):

    @staticmethod
    def process(processor, user_input):
        command, params = InputProcessor.parse_input(user_input)
        print(processor.process(command)(params))
    <mask token>

<mask token>


class InputProcessor(Processor):

    @staticmethod
    def process(processor, user_input):
        command, params = InputProcessor.parse_input(user_input)
        print(processor.process(command)(params))

    @staticmethod
    def parse_input(user_input):
        return user_input.split()[Default.COMMAND_INDEX], user_input.split()[
            Default.PARAM_INDEX:]

from includes.interfaces.Processor import Processor
from includes.configs.Defaults import Default


class InputProcessor(Processor):

    @staticmethod
    def process(processor, user_input):
        command, params = InputProcessor.parse_input(user_input)
        print(processor.process(command)(params))

    @staticmethod
    def parse_input(user_input):
        return user_input.split()[Default.COMMAND_INDEX], user_input.split()[
            Default.PARAM_INDEX:]

from includes.interfaces.Processor import Processor
from includes.configs.Defaults import Default

class InputProcessor(Processor):
	@staticmethod
	def process(processor, user_input):
		command, params = InputProcessor.parse_input(user_input)
		# use the processor to send the (command - Eg. park) (params - Eg. ["KA-BL-93-4444", "White"]) to the processor
		# processor can be anything from ParkingManager or AdsManager or something else
		print(processor.process(command)(params))

	@staticmethod
	def parse_input(user_input):
		return user_input.split()[Default.COMMAND_INDEX], user_input.split()[Default.PARAM_INDEX:]