package ru.kayashov.bar.bot.domain.command.impl;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import ru.kayashov.bar.bot.annotation.CommandData;
import ru.kayashov.bar.bot.domain.command.api.Command;
import ru.kayashov.bar.bot.domain.methods.AbstractMethod;
import ru.kayashov.bar.bot.domain.model.AbstractUpdate;

import java.util.Collections;
import java.util.List;

/**
 * Обработка неизвестных команд
 * <p>
 * Реализация {@link Command}
 */
@Component
@CommandData(name = "unknownCommand")
@RequiredArgsConstructor
public class UnknownCommand implements Command {

    @Override
    public List<? extends AbstractMethod> execute(AbstractUpdate abstractUpdate) {
        return Collections.emptyList();
    }
}
