Package net.solarnetwork.ocpp.domain
Class ChargeSessionEndInfo
java.lang.Object
net.solarnetwork.ocpp.domain.ChargeSessionEndInfo
Information about a charging session, at the end of the session.
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChargeSessionEndInfo.Builderbuilder()Creates builder to buildChargeSessionEndInfo.The authorization ID.The Charge Point ID.longThe final meter reading at the end of the session.The reason for the session end.The time the session ended.Optional transaction data.intThe transaction ID.Get a builder, populated with this instance's values.toString()
-
Method Details
-
toString
-
getChargePointId
The Charge Point ID.- Returns:
- the Charge Point ID
-
getAuthorizationId
The authorization ID.- Returns:
- the authorization ID
-
getTransactionId
public int getTransactionId()The transaction ID.- Returns:
- the transaction ID
-
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
The reason for the session end.- Returns:
- the reason the reason
-
getTransactionData
Optional transaction data.- Returns:
- the transaction data, or null
-
builder
Creates builder to buildChargeSessionEndInfo.- Returns:
- created builder
-
toBuilder
Get a builder, populated with this instance's values.- Returns:
- a pre-populated builder
-