SimState

sealed class SimState

Sealed class representing the possible SIM card states of a D2D device.

This class hierarchy provides type-safe representation of whether a SIM card is present in the device and, if so, captures its identifying information. The sealed nature ensures all possible states are known at compile time.

Inheritors

Types

Link copied to clipboard
object NoSIM : SimState

Represents a device with no SIM card installed.

Link copied to clipboard
data class WithSIM(val imsi: String) : SimState

Represents a device with a SIM card installed.