Connected Device

@Serializable
data class ConnectedDevice(val id: String, val brand: String, val model: String, val browser: String? = null, val lastLogin: Long, val type: ConnectedDeviceType)

The ConnectedDevice data class represents the information of a connected device

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(id: String, brand: String, model: String, browser: String? = null, lastLogin: Long, type: ConnectedDeviceType)

Properties

Link copied to clipboard

The brand of the device

Link copied to clipboard
val browser: String? = null

The browser used to connect to a session

Link copied to clipboard
val id: String

The identifier of the device

Link copied to clipboard
@SerialName(value = "last_login" )
val lastLogin: Long

The last time the device connected to the session

Link copied to clipboard

The model of the device

Link copied to clipboard
val type: ConnectedDeviceType

The type of the device

Functions

Link copied to clipboard

Method used to check whether the current device matches the id property