DeviceInfo

@JsonClass(generateAdapter = true)
data class DeviceInfo(    @Json(name = "user_id") val userId: String? = null,     @Json(name = "device_id") val deviceId: String? = null,     @Json(name = "display_name") val displayName: String? = null,     @Json(name = "last_seen_ts") val lastSeenTs: Long? = null,     @Json(name = "last_seen_ip") val lastSeenIp: String? = null,     @Json(name = "org.matrix.msc3852.last_seen_user_agent") val unstableLastSeenUserAgent: String? = null,     @Json(name = "last_seen_user_agent") val lastSeenUserAgent: String? = null) : DatedObject

This class describes the device information.

Constructors

Link copied to clipboard
fun DeviceInfo(    @Json(name = "user_id") userId: String? = null,     @Json(name = "device_id") deviceId: String? = null,     @Json(name = "display_name") displayName: String? = null,     @Json(name = "last_seen_ts") lastSeenTs: Long? = null,     @Json(name = "last_seen_ip") lastSeenIp: String? = null,     @Json(name = "org.matrix.msc3852.last_seen_user_agent") unstableLastSeenUserAgent: String? = null,     @Json(name = "last_seen_user_agent") lastSeenUserAgent: String? = null)

Functions

Link copied to clipboard
fun getBestLastSeenUserAgent(): String?

Properties

Link copied to clipboard
open override val date: Long
Link copied to clipboard
val deviceId: String? = null

The device id.

Link copied to clipboard
val displayName: String? = null

The device display name.

Link copied to clipboard
val lastSeenIp: String? = null

The last ip address.

Link copied to clipboard
val lastSeenTs: Long? = null

The last time this device has been seen.

Link copied to clipboard
val lastSeenUserAgent: String? = null
Link copied to clipboard
val unstableLastSeenUserAgent: String? = null
Link copied to clipboard
val userId: String? = null

The owner user id (not documented and useless but the homeserver sent it. You should not need it).