Package io.getstream
Class Webhook.UnknownEvent
java.lang.Object
io.getstream.Webhook.UnknownEvent
- Enclosing class:
Webhook
Returned by
Webhook.parseEvent(byte[]) when the type discriminator is well-formed but unknown
to this SDK version. Forward-compat surface for new event types.
To handle unknown events, check the result type with instanceof UnknownEvent after
calling parseEvent.
-
Constructor Summary
ConstructorsConstructorDescriptionUnknownEvent(String type, OffsetDateTime createdAt, com.fasterxml.jackson.databind.JsonNode raw) -
Method Summary
-
Constructor Details
-
UnknownEvent
public UnknownEvent(String type, OffsetDateTime createdAt, com.fasterxml.jackson.databind.JsonNode raw)
-
-
Method Details
-
getType
The unrecognized discriminator value. -
getCreatedAt
Parsed timestamp from the envelope, or null if the field was missing or unparseable. -
getRaw
public com.fasterxml.jackson.databind.JsonNode getRaw()The full parsed JSON payload, for inspection.
-