2019-07-18 15:15:19 +00:00
|
|
|
package models
|
2019-07-18 14:10:43 +00:00
|
|
|
|
2019-07-19 15:52:03 +00:00
|
|
|
import (
|
|
|
|
common "github.com/nxshock/signaller/internal/models/common"
|
|
|
|
)
|
2019-07-18 14:10:43 +00:00
|
|
|
|
|
|
|
// https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-r0-account-whoami
|
|
|
|
type WhoAmIReply struct {
|
|
|
|
UserID string `json:"user_id"` // Required. The user id that owns the access token.
|
|
|
|
}
|
|
|
|
|
|
|
|
// https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-r0-rooms-roomid-members
|
|
|
|
type MembersReply struct {
|
2019-07-19 15:52:03 +00:00
|
|
|
Chunk []common.MemberEvent `json:"chunk"`
|
2019-07-18 14:10:43 +00:00
|
|
|
}
|