WowEnums

object WowEnums

Wow's own enumerations on the wire, each listed here and written by its wire name (WireNames): CATCH_UP is catch-up. A reader takes the wire name alone; a value it does not know fails, unless the reader may be older than its writer (module with tolerant), which reads it as the enumeration's UNKNOWN where it has one.

Values and map keys alike are spelled so. Only the enumerations of this list are respelled: a domain's enumerations in its commands, events and states are written as its Jackson writes them, so no global naming strategy is set.

Properties

Link copied to clipboard
const val MODULE_NAME: String

The name of module's Jackson module, a reader's or a writer's.

Link copied to clipboard
val TYPES: List<Class<out Enum<*>>>

The enumerations written by their wire names.

Functions

Link copied to clipboard
fun module(tolerant: Boolean): JacksonModule

The Jackson module of TYPES; one that is tolerant reads an unknown value as UNKNOWN where there is one.