package fr.titionfire.ffsaf.net2.packet;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import fr.titionfire.ffsaf.net2.Client_Thread;
import fr.titionfire.ffsaf.net2.Message;
import jakarta.transaction.Transactional;

public interface IAction {
    void dataIn(Client_Thread client_Thread, Message<JsonNode> message) throws JsonProcessingException;

    default void castAndCall (Client_Thread client_Thread, Message<JsonNode> message) throws JsonProcessingException {
        this.dataIn(client_Thread, message);
    }
}
