GetUrlPreviewLegacy

@Serializable
data class GetUrlPreviewLegacy(val url: String, val timestamp: Long? = null) : MatrixEndpoint<Unit, GetUrlPreviewLegacy.Response>

Deprecated

use GetUrlPreview instead

See also

Constructors

Link copied to clipboard
constructor(url: String, timestamp: Long? = null)

Types

Link copied to clipboard
data class Response(val size: Long? = null, val imageUrl: String? = null, val others: Map<String, JsonElement>? = null)

Properties

Link copied to clipboard
open val requestContentType: ContentType?
Link copied to clipboard
open val responseContentType: ContentType?
Link copied to clipboard
@SerialName(value = "ts")
val timestamp: Long?
Link copied to clipboard
@SerialName(value = "url")
val url: String

Functions

Link copied to clipboard
open fun requestSerializerBuilder(mappings: EventContentSerializerMappings, json: Json, value: Unit?): KSerializer<Unit>?