AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
VideoRecorderInterface.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 ALEXA_CLIENT_SDK_ACSDKALEXAVIDEORECORDERINTERFACES_INCLUDE_ACSDKALEXAVIDEORECORDERINTERFACES_VIDEORECORDERINTERFACE_H_
17 #define ALEXA_CLIENT_SDK_ACSDKALEXAVIDEORECORDERINTERFACES_INCLUDE_ACSDKALEXAVIDEORECORDERINTERFACES_VIDEORECORDERINTERFACE_H_
18 
19 #include <memory>
20 #include <string>
21 
22 #include "VideoRecorderTypes.h"
23 
24 namespace alexaClientSDK {
25 namespace acsdkAlexaVideoRecorderInterfaces {
26 
37 public:
41  struct Response {
45  enum class Type {
47  SUCCESS,
72  };
73 
76 
79 
80  /*
81  * Default Constructor, sets response type to success.
82  */
83  Response() : type(Type::SUCCESS) {
84  }
85  };
86 
90  virtual ~VideoRecorderInterface() = default;
91 
99  virtual Response searchAndRecord(std::unique_ptr<VideoRecorderRequest> request) = 0;
100 
108  virtual Response cancelRecording(std::unique_ptr<VideoRecorderRequest> request) = 0;
109 
117  virtual Response deleteRecording(std::unique_ptr<VideoRecorderRequest> request) = 0;
118 
125  virtual bool isExtendedRecordingGUIShown() = 0;
126 
133  virtual int getStorageUsedPercentage() = 0;
134 };
135 } // namespace acsdkAlexaVideoRecorderInterfaces
136 } // namespace alexaClientSDK
137 
138 #endif // ALEXA_CLIENT_SDK_ACSDKALEXAVIDEORECORDERINTERFACES_INCLUDE_ACSDKALEXAVIDEORECORDERINTERFACES_VIDEORECORDERINTERFACE_H_
Indicates that a recording request failed because the recording already exists.
Indicates that a recording request failed because the DVR storage is full.
::std::string string
Definition: gtest-port.h:1097
Type type
Response type for VideoRecorder handler responses.
Definition: VideoRecorderInterface.h:75
virtual Response searchAndRecord(std::unique_ptr< VideoRecorderRequest > request)=0
The user is not subscribed to the content for a channel or other subscription-based content...
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual Response cancelRecording(std::unique_ptr< VideoRecorderRequest > request)=0
std::string message
Response message.
Definition: VideoRecorderInterface.h:78
The number of allowed failed attempts to perform a VideoRecorder action has been exceeded.
Indicates that a recording request failed because of a scheduling conflict with another recording...
virtual Response deleteRecording(std::unique_ptr< VideoRecorderRequest > request)=0

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