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 ( const (
BORADCAST_STATUS = "broadcast/status" // TODO: Remove. BORADCAST_STATUS = "broadcast/status"
BORADCAST_CREATE = "broadcast/create" // TODO: Remove. BORADCAST_CREATE = "broadcast/create" // TODO: Remove.
BORADCAST_DESTROY = "broadcast/destroy" // TODO: Remove. BORADCAST_DESTROY = "broadcast/destroy" // TODO: Remove.
) )

View File

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