AlexTelon / FlexiCharge-Backend

6 stars 11 forks source link

Callback Function is Needed for "reserveNow" Function #202

Open Bacharkita opened 11 months ago

Bacharkita commented 11 months ago

Need a callback function with the parameters "response" and "error", it will callback when the server got a response from the charger. The response have 1 error as of now, "InvalidId". if error occur the response will be null. If no errors occours the erro will be null. If the chareger accepts the reservation the response will be "Accepted" if the reservation went through, othervise it will be one of this responses: "Faulted", "Occupied", "Rejected" or "Unavailable".