Work on reading command responses

This commit is contained in:
Kovid Goyal 2022-08-22 15:11:00 +05:30
parent 91b15d1a90
commit 3a7d26a3ef
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
4 changed files with 127 additions and 22 deletions

View file

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