2020-01-19 12:30:09 +13:00
|
|
|
package message
|
|
|
|
|
2020-01-21 03:38:07 +13:00
|
|
|
import "n.eko.moe/neko/internal/session"
|
|
|
|
|
2020-01-19 12:30:09 +13:00
|
|
|
type Message struct {
|
|
|
|
Event string `json:"event"`
|
|
|
|
}
|
|
|
|
|
2020-01-21 05:22:24 +13:00
|
|
|
type Disconnect struct {
|
|
|
|
Event string `json:"event"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
}
|
|
|
|
|
2020-01-21 03:38:07 +13:00
|
|
|
type Identity struct {
|
2020-01-21 05:22:24 +13:00
|
|
|
Event string `json:"event"`
|
|
|
|
ID string `json:"id"`
|
2020-01-19 12:30:09 +13:00
|
|
|
}
|
|
|
|
|
2020-01-21 03:38:07 +13:00
|
|
|
type IdentityDetails struct {
|
2020-01-21 05:22:24 +13:00
|
|
|
Event string `json:"event"`
|
2020-01-21 03:38:07 +13:00
|
|
|
Username string `json:"username"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Signal struct {
|
2020-01-21 05:22:24 +13:00
|
|
|
Event string `json:"event"`
|
|
|
|
SDP string `json:"sdp"`
|
2020-01-19 12:30:09 +13:00
|
|
|
}
|
2020-01-21 03:38:07 +13:00
|
|
|
|
2020-01-21 05:22:24 +13:00
|
|
|
type MembersList struct {
|
|
|
|
Event string `json:"event"`
|
2020-01-21 03:38:07 +13:00
|
|
|
Memebers []*session.Session `json:"members"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Member struct {
|
2020-01-21 05:22:24 +13:00
|
|
|
Event string `json:"event"`
|
2020-01-21 03:38:07 +13:00
|
|
|
*session.Session
|
|
|
|
}
|
|
|
|
type MemberDisconnected struct {
|
2020-01-21 05:22:24 +13:00
|
|
|
Event string `json:"event"`
|
|
|
|
ID string `json:"id"`
|
2020-01-21 03:38:07 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
type Control struct {
|
2020-01-21 05:22:24 +13:00
|
|
|
Event string `json:"event"`
|
|
|
|
ID string `json:"id"`
|
2020-01-21 03:38:07 +13:00
|
|
|
}
|
|
|
|
|
2020-01-21 05:22:24 +13:00
|
|
|
type ChatRecieve struct {
|
|
|
|
Event string `json:"event"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChatSend struct {
|
|
|
|
Event string `json:"event"`
|
2020-01-21 03:38:07 +13:00
|
|
|
ID string `json:"id"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
2020-01-21 05:22:24 +13:00
|
|
|
|
|
|
|
type EmojiRecieve struct {
|
|
|
|
Event string `json:"event"`
|
|
|
|
Emoji string `json:"emoji"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type EmojiSend struct {
|
|
|
|
Event string `json:"event"`
|
|
|
|
ID string `json:"id"`
|
|
|
|
Emoji string `json:"emoji"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Admin struct {
|
|
|
|
Event string `json:"event"`
|
|
|
|
ID string `json:"id"`
|
|
|
|
}
|
|
|
|
|
2020-01-23 06:16:40 +13:00
|
|
|
type AdminTarget struct {
|
|
|
|
Event string `json:"event"`
|
|
|
|
Target string `json:"target"`
|
|
|
|
ID string `json:"id"`
|
2020-01-21 05:22:24 +13:00
|
|
|
}
|