Class ChargeSessionEndInfo

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

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

    • toString

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

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

      public String getAuthorizationId()
      The authorization ID.
      Returns:
      the authorization ID
    • getTransactionId

      public int getTransactionId()
      The transaction ID.
      Returns:
      the transaction ID
    • getTimestampEnd

      public Instant getTimestampEnd()
      The time the session ended.
      Returns:
      the end timestamp
    • getMeterEnd

      public long getMeterEnd()
      The final meter reading at the end of the session.
      Returns:
      the ending meter reading, in Wh
    • getReason

      public ChargeSessionEndReason getReason()
      The reason for the session end.
      Returns:
      the reason the reason
    • getTransactionData

      public Iterable<SampledValue> getTransactionData()
      Optional transaction data.
      Returns:
      the transaction data, or null
    • builder

      public static ChargeSessionEndInfo.Builder builder()
      Creates builder to build ChargeSessionEndInfo.
      Returns:
      created builder
    • toBuilder

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