/** * Creates a new PushEVSEStatus request. * * @param EVSEStatus a mapping of EVSEIds to EVSEStatus values. * @param EVSEOperatorId the unique identification of the EVSE operator for this request. * @param EVSEOperatorName the unique name of the EVSE operator for this request. * @param Action the server side data management operation for this request. * @return a new PushEVSEStatus request builder object. */publicPushEVSEStatusRequestPushEVSEStatus(finalMap<EVSE_Id,EVSEStatus>EVSEStatus,finalActionTypeAction,finalEVSEOperator_IdEVSEOperatorId,finalStringEVSEOperatorName){...}
Map<EVSE_Id,EVSEStatus>EVSEStatusMap=newHashMap<EVSE_Id,EVSEStatus>();EVSEStatusMap.put(EVSE_Id.Parse("DE*GEF*E123456789*1"),EVSEStatus.Available);EVSEStatusMap.put(EVSE_Id.Parse("DE*GEF*E123456789*2"),EVSEStatus.Occupied);CompletableFuturereq=newCPOClient("api.playground.hubject.com").PushEVSEStatus(EVSEStatusMap,ActionType.insert,EVSEOperator_Id.Parse("DE*GEF"),"Test CPO 1").Run(ack->{if(ack.hasResult())System.out.println("success!");else{System.out.println(ack.getStatusCode().getCode());System.out.println(ack.getStatusCode().getDescription());System.out.println(ack.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.