14#include "keyple/core/service/CardSelectionResponseAdapter.hpp"
23CardSelectionResponseAdapter::CardSelectionResponseAdapter(
24 const std::string& powerOnData,
25 const std::shared_ptr<ApduResponseAdapter> selectApplicationResponse,
26 const bool hasMatched,
27 const std::shared_ptr<CardResponseAdapter> cardResponse)
28: mPowerOnData(powerOnData)
29, mSelectApplicationResponse(selectApplicationResponse)
30, mHasMatched(hasMatched)
31, mCardResponse(cardResponse)
36CardSelectionResponseAdapter::getPowerOnData()
const
42const std::shared_ptr<ApduResponseApi>
43CardSelectionResponseAdapter::getSelectApplicationResponse()
const
45 return mSelectApplicationResponse;
49CardSelectionResponseAdapter::hasMatched()
const
54const std::shared_ptr<CardResponseApi>
55CardSelectionResponseAdapter::getCardResponse()
const
61operator<<(std::ostream& os,
const CardSelectionResponseAdapter& csra)
63 os <<
"CARD_SELECTION_RESPONSE_ADAPTER: {"
64 <<
"HAS_MATCHED = " << csra.mHasMatched <<
", "
65 <<
"POWER_ON_DATA = " << csra.mPowerOnData <<
", "
66 <<
"SELECT_APPLICATION_RESPONSE = <TODO>, "
67 <<
"CARD_RESPONSE = <TODO>"
75 std::ostream& os,
const std::shared_ptr<CardSelectionResponseAdapter> csra)
std::ostream & operator<<(std::ostream &os, const std::shared_ptr< CardSelectionResponseAdapter > csra)