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.

22 lines
406 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. package commands
  2. import (
  3. "fmt"
  4. )
  5. type ReplaceScene struct {
  6. Match string `json:"match"`
  7. SceneID int64 `json:"sceneId"`
  8. }
  9. func (c ReplaceScene) CommandDescription() string {
  10. return fmt.Sprintf("ReplaceScene(%v, %d)", c.Match, c.SceneID)
  11. }
  12. type ClearScene struct {
  13. Match string `json:"match"`
  14. }
  15. func (c ClearScene) CommandDescription() string {
  16. return fmt.Sprintf("ClearScene(%v)", c.Match)
  17. }