state can be omitted
This commit is contained in:
parent
ffc606ec77
commit
8abdbb6683
@ -160,10 +160,10 @@ type ESSetImage struct {
|
|||||||
type ESSetImagePayload struct {
|
type ESSetImagePayload struct {
|
||||||
Image string `json:"image"`
|
Image string `json:"image"`
|
||||||
Target EventTarget `json:"target"`
|
Target EventTarget `json:"target"`
|
||||||
State int `json:"state"`
|
State *int `json:"state,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewESSetImage(context string, imageBase64 string, target EventTarget, state int) ESSetImage {
|
func NewESSetImage(context string, imageBase64 string, target EventTarget, state *int) ESSetImage {
|
||||||
return ESSetImage{
|
return ESSetImage{
|
||||||
ESCommon: ESCommon{
|
ESCommon: ESCommon{
|
||||||
Event: "setImage",
|
Event: "setImage",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user