mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-05 10:11:02 +00:00
16 lines
470 B
Go
16 lines
470 B
Go
package models
|
|
|
|
import (
|
|
common "github.com/nxshock/signaller/internal/models/common"
|
|
)
|
|
|
|
// 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 {
|
|
Chunk []common.MemberEvent `json:"chunk"`
|
|
}
|