update screen WS.

This commit is contained in:
Miroslav Šedivý
2020-11-30 17:53:05 +01:00
parent 83be51ea0f
commit 4bbf3bb039
6 changed files with 13 additions and 86 deletions

View File

@ -1,9 +1,5 @@
package message
import (
"demodesk/neko/internal/types"
)
type Message struct {
Event string `json:"event"`
Payload interface{} `json:"payload"` // TODO: New.
@ -84,7 +80,6 @@ type ControlKey struct {
}
// Screen
// TODO: New.
type ScreenSize struct {
Event string `json:"event,omitempty"`
Width int `json:"width"`
@ -162,18 +157,3 @@ type ControlTarget struct {
ID string `json:"id"`
Target string `json:"target"`
}
// TODO: Remove.
type ScreenResolution struct {
Event string `json:"event"`
ID string `json:"id,omitempty"`
Width int `json:"width"`
Height int `json:"height"`
Rate int `json:"rate"`
}
// TODO: Remove.
type ScreenConfigurations struct {
Event string `json:"event"`
Configurations map[int]types.ScreenConfiguration `json:"configurations"`
}