Package io.getstream

Class Webhook.UnknownEvent

java.lang.Object
io.getstream.Webhook.UnknownEvent
Enclosing class:
Webhook

public static class Webhook.UnknownEvent extends Object
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 Details

    • UnknownEvent

      public UnknownEvent(String type, OffsetDateTime createdAt, com.fasterxml.jackson.databind.JsonNode raw)
  • Method Details

    • getType

      public String getType()
      The unrecognized discriminator value.
    • getCreatedAt

      public OffsetDateTime 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.