SubscriptionAction

sealed interface SubscriptionAction<out T>

Subscription actions are used to update the subscription state.

Parameters

T

Type of the receive value from the subscription.

Inheritors

Types

Link copied to clipboard
data class ForceUpdate<T>(val data: T, val dataUpdatedAt: Long) : SubscriptionAction<T>

Forces the subscription to update the data.

Link copied to clipboard
data class ReceiveFailure(val error: Throwable, val errorUpdatedAt: Long) : SubscriptionAction<Nothing>

Indicates that the subscription has failed.

Link copied to clipboard
data class ReceiveSuccess<T>(val data: T, val dataUpdatedAt: Long) : SubscriptionAction<T>

Indicates that the subscription is successful.

Link copied to clipboard
data class Reset(val restartedAt: Long) : SubscriptionAction<Nothing>

Resets the subscription state.

Link copied to clipboard
data class Restart(val restartedAt: Long) : SubscriptionAction<Nothing>

Restarts the subscription state.