ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | List of all members
ocpp::v2::TariffAndCostInterface Class Referenceabstract
Inheritance diagram for ocpp::v2::TariffAndCostInterface:
ocpp::v2::MessageHandlerInterface ocpp::v2::TariffAndCost

Public Member Functions

virtual void handle_cost_and_tariff (const TransactionEventResponse &response, const TransactionEventRequest &original_message, const json &original_transaction_event_response)=0
 Create cost and / or tariff message and call the callbacks to send it, if tariff and / or cost is enabled. More...
 
- Public Member Functions inherited from ocpp::v2::MessageHandlerInterface
virtual void handle_message (const EnhancedMessage< MessageType > &message)=0
 Handles the given message from the CSMS. This includes dispatching a CALLRESULT as a response to the incoming message . More...
 

Member Function Documentation

◆ handle_cost_and_tariff()

virtual void ocpp::v2::TariffAndCostInterface::handle_cost_and_tariff ( const TransactionEventResponse response,
const TransactionEventRequest original_message,
const json &  original_transaction_event_response 
)
pure virtual

Create cost and / or tariff message and call the callbacks to send it, if tariff and / or cost is enabled.

Parameters
responseThe TransactionEventResponse where the tariff and cost information is added to.
original_messageThe original TransactionEventRequest, which contains some information we need as well.
original_transaction_event_responseThe original json from the response.

Implemented in ocpp::v2::TariffAndCost.


The documentation for this class was generated from the following file: