Add a type enum for the Onionmasq event types
The following discussion from !81 (merged) should be addressed:
-
@cyberta started a discussion: (+2 comments) We could add a type enum for the Onionmasq event types. It has the advantage that we can use switch statements to distinguish the events instead of if/else chains. Type pattern matching is not yet supported in Java 11.