Class ChargeSessionStartInfo

java.lang.Object
net.solarnetwork.ocpp.domain.ChargeSessionStartInfo

public class ChargeSessionStartInfo extends Object
Information about a charging session, at the start of a session.
Version:
1.0
Author:
matt
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getChargePointId

      public ChargePointIdentity getChargePointId()
      Get the Charge Point ID.
      Returns:
      the Charge Point ID
    • getAuthorizationId

      public String getAuthorizationId()
      Get the authorization ID, e.g. RFID value.
      Returns:
      the authorization ID
    • getConnectorId

      public int getConnectorId()
      Get the charge point connector ID.
      Returns:
      the connector ID
    • getTimestampStart

      public Instant getTimestampStart()
      Get the timestamp the session started at.
      Returns:
      the starting timestamp
    • getMeterStart

      public long getMeterStart()
      Get the meter reading at the time the session started.
      Returns:
      the meter reading, in WH
    • getReservationId

      public Integer getReservationId()
      Get the optional reservation ID.
      Returns:
      the reservation ID
    • toBuilder

      public ChargeSessionStartInfo.Builder toBuilder()
      Get a builder, populated with this instance's values.
      Returns:
      a pre-populated builder
    • builder

      public static ChargeSessionStartInfo.Builder builder()
      Creates builder to build ChargeSessionStartInfo.
      Returns:
      created builder