revert broadcast status.

This commit is contained in:
Miroslav Šedivý 2020-11-30 17:27:11 +01:00
parent 8f9671689f
commit def6248ca7
2 changed files with 13 additions and 19 deletions

View File

@ -52,7 +52,7 @@ const (
)
const (
BORADCAST_STATUS = "broadcast/status" // TODO: Remove.
BORADCAST_STATUS = "broadcast/status"
BORADCAST_CREATE = "broadcast/create" // TODO: Remove.
BORADCAST_DESTROY = "broadcast/destroy" // TODO: Remove.
)

View File

@ -12,11 +12,12 @@ type Message struct {
// System
// TODO: New.
type SystemConnect struct {
Event string `json:"event,omitempty"`
ControlHost ControlHost `json:"control_host"`
ScreenSize ScreenSize `json:"screen_size"`
Members []MemberData `json:"members"`
ScreenSizesList *[]ScreenSize `json:"screen_sizes_list,omitempty"`
Event string `json:"event,omitempty"`
ControlHost ControlHost `json:"control_host"`
ScreenSize ScreenSize `json:"screen_size"`
Members []MemberData `json:"members"`
ScreenSizesList *[]ScreenSize `json:"screen_sizes_list,omitempty"`
BroadcastStatus BroadcastStatus `json:"members,omitempty"`
}
// TODO: New.
@ -114,6 +115,12 @@ type KeyboardLayout struct {
Layout string `json:"layout"`
}
type BroadcastStatus struct {
Event string `json:"event"`
URL string `json:"url"`
IsActive bool `json:"is_active"`
}
// TODO: Remove.
type Disconnect struct {
Event string `json:"event"`
@ -202,16 +209,3 @@ type ScreenConfigurations struct {
Event string `json:"event"`
Configurations map[int]types.ScreenConfiguration `json:"configurations"`
}
// TODO: Remove.
type BroadcastStatus struct {
Event string `json:"event"`
URL string `json:"url"`
IsActive bool `json:"isActive"`
}
// TODO: Remove.
type BroadcastCreate struct {
Event string `json:"event"`
URL string `json:"url"`
}