Browse Source

Move Conversations and Offline from ChatAPI to result, where they belong

main
Sam 6 years ago
parent
commit
d870b1aa3b
  1. 4
      types.go

4
types.go

@ -21,8 +21,6 @@ type ChatAPI struct { @@ -21,8 +21,6 @@ type ChatAPI struct {
Message string `json:"message,omitempty"`
ID int `json:"id,omitempty"`
Ratelimits []rateLimits `json:"ratelimits,omitempty"`
Conversations []conversation `json:"conversations,omitempty"`
Offline bool `json:"offline,omitempty"`
Result result `json:"result,omitempty"`
keybase Keybase // Some methods will need this, so I'm passing it but keeping it unexported
}
@ -165,6 +163,8 @@ type result struct { @@ -165,6 +163,8 @@ type result struct {
Message string `json:"message"`
ID int `json:"id"`
Ratelimits []rateLimits `json:"ratelimits"`
Conversations []conversation `json:"conversations,omitempty"`
Offline bool `json:"offline,omitempty"`
}
type messages struct {
Msg msg `json:"msg,omitempty"`

Loading…
Cancel
Save