mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
update screen WS.
This commit is contained in:
@ -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"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user