AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
AlexaSeekControllerInterface.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 ACSDKALEXASEEKCONTROLLERINTERFACES_ALEXASEEKCONTROLLERINTERFACE_H_
17 #define ACSDKALEXASEEKCONTROLLERINTERFACES_ALEXASEEKCONTROLLERINTERFACE_H_
18 
19 #include <chrono>
20 #include <string>
21 
22 namespace alexaClientSDK {
23 namespace acsdkAlexaSeekControllerInterfaces {
24 
39 public:
48  struct Response {
52  enum class Type {
54  SUCCESS,
55 
60 
65 
68 
71 
75  };
76 
85  Response(std::chrono::milliseconds currentMediaPosition) :
88 
98  type{type},
101 
103  Type type;
104 
108  std::chrono::milliseconds currentMediaPosition;
109 
113  };
114 
118  virtual ~AlexaSeekControllerInterface() = default;
119 
133  virtual Response adjustSeekPosition(const std::chrono::milliseconds& deltaPosition) = 0;
134 };
135 
136 } // namespace acsdkAlexaSeekControllerInterfaces
137 } // namespace alexaClientSDK
138 
139 #endif // ACSDKALEXASEEKCONTROLLERINTERFACES_ALEXASEEKCONTROLLERINTERFACE_H_
std::chrono::milliseconds currentMediaPosition
Definition: AlexaSeekControllerInterface.h:108
Response(Type type, const std::string &errorMessage)
Definition: AlexaSeekControllerInterface.h:97
std::string errorMessage
Definition: AlexaSeekControllerInterface.h:112
::std::string string
Definition: gtest-port.h:1097
virtual Response adjustSeekPosition(const std::chrono::milliseconds &deltaPosition)=0
Indicates there is no audio or video content that is available when a seek operation is invoked...
Response(std::chrono::milliseconds currentMediaPosition)
Definition: AlexaSeekControllerInterface.h:85
Indicates the current audio or video content cannot be seeked. For example, a YouTube video ad...
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Type type
The AlexaSeekControllerInterface response type.
Definition: AlexaSeekControllerInterface.h:100

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