class EventMapper
(source)
EventMapper is responsible for mapping events carried by ResponseFrame to typed events representations.
EventMapper(mapper: ObjectMapper = EventMapper.DEFAULT_MAPPER)
EventMapper is responsible for mapping events carried by ResponseFrame to typed events representations. |
fun addMapping(name: String, clazz: Class<out Event>): Unit
Add mapping from event name to class. |
|
fun <T : Event> deserialize(frame: ResponseFrame, outClazz: Class<T>): T |
|
fun deserializeEvent(frame: ResponseFrame): Event |