MXDeviceInfo

@JsonClass(generateAdapter = true)
data class MXDeviceInfo(    @Json(name = "device_id") val deviceId: String,     @Json(name = "user_id") val userId: String,     @Json(name = "algorithms") val algorithms: List<String>? = null,     @Json(name = "keys") val keys: Map<String, String>? = null,     @Json(name = "signatures") val signatures: Map<String, Map<String, String>>? = null,     @Json(name = "unsigned") val unsigned: JsonDict? = null,     val verified: Int = DEVICE_VERIFICATION_UNKNOWN) : Serializable

Constructors

Link copied to clipboard
fun MXDeviceInfo(    @Json(name = "device_id") deviceId: String,     @Json(name = "user_id") userId: String,     @Json(name = "algorithms") algorithms: List<String>? = null,     @Json(name = "keys") keys: Map<String, String>? = null,     @Json(name = "signatures") signatures: Map<String, Map<String, String>>? = null,     @Json(name = "unsigned") unsigned: JsonDict? = null,     verified: Int = DEVICE_VERIFICATION_UNKNOWN)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun displayName(): String?
Link copied to clipboard
fun fingerprint(): String?
Link copied to clipboard
fun identityKey(): String?
Link copied to clipboard
fun signalableJSONDictionary(): Map<String, Any>
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val algorithms: List<String>? = null

The list of algorithms supported by this device.

Link copied to clipboard
val deviceId: String

The id of this device.

Link copied to clipboard
val isBlocked: Boolean

Tells if the device is blocked.

Link copied to clipboard
val isUnknown: Boolean

Tells if the device is unknown.

Link copied to clipboard
val isUnverified: Boolean

Tells if the device is unverified.

Link copied to clipboard
val isVerified: Boolean

Tells if the device is verified.

Link copied to clipboard
val keys: Map<String, String>? = null

A map from ":" to "".

Link copied to clipboard
val signatures: Map<String, Map<String, String>>? = null

The signature of this MXDeviceInfo. A map from "" to a map from ":" to ""

Link copied to clipboard
val unsigned: JsonDict? = null
Link copied to clipboard
val userId: String

the user id.

Link copied to clipboard
val verified: Int

Verification state of this device.