PollEventsResponse

@Serializable
data class PollEventsResponse(val taskId: String, val events: List<RawTaskEventEnvelope>, val nextAfterEventId: String? = null, val hasMore: Boolean, var rawJson: String? = null)

Response from a long-polling event request.

Constructors

Link copied to clipboard
constructor(taskId: String, events: List<RawTaskEventEnvelope>, nextAfterEventId: String? = null, hasMore: Boolean, rawJson: String? = null)

Properties

Link copied to clipboard

List of new events.

Link copied to clipboard

True if there are more events to fetch immediately.

Link copied to clipboard

ID to use for the next poll request.

Link copied to clipboard
@Transient
var rawJson: String?

Raw JSON response string. This field is NOT serialized/deserialized, it's populated manually by the transport layer for logging.

Link copied to clipboard

The task ID.