Class StatusNotification

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

public class StatusNotification extends Object
An OCPP status notification.
Version:
1.0
Author:
matt
  • Constructor Details

    • StatusNotification

      public StatusNotification(int connectorId, ChargePointStatus status, ChargePointErrorCode errorCode, String info, Instant timestamp, String vendorId, String vendorErrorCode)
      Constructor.
      Parameters:
      connectorId - the connector ID
      status - the status
      errorCode - the error code
      info - the info
      timestamp - the timestamp
      vendorId - the vendor ID
      vendorErrorCode - the vendor error code
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

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

      public int getConnectorId()
      Returns:
      the connectorId
    • getStatus

      public ChargePointStatus getStatus()
      Returns:
      the status
    • getErrorCode

      public ChargePointErrorCode getErrorCode()
      Returns:
      the errorCode
    • getInfo

      public String getInfo()
      Returns:
      the info
    • getTimestamp

      public Instant getTimestamp()
      Returns:
      the timestamp
    • getVendorId

      public String getVendorId()
      Returns:
      the vendorId
    • getVendorErrorCode

      public String getVendorErrorCode()
      Returns:
      the vendorErrorCode
    • isSameAs

      public boolean isSameAs(StatusNotification other)
      Test if the properties of another entity are the same as in this instance.

      The id and created properties 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

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

      public StatusNotification.Builder toBuilder()
      Creates a builder to build StatusNotification and initialize it with this object.
      Returns:
      created builder