-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstate.go
More file actions
22 lines (17 loc) · 760 Bytes
/
state.go
File metadata and controls
22 lines (17 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package avcontrol
import "context"
// StateGetSetter represents something that can get and set device state.
type StateGetSetter interface {
// Get gets the state for the given Room.
// TODO change to `RoomState`, idk
Get(context.Context, RoomConfig) (StateResponse, error)
// Set sets the state for the given Room, based on the data in the StateRequest.
// TODO change to `SetRoomState`
Set(context.Context, RoomConfig, StateRequest) (StateResponse, error)
// GetHealth returns the health status of the room
// TODO change to `RoomHealth`
GetHealth(context.Context, RoomConfig) (RoomHealth, error)
// GetInfo returns the info about each device in the room
// TODO change to `RoomInfo`
GetInfo(context.Context, RoomConfig) (RoomInfo, error)
}