From bb8ddd902405b19aa253d7c6ca722eb07911d665 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 22 Feb 2023 03:19:27 +0000 Subject: [PATCH] Update EvaluateVideoQuality. --- VERSION | 2 +- .../videorecog/model/DetectVideoShotRequest.h | 74 +++++++-------- .../model/GenerateVideoCoverRequest.h | 80 ++++++++--------- .../model/GetAsyncJobResultRequest.h | 74 +++++++-------- .../model/RecognizeVideoCastCrewListRequest.h | 89 +++++++++---------- .../videorecog/model/SplitVideoPartsRequest.h | 77 ++++++++-------- .../videorecog/model/SplitVideoPartsResult.h | 9 ++ .../model/UnderstandVideoContentRequest.h | 74 +++++++-------- .../src/model/DetectVideoShotRequest.cc | 58 ++++++------ .../src/model/GenerateVideoCoverRequest.cc | 70 +++++++-------- .../src/model/GetAsyncJobResultRequest.cc | 58 ++++++------ .../RecognizeVideoCastCrewListRequest.cc | 84 ++++++++--------- .../src/model/SplitVideoPartsRequest.cc | 67 +++++++------- videorecog/src/model/SplitVideoPartsResult.cc | 16 ++++ .../model/UnderstandVideoContentRequest.cc | 58 ++++++------ 15 files changed, 427 insertions(+), 463 deletions(-) diff --git a/VERSION b/VERSION index b33f1f739..80a975036 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1461 \ No newline at end of file +1.36.1462 \ No newline at end of file diff --git a/videorecog/include/alibabacloud/videorecog/model/DetectVideoShotRequest.h b/videorecog/include/alibabacloud/videorecog/model/DetectVideoShotRequest.h index 0f047a16b..b53f68a8a 100644 --- a/videorecog/include/alibabacloud/videorecog/model/DetectVideoShotRequest.h +++ b/videorecog/include/alibabacloud/videorecog/model/DetectVideoShotRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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 ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_ -#define ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Videorecog - { - namespace Model - { - class ALIBABACLOUD_VIDEORECOG_EXPORT DetectVideoShotRequest : public RpcServiceRequest - { - - public: - DetectVideoShotRequest(); - ~DetectVideoShotRequest(); - - bool getAsync()const; - void setAsync(bool async); - std::string getVideoUrl()const; - void setVideoUrl(const std::string& videoUrl); - - private: - bool async_; - std::string videoUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_ +#define ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Videorecog { +namespace Model { +class ALIBABACLOUD_VIDEORECOG_EXPORT DetectVideoShotRequest : public RpcServiceRequest { +public: + DetectVideoShotRequest(); + ~DetectVideoShotRequest(); + bool getAsync() const; + void setAsync(bool async); + std::string getVideoUrl() const; + void setVideoUrl(const std::string &videoUrl); + +private: + bool async_; + std::string videoUrl_; +}; +} // namespace Model +} // namespace Videorecog +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_ diff --git a/videorecog/include/alibabacloud/videorecog/model/GenerateVideoCoverRequest.h b/videorecog/include/alibabacloud/videorecog/model/GenerateVideoCoverRequest.h index dae4476e0..ba7732aaa 100644 --- a/videorecog/include/alibabacloud/videorecog/model/GenerateVideoCoverRequest.h +++ b/videorecog/include/alibabacloud/videorecog/model/GenerateVideoCoverRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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 ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_ -#define ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Videorecog - { - namespace Model - { - class ALIBABACLOUD_VIDEORECOG_EXPORT GenerateVideoCoverRequest : public RpcServiceRequest - { - - public: - GenerateVideoCoverRequest(); - ~GenerateVideoCoverRequest(); - - bool getIsGif()const; - void setIsGif(bool isGif); - bool getAsync()const; - void setAsync(bool async); - std::string getVideoUrl()const; - void setVideoUrl(const std::string& videoUrl); - - private: - bool isGif_; - bool async_; - std::string videoUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_ +#define ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Videorecog { +namespace Model { +class ALIBABACLOUD_VIDEORECOG_EXPORT GenerateVideoCoverRequest : public RpcServiceRequest { +public: + GenerateVideoCoverRequest(); + ~GenerateVideoCoverRequest(); + bool getIsGif() const; + void setIsGif(bool isGif); + bool getAsync() const; + void setAsync(bool async); + std::string getVideoUrl() const; + void setVideoUrl(const std::string &videoUrl); + +private: + bool isGif_; + bool async_; + std::string videoUrl_; +}; +} // namespace Model +} // namespace Videorecog +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_ diff --git a/videorecog/include/alibabacloud/videorecog/model/GetAsyncJobResultRequest.h b/videorecog/include/alibabacloud/videorecog/model/GetAsyncJobResultRequest.h index 527c36dfc..4737d24c3 100644 --- a/videorecog/include/alibabacloud/videorecog/model/GetAsyncJobResultRequest.h +++ b/videorecog/include/alibabacloud/videorecog/model/GetAsyncJobResultRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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 ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Videorecog - { - namespace Model - { - class ALIBABACLOUD_VIDEORECOG_EXPORT GetAsyncJobResultRequest : public RpcServiceRequest - { - - public: - GetAsyncJobResultRequest(); - ~GetAsyncJobResultRequest(); - - std::string getJobId()const; - void setJobId(const std::string& jobId); - bool getAsync()const; - void setAsync(bool async); - - private: - std::string jobId_; - bool async_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Videorecog { +namespace Model { +class ALIBABACLOUD_VIDEORECOG_EXPORT GetAsyncJobResultRequest : public RpcServiceRequest { +public: + GetAsyncJobResultRequest(); + ~GetAsyncJobResultRequest(); + std::string getJobId() const; + void setJobId(const std::string &jobId); + bool getAsync() const; + void setAsync(bool async); + +private: + std::string jobId_; + bool async_; +}; +} // namespace Model +} // namespace Videorecog +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_ diff --git a/videorecog/include/alibabacloud/videorecog/model/RecognizeVideoCastCrewListRequest.h b/videorecog/include/alibabacloud/videorecog/model/RecognizeVideoCastCrewListRequest.h index 1db7c6f7a..aa5f22979 100644 --- a/videorecog/include/alibabacloud/videorecog/model/RecognizeVideoCastCrewListRequest.h +++ b/videorecog/include/alibabacloud/videorecog/model/RecognizeVideoCastCrewListRequest.h @@ -1,57 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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 ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_ -#define ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Videorecog - { - namespace Model - { - class ALIBABACLOUD_VIDEORECOG_EXPORT RecognizeVideoCastCrewListRequest : public RpcServiceRequest - { - - public: - RecognizeVideoCastCrewListRequest(); - ~RecognizeVideoCastCrewListRequest(); - - Array getParams()const; - void setParams(const Array& params); - bool getAsync()const; - void setAsync(bool async); - std::string getRegisterUrl()const; - void setRegisterUrl(const std::string& registerUrl); - std::string getVideoUrl()const; - void setVideoUrl(const std::string& videoUrl); - - private: - Array params_; - bool async_; - std::string registerUrl_; - std::string videoUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_ +#define ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Videorecog { +namespace Model { +class ALIBABACLOUD_VIDEORECOG_EXPORT RecognizeVideoCastCrewListRequest : public RpcServiceRequest { +public: + struct Params { + std::string type; + }; + RecognizeVideoCastCrewListRequest(); + ~RecognizeVideoCastCrewListRequest(); + std::vector getParams() const; + void setParams(const std::vector ¶ms); + bool getAsync() const; + void setAsync(bool async); + std::string getRegisterUrl() const; + void setRegisterUrl(const std::string ®isterUrl); + std::string getVideoUrl() const; + void setVideoUrl(const std::string &videoUrl); + +private: + std::vector params_; + bool async_; + std::string registerUrl_; + std::string videoUrl_; +}; +} // namespace Model +} // namespace Videorecog +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_ diff --git a/videorecog/include/alibabacloud/videorecog/model/SplitVideoPartsRequest.h b/videorecog/include/alibabacloud/videorecog/model/SplitVideoPartsRequest.h index 7de20d7a2..57a0e6c72 100644 --- a/videorecog/include/alibabacloud/videorecog/model/SplitVideoPartsRequest.h +++ b/videorecog/include/alibabacloud/videorecog/model/SplitVideoPartsRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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 ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_ -#define ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Videorecog - { - namespace Model - { - class ALIBABACLOUD_VIDEORECOG_EXPORT SplitVideoPartsRequest : public RpcServiceRequest - { - - public: - SplitVideoPartsRequest(); - ~SplitVideoPartsRequest(); - - bool getAsync()const; - void setAsync(bool async); - std::string getVideoUrl()const; - void setVideoUrl(const std::string& videoUrl); - - private: - bool async_; - std::string videoUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_ +#define ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Videorecog { +namespace Model { +class ALIBABACLOUD_VIDEORECOG_EXPORT SplitVideoPartsRequest : public RpcServiceRequest { +public: + SplitVideoPartsRequest(); + ~SplitVideoPartsRequest(); + std::string get_Template() const; + void set_Template(const std::string &_template); + bool getAsync() const; + void setAsync(bool async); + std::string getVideoUrl() const; + void setVideoUrl(const std::string &videoUrl); + +private: + std::string _template_; + bool async_; + std::string videoUrl_; +}; +} // namespace Model +} // namespace Videorecog +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_ diff --git a/videorecog/include/alibabacloud/videorecog/model/SplitVideoPartsResult.h b/videorecog/include/alibabacloud/videorecog/model/SplitVideoPartsResult.h index 956e5c4e4..522164419 100644 --- a/videorecog/include/alibabacloud/videorecog/model/SplitVideoPartsResult.h +++ b/videorecog/include/alibabacloud/videorecog/model/SplitVideoPartsResult.h @@ -40,6 +40,15 @@ namespace AlibabaCloud float beginTime; long index; }; + struct SplitVideoPartResultsItem + { + std::string type; + float endTime; + std::string by; + float beginTime; + std::string theme; + }; + std::vector splitVideoPartResults; std::vector elements; }; diff --git a/videorecog/include/alibabacloud/videorecog/model/UnderstandVideoContentRequest.h b/videorecog/include/alibabacloud/videorecog/model/UnderstandVideoContentRequest.h index f566e6a33..6c07ab079 100644 --- a/videorecog/include/alibabacloud/videorecog/model/UnderstandVideoContentRequest.h +++ b/videorecog/include/alibabacloud/videorecog/model/UnderstandVideoContentRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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 ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_ -#define ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Videorecog - { - namespace Model - { - class ALIBABACLOUD_VIDEORECOG_EXPORT UnderstandVideoContentRequest : public RpcServiceRequest - { - - public: - UnderstandVideoContentRequest(); - ~UnderstandVideoContentRequest(); - - bool getAsync()const; - void setAsync(bool async); - std::string getVideoURL()const; - void setVideoURL(const std::string& videoURL); - - private: - bool async_; - std::string videoURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_ +#define ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Videorecog { +namespace Model { +class ALIBABACLOUD_VIDEORECOG_EXPORT UnderstandVideoContentRequest : public RpcServiceRequest { +public: + UnderstandVideoContentRequest(); + ~UnderstandVideoContentRequest(); + bool getAsync() const; + void setAsync(bool async); + std::string getVideoURL() const; + void setVideoURL(const std::string &videoURL); + +private: + bool async_; + std::string videoURL_; +}; +} // namespace Model +} // namespace Videorecog +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_ diff --git a/videorecog/src/model/DetectVideoShotRequest.cc b/videorecog/src/model/DetectVideoShotRequest.cc index c43413413..84422255b 100644 --- a/videorecog/src/model/DetectVideoShotRequest.cc +++ b/videorecog/src/model/DetectVideoShotRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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. - */ - -#include - -using AlibabaCloud::Videorecog::Model::DetectVideoShotRequest; - -DetectVideoShotRequest::DetectVideoShotRequest() : - RpcServiceRequest("videorecog", "2020-03-20", "DetectVideoShot") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectVideoShotRequest::~DetectVideoShotRequest() -{} - -bool DetectVideoShotRequest::getAsync()const -{ - return async_; + */ + +#include + +using AlibabaCloud::Videorecog::Model::DetectVideoShotRequest; + +DetectVideoShotRequest::DetectVideoShotRequest() + : RpcServiceRequest("videorecog", "2020-03-20", "DetectVideoShot") { + setMethod(HttpRequest::Method::Post); } -void DetectVideoShotRequest::setAsync(bool async) -{ - async_ = async; - setBodyParameter("Async", async ? "true" : "false"); +DetectVideoShotRequest::~DetectVideoShotRequest() {} + +bool DetectVideoShotRequest::getAsync() const { + return async_; } -std::string DetectVideoShotRequest::getVideoUrl()const -{ - return videoUrl_; +void DetectVideoShotRequest::setAsync(bool async) { + async_ = async; + setBodyParameter(std::string("Async"), async ? "true" : "false"); } -void DetectVideoShotRequest::setVideoUrl(const std::string& videoUrl) -{ - videoUrl_ = videoUrl; - setBodyParameter("VideoUrl", videoUrl); +std::string DetectVideoShotRequest::getVideoUrl() const { + return videoUrl_; +} + +void DetectVideoShotRequest::setVideoUrl(const std::string &videoUrl) { + videoUrl_ = videoUrl; + setBodyParameter(std::string("VideoUrl"), videoUrl); } diff --git a/videorecog/src/model/GenerateVideoCoverRequest.cc b/videorecog/src/model/GenerateVideoCoverRequest.cc index adb099b2e..c8f438807 100644 --- a/videorecog/src/model/GenerateVideoCoverRequest.cc +++ b/videorecog/src/model/GenerateVideoCoverRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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. - */ - -#include - -using AlibabaCloud::Videorecog::Model::GenerateVideoCoverRequest; - -GenerateVideoCoverRequest::GenerateVideoCoverRequest() : - RpcServiceRequest("videorecog", "2020-03-20", "GenerateVideoCover") -{ - setMethod(HttpRequest::Method::Post); -} - -GenerateVideoCoverRequest::~GenerateVideoCoverRequest() -{} - -bool GenerateVideoCoverRequest::getIsGif()const -{ - return isGif_; + */ + +#include + +using AlibabaCloud::Videorecog::Model::GenerateVideoCoverRequest; + +GenerateVideoCoverRequest::GenerateVideoCoverRequest() + : RpcServiceRequest("videorecog", "2020-03-20", "GenerateVideoCover") { + setMethod(HttpRequest::Method::Post); } -void GenerateVideoCoverRequest::setIsGif(bool isGif) -{ - isGif_ = isGif; - setBodyParameter("IsGif", isGif ? "true" : "false"); +GenerateVideoCoverRequest::~GenerateVideoCoverRequest() {} + +bool GenerateVideoCoverRequest::getIsGif() const { + return isGif_; } -bool GenerateVideoCoverRequest::getAsync()const -{ - return async_; +void GenerateVideoCoverRequest::setIsGif(bool isGif) { + isGif_ = isGif; + setBodyParameter(std::string("IsGif"), isGif ? "true" : "false"); } -void GenerateVideoCoverRequest::setAsync(bool async) -{ - async_ = async; - setBodyParameter("Async", async ? "true" : "false"); +bool GenerateVideoCoverRequest::getAsync() const { + return async_; } -std::string GenerateVideoCoverRequest::getVideoUrl()const -{ - return videoUrl_; +void GenerateVideoCoverRequest::setAsync(bool async) { + async_ = async; + setBodyParameter(std::string("Async"), async ? "true" : "false"); } -void GenerateVideoCoverRequest::setVideoUrl(const std::string& videoUrl) -{ - videoUrl_ = videoUrl; - setBodyParameter("VideoUrl", videoUrl); +std::string GenerateVideoCoverRequest::getVideoUrl() const { + return videoUrl_; +} + +void GenerateVideoCoverRequest::setVideoUrl(const std::string &videoUrl) { + videoUrl_ = videoUrl; + setBodyParameter(std::string("VideoUrl"), videoUrl); } diff --git a/videorecog/src/model/GetAsyncJobResultRequest.cc b/videorecog/src/model/GetAsyncJobResultRequest.cc index ab87a73c4..4797d9c5c 100644 --- a/videorecog/src/model/GetAsyncJobResultRequest.cc +++ b/videorecog/src/model/GetAsyncJobResultRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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. - */ - -#include - -using AlibabaCloud::Videorecog::Model::GetAsyncJobResultRequest; - -GetAsyncJobResultRequest::GetAsyncJobResultRequest() : - RpcServiceRequest("videorecog", "2020-03-20", "GetAsyncJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAsyncJobResultRequest::~GetAsyncJobResultRequest() -{} - -std::string GetAsyncJobResultRequest::getJobId()const -{ - return jobId_; + */ + +#include + +using AlibabaCloud::Videorecog::Model::GetAsyncJobResultRequest; + +GetAsyncJobResultRequest::GetAsyncJobResultRequest() + : RpcServiceRequest("videorecog", "2020-03-20", "GetAsyncJobResult") { + setMethod(HttpRequest::Method::Post); } -void GetAsyncJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setBodyParameter("JobId", jobId); +GetAsyncJobResultRequest::~GetAsyncJobResultRequest() {} + +std::string GetAsyncJobResultRequest::getJobId() const { + return jobId_; } -bool GetAsyncJobResultRequest::getAsync()const -{ - return async_; +void GetAsyncJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setBodyParameter(std::string("JobId"), jobId); } -void GetAsyncJobResultRequest::setAsync(bool async) -{ - async_ = async; - setBodyParameter("Async", async ? "true" : "false"); +bool GetAsyncJobResultRequest::getAsync() const { + return async_; +} + +void GetAsyncJobResultRequest::setAsync(bool async) { + async_ = async; + setBodyParameter(std::string("Async"), async ? "true" : "false"); } diff --git a/videorecog/src/model/RecognizeVideoCastCrewListRequest.cc b/videorecog/src/model/RecognizeVideoCastCrewListRequest.cc index 65d4fb13f..ea47749c3 100644 --- a/videorecog/src/model/RecognizeVideoCastCrewListRequest.cc +++ b/videorecog/src/model/RecognizeVideoCastCrewListRequest.cc @@ -1,73 +1,65 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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. - */ - -#include - -using AlibabaCloud::Videorecog::Model::RecognizeVideoCastCrewListRequest; - -RecognizeVideoCastCrewListRequest::RecognizeVideoCastCrewListRequest() : - RpcServiceRequest("videorecog", "2020-03-20", "RecognizeVideoCastCrewList") -{ - setMethod(HttpRequest::Method::Post); -} - -RecognizeVideoCastCrewListRequest::~RecognizeVideoCastCrewListRequest() -{} - -Array RecognizeVideoCastCrewListRequest::getParams()const -{ - return params_; + */ + +#include + +using AlibabaCloud::Videorecog::Model::RecognizeVideoCastCrewListRequest; + +RecognizeVideoCastCrewListRequest::RecognizeVideoCastCrewListRequest() + : RpcServiceRequest("videorecog", "2020-03-20", "RecognizeVideoCastCrewList") { + setMethod(HttpRequest::Method::Post); } -void RecognizeVideoCastCrewListRequest::setParams(const Array& params) -{ - params_ = params; - setBodyParameter("Params", std::to_string(params)); +RecognizeVideoCastCrewListRequest::~RecognizeVideoCastCrewListRequest() {} + +std::vector RecognizeVideoCastCrewListRequest::getParams() const { + return params_; } -bool RecognizeVideoCastCrewListRequest::getAsync()const -{ - return async_; +void RecognizeVideoCastCrewListRequest::setParams(const std::vector ¶ms) { + params_ = params; + for(int dep1 = 0; dep1 != params.size(); dep1++) { + setBodyParameter(std::string("Params") + "." + std::to_string(dep1 + 1) + ".Type", params[dep1].type); + } } -void RecognizeVideoCastCrewListRequest::setAsync(bool async) -{ - async_ = async; - setBodyParameter("Async", async ? "true" : "false"); +bool RecognizeVideoCastCrewListRequest::getAsync() const { + return async_; } -std::string RecognizeVideoCastCrewListRequest::getRegisterUrl()const -{ - return registerUrl_; +void RecognizeVideoCastCrewListRequest::setAsync(bool async) { + async_ = async; + setBodyParameter(std::string("Async"), async ? "true" : "false"); } -void RecognizeVideoCastCrewListRequest::setRegisterUrl(const std::string& registerUrl) -{ - registerUrl_ = registerUrl; - setBodyParameter("RegisterUrl", registerUrl); +std::string RecognizeVideoCastCrewListRequest::getRegisterUrl() const { + return registerUrl_; } -std::string RecognizeVideoCastCrewListRequest::getVideoUrl()const -{ - return videoUrl_; +void RecognizeVideoCastCrewListRequest::setRegisterUrl(const std::string ®isterUrl) { + registerUrl_ = registerUrl; + setBodyParameter(std::string("RegisterUrl"), registerUrl); } -void RecognizeVideoCastCrewListRequest::setVideoUrl(const std::string& videoUrl) -{ - videoUrl_ = videoUrl; - setBodyParameter("VideoUrl", videoUrl); +std::string RecognizeVideoCastCrewListRequest::getVideoUrl() const { + return videoUrl_; +} + +void RecognizeVideoCastCrewListRequest::setVideoUrl(const std::string &videoUrl) { + videoUrl_ = videoUrl; + setBodyParameter(std::string("VideoUrl"), videoUrl); } diff --git a/videorecog/src/model/SplitVideoPartsRequest.cc b/videorecog/src/model/SplitVideoPartsRequest.cc index 1c8176f4b..72b787fdf 100644 --- a/videorecog/src/model/SplitVideoPartsRequest.cc +++ b/videorecog/src/model/SplitVideoPartsRequest.cc @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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. - */ - -#include - -using AlibabaCloud::Videorecog::Model::SplitVideoPartsRequest; - -SplitVideoPartsRequest::SplitVideoPartsRequest() : - RpcServiceRequest("videorecog", "2020-03-20", "SplitVideoParts") -{ - setMethod(HttpRequest::Method::Post); -} - -SplitVideoPartsRequest::~SplitVideoPartsRequest() -{} - -bool SplitVideoPartsRequest::getAsync()const -{ - return async_; + */ + +#include + +using AlibabaCloud::Videorecog::Model::SplitVideoPartsRequest; + +SplitVideoPartsRequest::SplitVideoPartsRequest() + : RpcServiceRequest("videorecog", "2020-03-20", "SplitVideoParts") { + setMethod(HttpRequest::Method::Post); } -void SplitVideoPartsRequest::setAsync(bool async) -{ - async_ = async; - setBodyParameter("Async", async ? "true" : "false"); +SplitVideoPartsRequest::~SplitVideoPartsRequest() {} + +std::string SplitVideoPartsRequest::get_Template() const { + return _template_; } -std::string SplitVideoPartsRequest::getVideoUrl()const -{ - return videoUrl_; +void SplitVideoPartsRequest::set_Template(const std::string &_template) { + _template_ = _template; + setBodyParameter(std::string("Template"), _template); } -void SplitVideoPartsRequest::setVideoUrl(const std::string& videoUrl) -{ - videoUrl_ = videoUrl; - setBodyParameter("VideoUrl", videoUrl); +bool SplitVideoPartsRequest::getAsync() const { + return async_; +} + +void SplitVideoPartsRequest::setAsync(bool async) { + async_ = async; + setBodyParameter(std::string("Async"), async ? "true" : "false"); +} + +std::string SplitVideoPartsRequest::getVideoUrl() const { + return videoUrl_; +} + +void SplitVideoPartsRequest::setVideoUrl(const std::string &videoUrl) { + videoUrl_ = videoUrl; + setBodyParameter(std::string("VideoUrl"), videoUrl); } diff --git a/videorecog/src/model/SplitVideoPartsResult.cc b/videorecog/src/model/SplitVideoPartsResult.cc index 3b4b26e77..2974caf5a 100644 --- a/videorecog/src/model/SplitVideoPartsResult.cc +++ b/videorecog/src/model/SplitVideoPartsResult.cc @@ -52,6 +52,22 @@ void SplitVideoPartsResult::parse(const std::string &payload) elementsItemObject.index = std::stol(dataNodeElementselementsItem["Index"].asString()); data_.elements.push_back(elementsItemObject); } + auto allSplitVideoPartResultsNode = dataNode["SplitVideoPartResults"]["splitVideoPartResultsItem"]; + for (auto dataNodeSplitVideoPartResultssplitVideoPartResultsItem : allSplitVideoPartResultsNode) + { + Data::SplitVideoPartResultsItem splitVideoPartResultsItemObject; + if(!dataNodeSplitVideoPartResultssplitVideoPartResultsItem["BeginTime"].isNull()) + splitVideoPartResultsItemObject.beginTime = std::stof(dataNodeSplitVideoPartResultssplitVideoPartResultsItem["BeginTime"].asString()); + if(!dataNodeSplitVideoPartResultssplitVideoPartResultsItem["EndTime"].isNull()) + splitVideoPartResultsItemObject.endTime = std::stof(dataNodeSplitVideoPartResultssplitVideoPartResultsItem["EndTime"].asString()); + if(!dataNodeSplitVideoPartResultssplitVideoPartResultsItem["Theme"].isNull()) + splitVideoPartResultsItemObject.theme = dataNodeSplitVideoPartResultssplitVideoPartResultsItem["Theme"].asString(); + if(!dataNodeSplitVideoPartResultssplitVideoPartResultsItem["Type"].isNull()) + splitVideoPartResultsItemObject.type = dataNodeSplitVideoPartResultssplitVideoPartResultsItem["Type"].asString(); + if(!dataNodeSplitVideoPartResultssplitVideoPartResultsItem["By"].isNull()) + splitVideoPartResultsItemObject.by = dataNodeSplitVideoPartResultssplitVideoPartResultsItem["By"].asString(); + data_.splitVideoPartResults.push_back(splitVideoPartResultsItemObject); + } if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) diff --git a/videorecog/src/model/UnderstandVideoContentRequest.cc b/videorecog/src/model/UnderstandVideoContentRequest.cc index ef4741ddb..30e17e525 100644 --- a/videorecog/src/model/UnderstandVideoContentRequest.cc +++ b/videorecog/src/model/UnderstandVideoContentRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License 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. - */ - -#include - -using AlibabaCloud::Videorecog::Model::UnderstandVideoContentRequest; - -UnderstandVideoContentRequest::UnderstandVideoContentRequest() : - RpcServiceRequest("videorecog", "2020-03-20", "UnderstandVideoContent") -{ - setMethod(HttpRequest::Method::Post); -} - -UnderstandVideoContentRequest::~UnderstandVideoContentRequest() -{} - -bool UnderstandVideoContentRequest::getAsync()const -{ - return async_; + */ + +#include + +using AlibabaCloud::Videorecog::Model::UnderstandVideoContentRequest; + +UnderstandVideoContentRequest::UnderstandVideoContentRequest() + : RpcServiceRequest("videorecog", "2020-03-20", "UnderstandVideoContent") { + setMethod(HttpRequest::Method::Post); } -void UnderstandVideoContentRequest::setAsync(bool async) -{ - async_ = async; - setBodyParameter("Async", async ? "true" : "false"); +UnderstandVideoContentRequest::~UnderstandVideoContentRequest() {} + +bool UnderstandVideoContentRequest::getAsync() const { + return async_; } -std::string UnderstandVideoContentRequest::getVideoURL()const -{ - return videoURL_; +void UnderstandVideoContentRequest::setAsync(bool async) { + async_ = async; + setBodyParameter(std::string("Async"), async ? "true" : "false"); } -void UnderstandVideoContentRequest::setVideoURL(const std::string& videoURL) -{ - videoURL_ = videoURL; - setBodyParameter("VideoURL", videoURL); +std::string UnderstandVideoContentRequest::getVideoURL() const { + return videoURL_; +} + +void UnderstandVideoContentRequest::setVideoURL(const std::string &videoURL) { + videoURL_ = videoURL; + setBodyParameter(std::string("VideoURL"), videoURL); }