Package org.eclipse.keypop.reader
Interface CardReaderEvent
public interface CardReaderEvent
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).
- Since:
- 1.0.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the reader that generated the event.Returns the card selection responses when it is available and null in all other cases.getType()
Returns the card reader event type.
-
Method Details
-
getReaderName
String getReaderName()Returns the name of the reader that generated the event.- Returns:
- A non-empty string.
- Since:
- 1.0.0
-
getType
CardReaderEvent.Type getType()Returns the card reader event type.- Returns:
- A non-null value.
- Since:
- 1.0.0
-
getScheduledCardSelectionsResponse
ScheduledCardSelectionsResponse getScheduledCardSelectionsResponse()Returns the card selection responses when it is available and null in all other cases. It may be available when the event type isCardReaderEvent.Type.CARD_INSERTED
and always present when the event type isCardReaderEvent.Type.CARD_MATCHED
.It is necessary to use the method
CardSelectionManager.parseScheduledCardSelectionsResponse(ScheduledCardSelectionsResponse)
to analyze the result.- Returns:
- Null if the event is not carrying a
ScheduledCardSelectionsResponse
. - Since:
- 1.0.0
-