Refactor code structure and remove redundant sections for improved readability and maintainability
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 26s
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 26s
This commit is contained in:
10
consts.go
10
consts.go
@ -30,12 +30,12 @@ var apiURLs = map[string]string{
|
||||
"API_2FA_AUTH_VERIFY": "/twoStepAuthVerify.json",
|
||||
"API_LOGIN": "/login.json", // Same API for g1 and g2
|
||||
"API_REFRESH_VEHICLES": "/refreshVehicles.json",
|
||||
"API_SELECT_VEHICLE": "/selectVehicle.json",
|
||||
"API_VALIDATE_SESSION": "/validateSession.json",
|
||||
"API_VEHICLE_STATUS": "/vehicleStatus.json",
|
||||
"API_SELECT_VEHICLE": "/selectVehicle.json", // Covered by test
|
||||
"API_VALIDATE_SESSION": "/validateSession.json", // Covered by test
|
||||
"API_VEHICLE_STATUS": "/vehicleStatus.json", // Covered by test
|
||||
"API_AUTHORIZE_DEVICE": "/authenticateDevice.json",
|
||||
"API_NAME_DEVICE": "/nameThisDevice.json",
|
||||
"API_VEHICLE_HEALTH": "/vehicleHealth.json",
|
||||
"API_VEHICLE_HEALTH": "/vehicleHealth.json", // Covered by test
|
||||
"API_CONDITION": "/service/api_gen/condition/execute.json", // Similar API for g1 and g2 -- controller should replace 'api_gen' with either 'g1' or 'g2'
|
||||
"API_LOCATE": "/service/api_gen/locate/execute.json", // Get the last location the vehicle has reported to Subaru
|
||||
"API_LOCK": "/service/api_gen/lock/execute.json",
|
||||
@ -48,12 +48,12 @@ var apiURLs = map[string]string{
|
||||
"API_LIGHTS": "/service/api_gen/lightsOnly/execute.json",
|
||||
"API_LIGHTS_CANCEL": "/service/api_gen/lightsOnly/cancel.json",
|
||||
"API_LIGHTS_STOP": "/service/api_gen/lightsOnly/stop.json",
|
||||
"API_REMOTE_SVC_STATUS": "/service/g2/remoteService/status.json",
|
||||
"API_G1_LOCATE_UPDATE": "/service/g1/vehicleLocate/execute.json", // Different API for g1 and g2
|
||||
"API_G1_LOCATE_STATUS": "/service/g1/vehicleLocate/status.json",
|
||||
"API_G1_HORN_LIGHTS_STATUS": "/service/g1/hornLights/status.json", // g1-Only API
|
||||
"API_G2_LOCATE_UPDATE": "/service/g2/vehicleStatus/execute.json",
|
||||
"API_G2_LOCATE_STATUS": "/service/g2/vehicleStatus/locationStatus.json",
|
||||
"API_REMOTE_SVC_STATUS": "/service/g2/remoteService/status.json",
|
||||
"API_G2_SEND_POI": "/service/g2/sendPoi/execute.json", // g2-Only API
|
||||
"API_G2_SPEEDFENCE": "/service/g2/speedFence/execute.json",
|
||||
"API_G2_GEOFENCE": "/service/g2/geoFence/execute.json",
|
||||
|
Reference in New Issue
Block a user