summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/matrix-org/gomatrix/responses.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-11-21 23:48:39 +0100
committerWim <wim@42.be>2017-11-21 23:48:39 +0100
commit71cb9b2d1dd96b309134187cd38155c22f086060 (patch)
tree2cc3f7404e0f51e4aaab37d536acefcc4a805868 /vendor/github.com/matrix-org/gomatrix/responses.go
parentcd4c9b194fe486bcea08c1b9166e1ac22508ab00 (diff)
downloadmatterbridge-msglm-71cb9b2d1dd96b309134187cd38155c22f086060.tar.gz
matterbridge-msglm-71cb9b2d1dd96b309134187cd38155c22f086060.tar.bz2
matterbridge-msglm-71cb9b2d1dd96b309134187cd38155c22f086060.zip
Update vendor github.com/matrix-org/gomatrix
Diffstat (limited to 'vendor/github.com/matrix-org/gomatrix/responses.go')
-rw-r--r--vendor/github.com/matrix-org/gomatrix/responses.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/github.com/matrix-org/gomatrix/responses.go b/vendor/github.com/matrix-org/gomatrix/responses.go
index de7a8ae9..fe0eeb32 100644
--- a/vendor/github.com/matrix-org/gomatrix/responses.go
+++ b/vendor/github.com/matrix-org/gomatrix/responses.go
@@ -45,6 +45,9 @@ type RespBanUser struct{}
// RespUnbanUser is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-unban
type RespUnbanUser struct{}
+// RespTyping is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-typing-userid
+type RespTyping struct{}
+
// RespJoinedRooms is the JSON response for TODO-SPEC https://github.com/matrix-org/synapse/pull/1680
type RespJoinedRooms struct {
JoinedRooms []string `json:"joined_rooms"`
@@ -58,6 +61,13 @@ type RespJoinedMembers struct {
} `json:"joined"`
}
+// RespMessages is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-rooms-roomid-messages
+type RespMessages struct {
+ Start string `json:"start"`
+ Chunk []Event `json:"chunk"`
+ End string `json:"end"`
+}
+
// RespSendEvent is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-send-eventtype-txnid
type RespSendEvent struct {
EventID string `json:"event_id"`
@@ -90,6 +100,11 @@ func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool {
return false
}
+// RespUserDisplayName is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-profile-userid-displayname
+type RespUserDisplayName struct {
+ DisplayName string `json:"displayname"`
+}
+
// RespRegister is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-register
type RespRegister struct {
AccessToken string `json:"access_token"`
@@ -125,6 +140,16 @@ type RespSync struct {
Events []Event `json:"events"`
} `json:"presence"`
Rooms struct {
+ Leave map[string]struct {
+ State struct {
+ Events []Event `json:"events"`
+ } `json:"state"`
+ Timeline struct {
+ Events []Event `json:"events"`
+ Limited bool `json:"limited"`
+ PrevBatch string `json:"prev_batch"`
+ } `json:"timeline"`
+ } `json:"leave"`
Join map[string]struct {
State struct {
Events []Event `json:"events"`
@@ -142,3 +167,10 @@ type RespSync struct {
} `json:"invite"`
} `json:"rooms"`
}
+
+type RespTurnServer struct {
+ Username string `json:"username"`
+ Password string `json:"password"`
+ TTL int `json:"ttl"`
+ URIs []string `json:"uris"`
+}