package server.netsiddev; /** Server responses. Do not reorder: each ordinal is its wire response code. */ public enum Response { OK, BUSY, ERR, READ(true), VERSION(true), COUNT(true), INFO; private final boolean byteValue; Response() { this(false); } Response(boolean byteValue) { this.byteValue = byteValue; } /** Whether this response is followed by exactly one unsigned value byte. */ public boolean hasByteValue() { return byteValue; } }