(key *ari.Key)
| 29 | } |
| 30 | |
| 31 | func (ds *deviceState) Data(key *ari.Key) (*ari.DeviceStateData, error) { |
| 32 | data, err := ds.c.dataRequest(&proxy.Request{ |
| 33 | Kind: "DeviceStateData", |
| 34 | Key: key, |
| 35 | }) |
| 36 | if err != nil { |
| 37 | return nil, err |
| 38 | } |
| 39 | return data.DeviceState, nil |
| 40 | } |
| 41 | |
| 42 | func (ds *deviceState) Update(key *ari.Key, state string) error { |
| 43 | return ds.c.commandRequest(&proxy.Request{ |
nothing calls this directly
no test coverage detected