/** * Create a new OICP v2.0 PullEVSEStatusById request. * * @param ProviderId the unique identification of the EV service provider for this request. * @param EVSEIds an array of EVSE Ids to query their status. * @return a new PullEVSEStatusById request builder object. */publicPullEVSEStatusByIdRequestPullEVSEStatusById(finalEVSP_IdProviderId,finalEVSE_Id...EVSEIds){...}/** * Create a new OICP v2.0 PullEVSEStatusById request. * * @param ProviderId the unique identification of the EV service provider for this request. * @param EVSEIds a stream of EVSE Ids to query their status. * @return a new PullEVSEStatusById request builder object. */publicPullEVSEStatusByIdRequestPullEVSEStatusById(finalEVSP_IdProviderId,finalStream<EVSE_Id>EVSEIds){...}
CompletableFuturereq=newEMPClient("api.playground.hubject.com").PullEVSEStatusById(EVSP_Id.Parse("DE*GDF"),Stream.of(EVSE_Id.Parse("DE*GEF*E123456789*1"),EVSE_Id.Parse("+49*822*083431571*1"))).Run(EVSEStatus->{if(EVSEStatus.getStatusCode().hasResult())System.out.println(EVSEStatus.getEVSEStatusRecords().map(evsedatarecords->"EVSE '"+evsedatarecords.getId()+"' has status '"+evsedatarecords.getStatus().toString()+"'").reduce((a,b)->a+System.lineSeparator()+b).get());else{System.out.println(EVSEStatus.getStatusCode().getCode());System.out.println(EVSEStatus.getStatusCode().getDescription());System.out.println(EVSEStatus.getStatusCode().getAdditionalInfo());}});// Wait for the future to complete...req.get();
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.