Minor
This commit is contained in:
parent
f08189ae34
commit
9de343a9fd
1 changed files with 0 additions and 66 deletions
|
|
@ -91,13 +91,6 @@ type ChargerResponse struct {
|
|||
}
|
||||
}
|
||||
|
||||
// charging/settings
|
||||
// {
|
||||
// "autoUnlockPlugWhenCharged": "Permanent",
|
||||
// "maxChargeCurrentAc": "Maximum",
|
||||
// "targetStateOfChargeInPercent": 100
|
||||
// }
|
||||
|
||||
// Charger implements the /v1/charging/<vin>/status response
|
||||
func (v *API) Charger(vin string) (ChargerResponse, error) {
|
||||
var res ChargerResponse
|
||||
|
|
@ -105,62 +98,3 @@ func (v *API) Charger(vin string) (ChargerResponse, error) {
|
|||
err := v.getJSON(uri, &res)
|
||||
return res, err
|
||||
}
|
||||
|
||||
// ClimaterResponse is the /bs/climatisation/v1/%s/%s/vehicles/%s/climater api
|
||||
// type ClimaterResponse struct {
|
||||
// }
|
||||
|
||||
// // Climater implements the /climater response
|
||||
// func (v *API) Climater(vin string) (ClimaterResponse, error) {
|
||||
// var res ClimaterResponse
|
||||
// uri := fmt.Sprintf("%s/bs/climatisation/v1/%s/%s/vehicles/%s/climater", BaseURI, v.brand, v.country, vin)
|
||||
// err := v.getJSON(uri, &res)
|
||||
// return res, err
|
||||
// }
|
||||
|
||||
// const (
|
||||
// ActionCharge = "batterycharge"
|
||||
// ActionChargeStart = "start"
|
||||
// ActionChargeStop = "stop"
|
||||
// )
|
||||
|
||||
// type actionDefinition struct {
|
||||
// contentType string
|
||||
// appendix string
|
||||
// }
|
||||
|
||||
// var actionDefinitions = map[string]actionDefinition{
|
||||
// ActionCharge: {
|
||||
// "application/vnd.vwg.mbb.ChargerAction_v1_0_0+xml",
|
||||
// "charger/actions",
|
||||
// },
|
||||
// }
|
||||
|
||||
// // Action implements vehicle actions
|
||||
// func (v *API) Action(vin, action, value string) error {
|
||||
// def := actionDefinitions[action]
|
||||
|
||||
// uri := fmt.Sprintf("%s/bs/%s/v1/%s/%s/vehicles/%s/%s", BaseURI, action, v.brand, v.country, vin, def.appendix)
|
||||
// body := "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><action><type>" + value + "</type></action>"
|
||||
|
||||
// req, err := request.New(http.MethodPost, uri, strings.NewReader(body), map[string]string{
|
||||
// "Content-type": def.contentType,
|
||||
// })
|
||||
|
||||
// if err == nil {
|
||||
// var resp *http.Response
|
||||
// if resp, err = v.Do(req); err == nil {
|
||||
// resp.Body.Close()
|
||||
// }
|
||||
// }
|
||||
|
||||
// return err
|
||||
// }
|
||||
|
||||
// // Any implements any api response
|
||||
// func (v *API) Any(base, vin string) (interface{}, error) {
|
||||
// var res interface{}
|
||||
// uri := fmt.Sprintf("%s/"+strings.TrimLeft(base, "/"), BaseURI, v.brand, v.country, vin)
|
||||
// err := v.getJSON(uri, &res)
|
||||
// return res, err
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue