fix: pause, position, volume should be ptrs

prevents encoding/json from omitting these values when
set to falsy real data (false, 0)
This commit is contained in:
Christopher F
2018-08-23 21:20:54 -04:00
parent 59811adafe
commit 746f26291f
2 changed files with 6 additions and 6 deletions

View File

@ -76,9 +76,9 @@ type message struct {
Track string `json:"track,omitempty"`
StartTime string `json:"startTime,omitempty"`
EndTime string `json:"endTime,omitempty"`
Pause bool `json:"pause,omitempty"`
Position int `json:"position,omitempty"`
Volume int `json:"volume,omitempty"`
Pause *bool `json:"pause,omitempty"`
Position *int `json:"position,omitempty"`
Volume *int `json:"volume,omitempty"`
State *state `json:"state,omitempty"`
Type string `json:"type,omitempty"`
Reason string `json:"reason,omitempty"`