UnknownResponseStreamEvent

class UnknownResponseStreamEvent(val type: String, val sequenceNumber: Int, val raw: JsonObject) : ResponseStreamEvent

An event this version of the SDK cannot map: an unknown type, or a known one whose payload does not fit the expected shape.

Keeps the payload verbatim so the stream survives a schema the SDK has not caught up with.

Constructors

Link copied to clipboard
constructor(type: String, sequenceNumber: Int, raw: JsonObject)

Properties

Link copied to clipboard
val raw: JsonObject

The event exactly as it arrived.

Link copied to clipboard
open override val sequenceNumber: Int

Position of the event in the stream, 0 if the API omitted it.

Link copied to clipboard
open override val type: String

Raw event type the API sent.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String