Automap a bunch of json fields from identically named options

This commit is contained in:
Kovid Goyal 2022-08-29 12:10:23 +05:30
parent b33a684357
commit ef71b071db
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
11 changed files with 42 additions and 28 deletions

View file

@ -3,14 +3,14 @@
package utils
type RemoteControlCmd struct {
Cmd string `json:"cmd"`
Version [3]int `json:"version"`
NoResponse bool `json:"no_response,omitempty"`
Payload *interface{} `json:"payload,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
Password string `json:"password,omitempty"`
Async string `json:"async,omitempty"`
CancelAsync bool `json:"cancel_async,omitempty"`
Cmd string `json:"cmd"`
Version [3]int `json:"version"`
NoResponse bool `json:"no_response,omitempty"`
Payload interface{} `json:"payload,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
Password string `json:"password,omitempty"`
Async string `json:"async,omitempty"`
CancelAsync bool `json:"cancel_async,omitempty"`
}
type EncryptedRemoteControlCmd struct {