package fr.titionfire.ffsaf.net2;

import io.quarkus.runtime.annotations.RegisterForReflection;

import java.util.UUID;

@RegisterForReflection
public record Message<T> (UUID uuid, String code, MessageType type, T data){

    @Override
    public String toString() {
        return "Message{" +
                "uuid=" + uuid +
                ", code='" + code + '\'' +
                ", type=" + type +
                ", data=" + data +
                '}';
    }
}
