update control WS.

This commit is contained in:
Miroslav Šedivý
2020-11-30 18:24:38 +01:00
parent 4bbf3bb039
commit 2e090eb54d
6 changed files with 42 additions and 95 deletions

View File

@ -19,10 +19,7 @@ const (
)
const (
CONTROL_LOCKED = "control/locked" // TODO: Remove.
CONTROL_REQUESTING = "control/requesting" // TODO: Remove.
CONTROL_GIVE = "control/give" // TODO: Remove.
CONTROL_HOST = "control/host" // TODO: New.
CONTROL_HOST = "control/host"
CONTROL_RELEASE = "control/release"
CONTROL_REQUEST = "control/request"
CONTROL_MOVE = "control/move" // TODO: New. (fallback)

View File

@ -52,7 +52,6 @@ type MemberData struct {
}
// Control
// TODO: New.
type ControlHost struct {
Event string `json:"event,omitempty"`
HasHost bool `json:"has_host"`
@ -144,16 +143,3 @@ type MemberDisconnected struct {
Event string `json:"event"`
ID string `json:"id"`
}
// TODO: Remove.
type Control struct {
Event string `json:"event"`
ID string `json:"id"`
}
// TODO: Remove.
type ControlTarget struct {
Event string `json:"event"`
ID string `json:"id"`
Target string `json:"target"`
}