MatrixClient.parseEvent

Parses an event from a JSONValue, use casting or the type field to determine it's type. keepJSONReference determines if the JSONValue should be kept in the MatrixEvent object. You can override this function in your program if you need support for more event types.

class MatrixClient
parseEvent
(
JSONValue ev
,
bool keepJSONReference = false
,
string optRoomId = null
)

Meta