This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes in this update: Feature enhancements, updates, and resolved issues from all releases are available on the [Amazon developer portal](https://developer.amazon.com/docs/alexa/avs-device-sdk/release-notes.html).
- Loading branch information
1 parent
7da524a
commit f82767c
Showing
466 changed files
with
21,797 additions
and
5,140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0/ | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
#ifndef ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_MESSAGEROUTERFACTORY_H_ | ||
#define ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_MESSAGEROUTERFACTORY_H_ | ||
|
||
#include "ACL/Transport/MessageRouter.h" | ||
#include "ACL/Transport/MessageRouterFactoryInterface.h" | ||
|
||
namespace alexaClientSDK { | ||
namespace acl { | ||
|
||
using namespace alexaClientSDK::acl; | ||
using namespace avsCommon::sdkInterfaces; | ||
using namespace avsCommon::avs::attachment; | ||
|
||
/** | ||
* Factory for creating MessageRouter instances that manages connection over some medium to AVS. | ||
*/ | ||
class MessageRouterFactory : public MessageRouterFactoryInterface { | ||
public: | ||
/** | ||
* Default constructor | ||
*/ | ||
MessageRouterFactory(); | ||
|
||
/// @name MessageRouterFactoryInterface methods. | ||
/// @{ | ||
std::shared_ptr<MessageRouterInterface> createMessageRouter( | ||
std::shared_ptr<AuthDelegateInterface> authDelegate, | ||
std::shared_ptr<AttachmentManager> attachmentManager, | ||
std::shared_ptr<TransportFactoryInterface> transportFactory) override; | ||
/// @} | ||
}; | ||
|
||
} // namespace acl | ||
} // namespace alexaClientSDK | ||
|
||
#endif // ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_MESSAGEROUTERFACTORY_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0/ | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
#ifndef ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_MESSAGEROUTERFACTORYINTERFACE_H_ | ||
#define ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_MESSAGEROUTERFACTORYINTERFACE_H_ | ||
|
||
#include "ACL/Transport/MessageRouterInterface.h" | ||
#include "ACL/Transport/TransportFactoryInterface.h" | ||
|
||
namespace alexaClientSDK { | ||
namespace acl { | ||
|
||
using namespace alexaClientSDK::acl; | ||
using namespace avsCommon::sdkInterfaces; | ||
using namespace avsCommon::avs::attachment; | ||
|
||
/** | ||
* Interface for creating instances of @c MessageRouterInterface | ||
*/ | ||
class MessageRouterFactoryInterface { | ||
public: | ||
/** | ||
* Destructor. | ||
*/ | ||
virtual ~MessageRouterFactoryInterface() = default; | ||
|
||
/** | ||
* Create a MessageRouter. | ||
* | ||
* @param authDelegate An implementation of an AuthDelegate, which will provide valid access tokens with which | ||
* the MessageRouter can authorize the client to AVS. | ||
* @param attachmentManager The AttachmentManager, which allows ACL to write attachments received from AVS. | ||
* @param transportFactory Factory used to create new instances of @c TransportInterface. | ||
* @return A new MessageRouter object | ||
*/ | ||
virtual std::shared_ptr<MessageRouterInterface> createMessageRouter( | ||
std::shared_ptr<AuthDelegateInterface> authDelegate, | ||
std::shared_ptr<AttachmentManager> attachmentManager, | ||
std::shared_ptr<TransportFactoryInterface> transportFactory) = 0; | ||
}; | ||
|
||
} // namespace acl | ||
} // namespace alexaClientSDK | ||
|
||
#endif // ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_MESSAGEROUTERFACTORYINTERFACE_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.