Keypop Reader C++ API 2.0.0
Reference Reader API for C++
|
#include <CardReaderEvent.hpp>
Public Types | |
enum | Type { CARD_INSERTED , CARD_MATCHED , CARD_REMOVED , UNAVAILABLE } |
Public Member Functions | |
virtual const std::string & | getReaderName () const =0 |
virtual Type | getType () const =0 |
virtual const std::shared_ptr< ScheduledCardSelectionsResponse > | getScheduledCardSelectionsResponse () const =0 |
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 30 of file CardReaderEvent.hpp.
Possible card events.
Definition at line 37 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.