<reponame>MrJavaWolf/DenonPhoneController<filename>src/DenonController/Commands/InvalidCommand.py
import sys

class InvalidCommand:
    def __init__(self, ledController):
        self.ledController = ledController

    def CanExecute(self, input):
        if input == "*" or input.endswith("*"):
            return True
        else:
            return False

    def Execute(self, input):
        sys.stdout.write("Invalid command\n")
        sys.stdout.flush()
        self.ledController.InvalidCommand()


