public int getCode() {
        return code;
    }
Obtain the primary type of event.

@return the code indicating the event's type.
xmppserver/src/main/java/org/jivesoftware/openfire/audit/AuditEvent.java