You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
402 B

  1. package variables
  2. import "fmt"
  3. type PropertyPatch struct {
  4. Key string `json:"id"`
  5. Temperature *AvgMinMax `json:"temperature,omitempty"`
  6. Motion *AvgMinMax `json:"motion,omitempty"`
  7. }
  8. func (e PropertyPatch) VerboseKey() string {
  9. return "variables.PropertyPatch"
  10. }
  11. func (e PropertyPatch) EventDescription() string {
  12. return fmt.Sprintf("variables.PropertyPatch(key=%s)", e.Key)
  13. }