package fr.bglands.client.protocol;

public final class ProtocolConstants {
    public static final String CHANNEL = "bglands:ui";
    public static final int PROTOCOL_MAJOR = 1;
    public static final int PROTOCOL_MINOR = 0;
    public static final int MAX_PAYLOAD_BYTES = 30 * 1024;
    public static final String SCREEN_V1_CAPABILITY = "screen-v1";
    public static final String FORM_V1_CAPABILITY = "form-v1";

    private ProtocolConstants() {
    }

    public static boolean supports(int major, int minor) {
        return major == PROTOCOL_MAJOR && minor >= 0;
    }
}
