23 lines
435 B
Go
23 lines
435 B
Go
|
package arcast
|
||
|
|
||
|
import (
|
||
|
"forge.cadoles.com/arcad/arcast/pkg/server"
|
||
|
"forge.cadoles.com/arcad/edge/pkg/module/cast"
|
||
|
)
|
||
|
|
||
|
type DeviceStatus struct {
|
||
|
status *server.StatusResponse
|
||
|
}
|
||
|
|
||
|
// State implements cast.DeviceStatus.
|
||
|
func (s *DeviceStatus) State() string {
|
||
|
return s.status.Status
|
||
|
}
|
||
|
|
||
|
// Title implements cast.DeviceStatus.
|
||
|
func (s *DeviceStatus) Title() string {
|
||
|
return s.status.Title
|
||
|
}
|
||
|
|
||
|
var _ cast.DeviceStatus = &DeviceStatus{}
|