Keyple Service C++ Library - 3.3.5
Component of the Keyple C++ middleware
ReaderEventAdapter.cpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional *
5 * information regarding copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the *
8 * terms of the Eclipse Public License 2.0 which is available at *
9 * http://www.eclipse.org/legal/epl-2.0 *
10 * *
11 * SPDX-License-Identifier: EPL-2.0 *
12 ******************************************************************************/
13
14#include "keyple/core/service/ReaderEventAdapter.hpp"
15
16#include <memory>
17#include <string>
18
19namespace keyple {
20namespace core {
21namespace service {
22
23ReaderEventAdapter::ReaderEventAdapter(
24 const std::string& pluginName,
25 const std::string& readerName,
26 const Type type,
27 std::shared_ptr<ScheduledCardSelectionsResponse>
28 scheduledCardSelectionsResponse)
29: mPluginName(pluginName)
30, mReaderName(readerName)
31, mScheduledCardSelectionsResponse(scheduledCardSelectionsResponse)
32, mType(type)
33{
34}
35
36const std::string&
37ReaderEventAdapter::getPluginName() const
38{
39 return mPluginName;
40}
41
42const std::string&
43ReaderEventAdapter::getReaderName() const
44{
45 return mReaderName;
46}
47
48Type
49ReaderEventAdapter::getType() const
50{
51 return mType;
52}
53
54const std::shared_ptr<ScheduledCardSelectionsResponse>
55ReaderEventAdapter::getScheduledCardSelectionsResponse() const
56{
57 return mScheduledCardSelectionsResponse;
58}
59
60} /* namespace service */
61} /* namespace core */
62} /* namespace keyple */