UnsignedData

@JsonClass(generateAdapter = true)
data class UnsignedData(    @Json(name = "age") val age: Long?,     @Json(name = "redacted_because") val redactedEvent: Event? = null,     @Json(name = "transaction_id") val transactionId: String? = null,     @Json(name = "prev_content") val prevContent: Map<String, Any>? = null,     @Json(name = "m.relations") val relations: AggregatedRelations? = null,     @Json(name = "replaces_state") val replacesState: String? = null)

Constructors

Link copied to clipboard
fun UnsignedData(    @Json(name = "age") age: Long?,     @Json(name = "redacted_because") redactedEvent: Event? = null,     @Json(name = "transaction_id") transactionId: String? = null,     @Json(name = "prev_content") prevContent: Map<String, Any>? = null,     @Json(name = "m.relations") relations: AggregatedRelations? = null,     @Json(name = "replaces_state") replacesState: String? = null)

Properties

Link copied to clipboard
val age: Long?

The time in milliseconds that has elapsed since the event was sent. This field is generated by the local homeserver, and may be incorrect if the local time on at least one of the two servers is out of sync, which can cause the age to either be negative or greater than it actually is.

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

Optional. The previous content for this event. If there is no previous content, this key will be missing.

Link copied to clipboard
val redactedEvent: Event? = null

Optional. The event that redacted this event, if any.

Link copied to clipboard
val relations: AggregatedRelations? = null
Link copied to clipboard
val replacesState: String? = null

Optional. The eventId of the previous state event being replaced.

Link copied to clipboard
val transactionId: String? = null

The client-supplied transaction ID, if the client being given the event is the same one which sent it.

Extensions

Link copied to clipboard
fun UnsignedData?.isRedacted(): Boolean