mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
unify types.ScreenSize and add ID to screen size update.
This commit is contained in:
@ -17,7 +17,7 @@ type SystemWebRTC struct {
|
||||
type SystemInit struct {
|
||||
SessionId string `json:"session_id"`
|
||||
ControlHost ControlHost `json:"control_host"`
|
||||
ScreenSize ScreenSize `json:"screen_size"`
|
||||
ScreenSize types.ScreenSize `json:"screen_size"`
|
||||
Sessions map[string]SessionData `json:"sessions"`
|
||||
Settings types.Settings `json:"settings"`
|
||||
TouchEvents bool `json:"touch_events"`
|
||||
@ -26,8 +26,8 @@ type SystemInit struct {
|
||||
}
|
||||
|
||||
type SystemAdmin struct {
|
||||
ScreenSizesList []ScreenSize `json:"screen_sizes_list"`
|
||||
BroadcastStatus BroadcastStatus `json:"broadcast_status"`
|
||||
ScreenSizesList []types.ScreenSize `json:"screen_sizes_list"`
|
||||
BroadcastStatus BroadcastStatus `json:"broadcast_status"`
|
||||
}
|
||||
|
||||
type SystemLogs = []SystemLog
|
||||
@ -151,9 +151,12 @@ type ControlTouch struct {
|
||||
/////////////////////////////
|
||||
|
||||
type ScreenSize struct {
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Rate int16 `json:"rate"`
|
||||
types.ScreenSize
|
||||
}
|
||||
|
||||
type ScreenSizeUpdate struct {
|
||||
ID string `json:"id"`
|
||||
types.ScreenSize
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
|
Reference in New Issue
Block a user