mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 11:26:01 +03:00
Cleaning
This commit is contained in:
parent
acf7a226f0
commit
0bcd363677
2 changed files with 6 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021 New Vector Ltd
|
||||
* Copyright 2021 The Matrix.org Foundation C.I.C.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.matrix.android.sdk.internal.session.space
|
||||
package org.matrix.android.sdk.api.session.space
|
||||
|
||||
import org.matrix.android.sdk.api.session.events.model.Event
|
||||
import org.matrix.android.sdk.api.session.room.model.RoomSummary
|
|
@ -23,16 +23,12 @@ import org.matrix.android.sdk.api.session.events.model.Event
|
|||
/**
|
||||
* The fields are the same as those returned by /publicRooms (see spec), with the addition of:
|
||||
* room_type: the value of the m.type field from the room's m.room.create event, if any.
|
||||
* children_state: The m.space.child events of the room. For each event, only the following fields are included1: type, state_key, content, room_id, sender, with the addition of:
|
||||
* origin_server_ts: This is required for sorting of rooms as specified below.
|
||||
* children_state: The m.space.child events of the room.
|
||||
* For each event, only the following fields are included1: type, state_key, content, room_id, sender,
|
||||
* with the addition of: origin_server_ts: This is required for sorting of rooms as specified below.
|
||||
*/
|
||||
@JsonClass(generateAdapter = true)
|
||||
internal data class SpaceChildSummaryResponse(
|
||||
// /**
|
||||
// * The total number of state events which point to or from this room (inbound/outbound edges).
|
||||
// * This includes all m.space.child events in the room, in addition to m.room.parent events which point to this room as a parent.
|
||||
// */
|
||||
// @Json(name = "num_refs") val numRefs: Int? = null,
|
||||
|
||||
/**
|
||||
* The room type, which is m.space for subspaces.
|
||||
|
@ -41,7 +37,7 @@ internal data class SpaceChildSummaryResponse(
|
|||
@Json(name = "room_type") val roomType: String? = null,
|
||||
|
||||
/** The m.space.child events of the room. For each event, only the following fields are included:
|
||||
* type, state_key, content, room_id, sender, with the addition of origin_server_ts: This is required for sorting of rooms as specified below.
|
||||
* type, state_key, content, room_id, sender, with the addition of origin_server_ts.
|
||||
*/
|
||||
@Json(name = "children_state") val childrenState: List<Event>? = null,
|
||||
|
||||
|
|
Loading…
Reference in a new issue