AggregatedRelations

@JsonClass(generateAdapter = true)
data class AggregatedRelations(    @Json(name = "m.annotation") val annotations: AggregatedAnnotation? = null,     @Json(name = "m.reference") val references: DefaultUnsignedRelationInfo? = null,     @Json(name = "m.replace") val replaces: AggregatedReplace? = null,     @Json(name = "m.thread") val latestThread: LatestThreadUnsignedRelation? = null)

Server side relation aggregation.

{
     "m.annotation": {
        "chunk": [
             {
                 "type": "m.reaction",
                 "key": "👍",
                 "count": 3
             }
            ],
            "limited": false,
            "count": 1
     },
     "m.reference": {
         "chunk": [
             {
                "type": "m.room.message",
                "event_id": "$some_event_id"
            }
         ],
         "limited": false,
         "count": 1
         }
    }

Constructors

Link copied to clipboard
fun AggregatedRelations(    @Json(name = "m.annotation") annotations: AggregatedAnnotation? = null,     @Json(name = "m.reference") references: DefaultUnsignedRelationInfo? = null,     @Json(name = "m.replace") replaces: AggregatedReplace? = null,     @Json(name = "m.thread") latestThread: LatestThreadUnsignedRelation? = null)

Properties

Link copied to clipboard
val annotations: AggregatedAnnotation? = null
Link copied to clipboard
val latestThread: LatestThreadUnsignedRelation? = null
Link copied to clipboard
val references: DefaultUnsignedRelationInfo? = null
Link copied to clipboard
val replaces: AggregatedReplace? = null