SetupAttemptUnion

sealed class SetupAttemptUnion : Parcelable

Union type for an expandable SetupAttempt.

SetupAttempts can be expanded in some API responses. This pseudo-union type joins the two possible options into a single field for polymorphic serialization as either an expanded object or just an ID.

Types

Link copied to clipboard
data class Expanded(setupAttempt: SetupAttempt) : SetupAttemptUnion

Fully expanded SetupAttempt object.

Link copied to clipboard
data class Reference(id: String) : SetupAttemptUnion

Non-Expanded ID of a SetupAttempt.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
abstract val id: String

The ID of the setup attempt, extracted since it is available in either type.

Inheritors

Link copied to clipboard
Link copied to clipboard