Add a few more

This commit is contained in:
Neil Alexander 2021-01-13 13:09:11 +00:00
parent f816db276b
commit 11fc92398d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -360,10 +360,10 @@ type PrevEventRef struct {
type Response struct { type Response struct {
NextBatch StreamingToken `json:"next_batch"` NextBatch StreamingToken `json:"next_batch"`
AccountData struct { AccountData struct {
Events []gomatrixserverlib.ClientEvent `json:"events"` Events []gomatrixserverlib.ClientEvent `json:"events,omitempty"`
} `json:"account_data,omitempty"` } `json:"account_data,omitempty"`
Presence struct { Presence struct {
Events []gomatrixserverlib.ClientEvent `json:"events"` Events []gomatrixserverlib.ClientEvent `json:"events,omitempty"`
} `json:"presence,omitempty"` } `json:"presence,omitempty"`
Rooms struct { Rooms struct {
Join map[string]JoinResponse `json:"join,omitempty"` Join map[string]JoinResponse `json:"join,omitempty"`
@ -372,13 +372,13 @@ type Response struct {
Leave map[string]LeaveResponse `json:"leave,omitempty"` Leave map[string]LeaveResponse `json:"leave,omitempty"`
} `json:"rooms,omitempty"` } `json:"rooms,omitempty"`
ToDevice struct { ToDevice struct {
Events []gomatrixserverlib.SendToDeviceEvent `json:"events"` Events []gomatrixserverlib.SendToDeviceEvent `json:"events,omitempty"`
} `json:"to_device,omitempty"` } `json:"to_device,omitempty"`
DeviceLists struct { DeviceLists struct {
Changed []string `json:"changed,omitempty"` Changed []string `json:"changed,omitempty"`
Left []string `json:"left,omitempty"` Left []string `json:"left,omitempty"`
} `json:"device_lists,omitempty"` } `json:"device_lists,omitempty"`
DeviceListsOTKCount map[string]int `json:"device_one_time_keys_count"` DeviceListsOTKCount map[string]int `json:"device_one_time_keys_count,omitempty"`
} }
// NewResponse creates an empty response with initialised maps. // NewResponse creates an empty response with initialised maps.