public ChargePoint getVasRepresentation ( ChargingStation chargingStation ) { ChargePoint chargePoint = new ChargePoint ( ) ; chargePoint . setAddress ( chargingStation . getAddress ( ) ) ; chargePoint . getChargingCapabilities ( ) . addAll ( getChargingCapabilities ( chargingStation ) ) ; chargePoint . setChargingMode ( getVasChargingMode ( chargingStation . getChargeMode ( ) ) ) ; chargePoint . setCity ( chargingStation . getCity ( ) ) ; chargePoint . setConnectors ( chargingStation . getNumberOfEvses ( ) ) ; chargePoint . setConnectorsFree ( chargingStation . getNumberOfFreeEvses ( ) ) ; chargePoint . getConnectorTypes ( ) . addAll ( getConnectorTypes ( chargingStation ) ) ; chargePoint . setCoordinates ( getCoordinates ( chargingStation ) ) ; chargePoint . setCountry ( chargingStation . getCountry ( ) ) ; chargePoint . setHasFixedCable ( chargingStation . isHasFixedCable ( ) ) ; chargePoint . setIsReservable ( chargingStation . isReservable ( ) ) ; chargePoint . getOpeningPeriod ( ) . addAll ( getOpeningPeriod ( chargingStation ) ) ; chargePoint . setOperator ( chargingStation . getOperator ( ) ) ; chargePoint . setPostalCode ( chargingStation . getPostalCode ( ) ) ; chargePoint . setPublic ( getPublic ( chargingStation ) ) ; chargePoint . setRegion ( chargingStation . getRegion ( ) ) ; chargePoint . setStatus ( getStatus ( chargingStation ) ) ; chargePoint . setUid ( chargingStation . getId ( ) ) ; return chargePoint ; }
Creates a VAS representation of a charging station .