|
Keypop Reader C++ API - 2.1.0
Component of the Keypop C++ API
|
Card event data container indicating a change of state. More...
#include <keypop/reader/CardReaderEvent.hpp>
Public Types | |
| enum | Type { CARD_INSERTED , CARD_MATCHED , CARD_REMOVED , UNAVAILABLE } |
| Possible card events. More... | |
Public Member Functions | |
| virtual const std::string & | getReaderName () const =0 |
| Returns the name of the reader that generated the event. More... | |
| virtual Type | getType () const =0 |
| Returns the reader event type. More... | |
| virtual const std::shared_ptr< ScheduledCardSelectionsResponse > | getScheduledCardSelectionsResponse () const =0 |
| Returns the card selection responses when it is available and null in all other cases. More... | |
Card event data container indicating a change of state.
Contains the event origin (reader name), the event type and possibly the card selection response (when available).
Definition at line 35 of file CardReaderEvent.hpp.
Possible card events.
Definition at line 42 of file CardReaderEvent.hpp.
|
pure virtual |
Returns the name of the reader that generated the event.
|
pure virtual |
Returns the card selection responses when it is available and null in all other cases.
It may be available when the event type is Type#CARD_INSERTED and always present when the event type is Type#CARD_MATCHED.
It is necessary to use the method keypop::reader::selection::CardSelectionManager ::parseScheduledCardSelectionsResponse(ScheduledCardSelectionsResponse) to analyze the result.
|
pure virtual |
Returns the reader event type.