diff options
author | Wim <wim@42.be> | 2020-02-09 23:49:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 23:49:17 +0100 |
commit | 23083f3ae0ffd28ca4094c75c90ba45fc57bd523 (patch) | |
tree | ef2dcfd78de408fc9349e18e08d480211c393bb3 /vendor/github.com/matterbridge/gomatrix/responses.go | |
parent | 1985873494ddcfb73ec04525ebc1b7ba0b1f428d (diff) | |
download | matterbridge-msglm-23083f3ae0ffd28ca4094c75c90ba45fc57bd523.tar.gz matterbridge-msglm-23083f3ae0ffd28ca4094c75c90ba45fc57bd523.tar.bz2 matterbridge-msglm-23083f3ae0ffd28ca4094c75c90ba45fc57bd523.zip |
Rebase gomatrix vendor with upstream (#1006)
Diffstat (limited to 'vendor/github.com/matterbridge/gomatrix/responses.go')
-rw-r--r-- | vendor/github.com/matterbridge/gomatrix/responses.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/matterbridge/gomatrix/responses.go b/vendor/github.com/matterbridge/gomatrix/responses.go index 7a3a4ce3..effb6096 100644 --- a/vendor/github.com/matterbridge/gomatrix/responses.go +++ b/vendor/github.com/matterbridge/gomatrix/responses.go @@ -22,6 +22,14 @@ type RespVersions struct { Versions []string `json:"versions"` } +// RespPublicRooms is the JSON response for http://matrix.org/speculator/spec/HEAD/client_server/unstable.html#get-matrix-client-unstable-publicrooms +type RespPublicRooms struct { + TotalRoomCountEstimate int `json:"total_room_count_estimate"` + PrevBatch string `json:"prev_batch"` + NextBatch string `json:"next_batch"` + Chunk []PublicRoom `json:"chunk"` +} + // RespJoinRoom is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-join type RespJoinRoom struct { RoomID string `json:"room_id"` |