Package net.solarnetwork.ocpp.domain
Class StatusNotification
java.lang.Object
net.solarnetwork.ocpp.domain.StatusNotification
An OCPP status notification.
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionStatusNotification(int connectorId, ChargePointStatus status, ChargePointErrorCode errorCode, String info, Instant timestamp, String vendorId, String vendorErrorCode) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusNotification.Builderbuilder()Creates builder to buildStatusNotification.booleanintgetInfo()inthashCode()booleanisSameAs(StatusNotification other) Test if the properties of another entity are the same as in this instance.Creates a builder to buildStatusNotificationand initialize it with this object.toString()
-
Constructor Details
-
StatusNotification
public StatusNotification(int connectorId, ChargePointStatus status, ChargePointErrorCode errorCode, String info, Instant timestamp, String vendorId, String vendorErrorCode) Constructor.- Parameters:
connectorId- the connector IDstatus- the statuserrorCode- the error codeinfo- the infotimestamp- the timestampvendorId- the vendor IDvendorErrorCode- the vendor error code
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
getConnectorId
public int getConnectorId()- Returns:
- the connectorId
-
getStatus
- Returns:
- the status
-
getErrorCode
- Returns:
- the errorCode
-
getInfo
- Returns:
- the info
-
getTimestamp
- Returns:
- the timestamp
-
getVendorId
- Returns:
- the vendorId
-
getVendorErrorCode
- Returns:
- the vendorErrorCode
-
isSameAs
Test if the properties of another entity are the same as in this instance.The
idandcreatedproperties are not compared by this method.- Parameters:
other- the other entity to compare to- Returns:
- true if the properties of this instance are equal to the other
-
builder
Creates builder to buildStatusNotification.- Returns:
- created builder
-
toBuilder
Creates a builder to buildStatusNotificationand initialize it with this object.- Returns:
- created builder
-