Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Sep 6, 2021
1 parent d6d96ff commit 392e2c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions vehicle/vw/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ func (v *API) getJSON(uri string, res interface{}) error {
return err
}

// VehiclesResponse is the /usermanagement/users/v1/%s/%s/vehicles api
type VehiclesResponse struct {
UserVehicles struct {
Vehicle []string
}
}

// Vehicles implements the /vehicles response
func (v *API) Vehicles() ([]string, error) {
var res VehiclesResponse
Expand Down
7 changes: 7 additions & 0 deletions vehicle/vw/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ func temp2Float(i int) float64 {
return float64(i)/10 - 273
}

// VehiclesResponse is the /usermanagement/users/v1/%s/%s/vehicles api
type VehiclesResponse struct {
UserVehicles struct {
Vehicle []string
}
}

// HomeRegion is the home region API response
type HomeRegion struct {
HomeRegion struct {
Expand Down

0 comments on commit 392e2c9

Please sign in to comment.