(key *ari.Key)
| 10 | } |
| 11 | |
| 12 | func (ds *deviceState) Get(key *ari.Key) *ari.DeviceStateHandle { |
| 13 | k, err := ds.c.getRequest(&proxy.Request{ |
| 14 | Kind: "DeviceStateGet", |
| 15 | Key: key, |
| 16 | }) |
| 17 | if err != nil { |
| 18 | ds.c.log.Warn("failed to get device state for handle") |
| 19 | return ari.NewDeviceStateHandle(key, ds) |
| 20 | } |
| 21 | return ari.NewDeviceStateHandle(k, ds) |
| 22 | } |
| 23 | |
| 24 | func (ds *deviceState) List(filter *ari.Key) ([]*ari.Key, error) { |
| 25 | return ds.c.listRequest(&proxy.Request{ |
nothing calls this directly
no test coverage detected