AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
ExternalMediaPlayerCommon.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ACSDKEXTERNALMEDIAPLAYERINTERFACES_EXTERNALMEDIAPLAYERCOMMON_H_
17 #define ACSDKEXTERNALMEDIAPLAYERINTERFACES_EXTERNALMEDIAPLAYERCOMMON_H_
18 
19 namespace alexaClientSDK {
20 namespace acsdkExternalMediaPlayerInterfaces {
21 
23 enum class ValidationMethod {
29  NONE
30 };
31 
34  switch (value) {
36  return "SIGNING_CERTIFICATE";
38  return "GENERATED_CERTIFICATE";
40  return "NONE";
41  }
42  return "UNKNOWN";
43 }
44 
51 
54 };
55 
62 
69  std::vector<std::string> validationData;
70 };
71 
75 struct PlayerInfo : public PlayerInfoBase {
82  PlayerInfo(const std::string& localPlayerId = "", const std::string& spiVersion = "", bool supported = false) :
83  PlayerInfoBase{localPlayerId, spiVersion},
84  playerSupported(supported) {
85  }
86 
89 
92 
95 
99 };
100 
101 } // namespace acsdkExternalMediaPlayerInterfaces
102 } // namespace alexaClientSDK
103 
104 #endif // ACSDKEXTERNALMEDIAPLAYERINTERFACES_EXTERNALMEDIAPLAYERCOMMON_H_
std::string playerId
The cloud provided playerID.
Definition: ExternalMediaPlayerCommon.h:88
::std::string string
Definition: gtest-port.h:1097
std::string playbackSessionId
A universally unique identifier (UUID) generated to the RFC 4122 specification.
Definition: ExternalMediaPlayerCommon.h:94
Definition: ExternalMediaPlayerCommon.h:75
ValidationMethod validationMethod
The validation method used for this player.
Definition: ExternalMediaPlayerCommon.h:61
ValidationMethod
Enum describing the available validation methods for External Media Players.
Definition: ExternalMediaPlayerCommon.h:23
std::string localPlayerId
The opaque token that uniquely identifies the local external player app.
Definition: ExternalMediaPlayerCommon.h:50
std::string validationMethodToString(ValidationMethod value)
Converts the ValidationMethod enum to a string representation.
Definition: ExternalMediaPlayerCommon.h:33
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::string spiVersion
The service provider interface (SPI) version.
Definition: ExternalMediaPlayerCommon.h:53
PlayerInfo(const std::string &localPlayerId="", const std::string &spiVersion="", bool supported=false)
Definition: ExternalMediaPlayerCommon.h:82
bool playerSupported
Definition: ExternalMediaPlayerCommon.h:98
std::string skillToken
An opaque token for the domain or skill that is presently associated with this player.
Definition: ExternalMediaPlayerCommon.h:91
std::vector< std::string > validationData
Definition: ExternalMediaPlayerCommon.h:69

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0