Add support for 6.0.23

This commit is contained in:
Paul Tyng
2020-10-19 11:13:51 -04:00
parent 020dad41e7
commit abc676f62b
84 changed files with 2131 additions and 252 deletions

View File

@@ -2,28 +2,8 @@ package unifi
import (
"context"
"encoding/json"
)
func (n *WLANGroup) UnmarshalJSON(b []byte) error {
type Alias WLANGroup
aux := &struct {
Maxsta emptyStringInt `json:"maxsta"`
*Alias
}{
Alias: (*Alias)(n),
}
err := json.Unmarshal(b, &aux)
if err != nil {
return err
}
n.Maxsta = int(aux.Maxsta)
return nil
}
func (c *Client) ListWLANGroup(ctx context.Context, site string) ([]WLANGroup, error) {
return c.listWLANGroup(ctx, site)
}