Files
Server/commands/scene.go
T
2022-08-15 21:14:11 +02:00

23 lines
406 B
Go

package commands
import (
"fmt"
)
type ReplaceScene struct {
Match string `json:"match"`
SceneID int64 `json:"sceneId"`
}
func (c ReplaceScene) CommandDescription() string {
return fmt.Sprintf("ReplaceScene(%v, %d)", c.Match, c.SceneID)
}
type ClearScene struct {
Match string `json:"match"`
}
func (c ClearScene) CommandDescription() string {
return fmt.Sprintf("ClearScene(%v)", c.Match)
}