add resolve service prototype.
This commit is contained in:
+5
-3
@@ -6,15 +6,17 @@ import (
|
||||
)
|
||||
|
||||
type HardwareState struct {
|
||||
DeviceID string `json:"internalId"`
|
||||
ID string `json:"internalId"`
|
||||
InternalName string `json:"internalName"`
|
||||
SupportFlags device.SupportFlags `json:"deviceFlags"`
|
||||
ColorFlags device.ColorFlag `json:"colorFlags"`
|
||||
Buttons []string `json:"buttons"`
|
||||
State device.State `json:"state"`
|
||||
}
|
||||
|
||||
func (d HardwareState) EventDescription() string {
|
||||
return fmt.Sprintf("HardwareState(id:%s, sflags:%s, cflags:%s, state:%s)",
|
||||
d.DeviceID, d.SupportFlags, d.ColorFlags, d.State,
|
||||
return fmt.Sprintf("HardwareState(id:%s, iname:%#+v, sflags:%s, cflags:%s, buttons:%v, state:%s)",
|
||||
d.ID, d.InternalName, d.SupportFlags, d.ColorFlags, d.Buttons, d.State,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user