RoomThirdPartyInviteContent

@JsonClass(generateAdapter = true)
data class RoomThirdPartyInviteContent(    @Json(name = "display_name") val displayName: String?,     @Json(name = "key_validity_url") val keyValidityUrl: String?,     @Json(name = "public_key") val publicKey: String?,     @Json(name = "public_keys") val publicKeys: List<PublicKeys>?)

Class representing the EventType.STATE_ROOM_THIRD_PARTY_INVITE state event content Ref: https://matrix.org/docs/spec/client_server/r0.6.1#m-room-third-party-invite

Constructors

Link copied to clipboard
fun RoomThirdPartyInviteContent(    @Json(name = "display_name") displayName: String?,     @Json(name = "key_validity_url") keyValidityUrl: String?,     @Json(name = "public_key") publicKey: String?,     @Json(name = "public_keys") publicKeys: List<PublicKeys>?)

Properties

Link copied to clipboard
val displayName: String?

Required. A user-readable string which represents the user who has been invited. This should not contain the user's third party ID, as otherwise when the invite is accepted it would leak the association between the matrix ID and the third party ID.

Link copied to clipboard
val keyValidityUrl: String?

Required. A URL which can be fetched, with querystring public_key=public_key, to validate whether the key has been revoked. The URL must return a JSON object containing a boolean property named 'valid'.

Link copied to clipboard
val publicKey: String?

Required. A base64-encoded ed25519 key with which token must be signed (though a signature from any entry in public_keys is also sufficient). This exists for backwards compatibility.

Link copied to clipboard
val publicKeys: List<PublicKeys>?

Keys with which the token may be signed.