Browse Source

Update RecognizeVideoCastCrewList.

sdk-team 3 years ago
parent
commit
a1bc2cb5af

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1297
+1.36.1298

+ 40 - 34
videorecog/include/alibabacloud/videorecog/model/DetectVideoShotRequest.h

@@ -1,45 +1,51 @@
 /*
  * 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 <alibabacloud/videorecog/VideorecogExport.h>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <string>
-#include <vector>
-#include <map>
-
-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_
+ */
+
+#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_
+#define ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/videorecog/VideorecogExport.h>
+
+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_

+ 4 - 0
videorecog/include/alibabacloud/videorecog/model/DetectVideoShotResult.h

@@ -41,12 +41,16 @@ namespace AlibabaCloud
 				DetectVideoShotResult();
 				explicit DetectVideoShotResult(const std::string &payload);
 				~DetectVideoShotResult();
+				std::string getMessage()const;
 				Data getData()const;
+				std::string getCode()const;
 
 			protected:
 				void parse(const std::string &payload);
 			private:
+				std::string message_;
 				Data data_;
+				std::string code_;
 
 			};
 		}

+ 43 - 37
videorecog/include/alibabacloud/videorecog/model/GenerateVideoCoverRequest.h

@@ -1,48 +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_GENERATEVIDEOCOVERREQUEST_H_
-#define ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_
-
-#include <alibabacloud/videorecog/VideorecogExport.h>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <string>
-#include <vector>
-#include <map>
-
-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_
+ */
+
+#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_
+#define ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/videorecog/VideorecogExport.h>
+
+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_

+ 4 - 0
videorecog/include/alibabacloud/videorecog/model/GenerateVideoCoverResult.h

@@ -46,12 +46,16 @@ namespace AlibabaCloud
 				GenerateVideoCoverResult();
 				explicit GenerateVideoCoverResult(const std::string &payload);
 				~GenerateVideoCoverResult();
+				std::string getMessage()const;
 				Data getData()const;
+				std::string getCode()const;
 
 			protected:
 				void parse(const std::string &payload);
 			private:
+				std::string message_;
 				Data data_;
+				std::string code_;
 
 			};
 		}

+ 40 - 34
videorecog/include/alibabacloud/videorecog/model/GetAsyncJobResultRequest.h

@@ -1,45 +1,51 @@
 /*
  * 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 <alibabacloud/videorecog/VideorecogExport.h>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <string>
-#include <vector>
-#include <map>
-
-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_
+ */
+
+#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_
+#define ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/videorecog/VideorecogExport.h>
+
+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_

+ 46 - 43
videorecog/include/alibabacloud/videorecog/model/RecognizeVideoCastCrewListRequest.h

@@ -1,54 +1,57 @@
 /*
  * 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 <alibabacloud/videorecog/VideorecogExport.h>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <string>
-#include <vector>
-#include <map>
-
-namespace AlibabaCloud {
-namespace Videorecog {
-namespace Model {
-class ALIBABACLOUD_VIDEORECOG_EXPORT RecognizeVideoCastCrewListRequest : public RpcServiceRequest {
-public:
-	struct Params {
-		std::string type;
-	};
-	RecognizeVideoCastCrewListRequest();
-	~RecognizeVideoCastCrewListRequest();
-	std::vector<Params> getParams() const;
-	void setParams(const std::vector<Params> &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:
-	std::vector<Params> params_;
-	bool async_;
-	std::string registerUrl_;
-	std::string videoUrl_;
-};
-} // namespace Model
-} // namespace Videorecog
-} // namespace AlibabaCloud
-#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_
+#define ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/videorecog/VideorecogExport.h>
+
+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_

+ 40 - 34
videorecog/include/alibabacloud/videorecog/model/SplitVideoPartsRequest.h

@@ -1,45 +1,51 @@
 /*
  * 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 <alibabacloud/videorecog/VideorecogExport.h>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <string>
-#include <vector>
-#include <map>
-
-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_;
-};
-} // namespace Model
-} // namespace Videorecog
-} // namespace AlibabaCloud
-#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_
+#define ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/videorecog/VideorecogExport.h>
+
+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_

+ 40 - 34
videorecog/include/alibabacloud/videorecog/model/UnderstandVideoContentRequest.h

@@ -1,45 +1,51 @@
 /*
  * 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 <alibabacloud/videorecog/VideorecogExport.h>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <string>
-#include <vector>
-#include <map>
-
-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_
+ */
+
+#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_
+#define ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/videorecog/VideorecogExport.h>
+
+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_

+ 32 - 26
videorecog/src/model/DetectVideoShotRequest.cc

@@ -1,45 +1,51 @@
 /*
  * 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 <alibabacloud/videorecog/model/DetectVideoShotRequest.h>
-
-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 <alibabacloud/videorecog/model/DetectVideoShotRequest.h>
+
+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_;
 }
 
-void DetectVideoShotRequest::setAsync(bool async) {
-  async_ = async;
-  setBodyParameter(std::string("Async"), async ? "true" : "false");
+void DetectVideoShotRequest::setAsync(bool async)
+{
+	async_ = async;
+	setBodyParameter("Async", async ? "true" : "false");
 }
 
-std::string DetectVideoShotRequest::getVideoUrl() const {
-  return videoUrl_;
+std::string DetectVideoShotRequest::getVideoUrl()const
+{
+	return videoUrl_;
 }
 
-void DetectVideoShotRequest::setVideoUrl(const std::string &videoUrl) {
-  videoUrl_ = videoUrl;
-  setBodyParameter(std::string("VideoUrl"), videoUrl);
+void DetectVideoShotRequest::setVideoUrl(const std::string& videoUrl)
+{
+	videoUrl_ = videoUrl;
+	setBodyParameter("VideoUrl", videoUrl);
 }
 

+ 14 - 0
videorecog/src/model/DetectVideoShotResult.cc

@@ -43,11 +43,25 @@ void DetectVideoShotResult::parse(const std::string &payload)
 		auto allShotFrameIds = dataNode["ShotFrameIds"]["ShotFrameId"];
 		for (auto value : allShotFrameIds)
 			data_.shotFrameIds.push_back(value.asString());
+	if(!value["Message"].isNull())
+		message_ = value["Message"].asString();
+	if(!value["Code"].isNull())
+		code_ = value["Code"].asString();
 
 }
 
+std::string DetectVideoShotResult::getMessage()const
+{
+	return message_;
+}
+
 DetectVideoShotResult::Data DetectVideoShotResult::getData()const
 {
 	return data_;
 }
 
+std::string DetectVideoShotResult::getCode()const
+{
+	return code_;
+}
+

+ 39 - 31
videorecog/src/model/GenerateVideoCoverRequest.cc

@@ -1,54 +1,62 @@
 /*
  * 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 <alibabacloud/videorecog/model/GenerateVideoCoverRequest.h>
-
-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 <alibabacloud/videorecog/model/GenerateVideoCoverRequest.h>
+
+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_;
 }
 
-void GenerateVideoCoverRequest::setIsGif(bool isGif) {
-  isGif_ = isGif;
-  setBodyParameter(std::string("IsGif"), isGif ? "true" : "false");
+void GenerateVideoCoverRequest::setIsGif(bool isGif)
+{
+	isGif_ = isGif;
+	setBodyParameter("IsGif", isGif ? "true" : "false");
 }
 
-bool GenerateVideoCoverRequest::getAsync() const {
-  return async_;
+bool GenerateVideoCoverRequest::getAsync()const
+{
+	return async_;
 }
 
-void GenerateVideoCoverRequest::setAsync(bool async) {
-  async_ = async;
-  setBodyParameter(std::string("Async"), async ? "true" : "false");
+void GenerateVideoCoverRequest::setAsync(bool async)
+{
+	async_ = async;
+	setBodyParameter("Async", async ? "true" : "false");
 }
 
-std::string GenerateVideoCoverRequest::getVideoUrl() const {
-  return videoUrl_;
+std::string GenerateVideoCoverRequest::getVideoUrl()const
+{
+	return videoUrl_;
 }
 
-void GenerateVideoCoverRequest::setVideoUrl(const std::string &videoUrl) {
-  videoUrl_ = videoUrl;
-  setBodyParameter(std::string("VideoUrl"), videoUrl);
+void GenerateVideoCoverRequest::setVideoUrl(const std::string& videoUrl)
+{
+	videoUrl_ = videoUrl;
+	setBodyParameter("VideoUrl", videoUrl);
 }
 

+ 14 - 0
videorecog/src/model/GenerateVideoCoverResult.cc

@@ -50,11 +50,25 @@ void GenerateVideoCoverResult::parse(const std::string &payload)
 			outputObject.confidence = std::stof(dataNodeOutputsOutput["Confidence"].asString());
 		data_.outputs.push_back(outputObject);
 	}
+	if(!value["Message"].isNull())
+		message_ = value["Message"].asString();
+	if(!value["Code"].isNull())
+		code_ = value["Code"].asString();
 
 }
 
+std::string GenerateVideoCoverResult::getMessage()const
+{
+	return message_;
+}
+
 GenerateVideoCoverResult::Data GenerateVideoCoverResult::getData()const
 {
 	return data_;
 }
 
+std::string GenerateVideoCoverResult::getCode()const
+{
+	return code_;
+}
+

+ 32 - 26
videorecog/src/model/GetAsyncJobResultRequest.cc

@@ -1,45 +1,51 @@
 /*
  * 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 <alibabacloud/videorecog/model/GetAsyncJobResultRequest.h>
-
-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 <alibabacloud/videorecog/model/GetAsyncJobResultRequest.h>
+
+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_;
 }
 
-void GetAsyncJobResultRequest::setJobId(const std::string &jobId) {
-  jobId_ = jobId;
-  setBodyParameter(std::string("JobId"), jobId);
+void GetAsyncJobResultRequest::setJobId(const std::string& jobId)
+{
+	jobId_ = jobId;
+	setBodyParameter("JobId", jobId);
 }
 
-bool GetAsyncJobResultRequest::getAsync() const {
-  return async_;
+bool GetAsyncJobResultRequest::getAsync()const
+{
+	return async_;
 }
 
-void GetAsyncJobResultRequest::setAsync(bool async) {
-  async_ = async;
-  setBodyParameter(std::string("Async"), async ? "true" : "false");
+void GetAsyncJobResultRequest::setAsync(bool async)
+{
+	async_ = async;
+	setBodyParameter("Async", async ? "true" : "false");
 }
 

+ 46 - 38
videorecog/src/model/RecognizeVideoCastCrewListRequest.cc

@@ -1,65 +1,73 @@
 /*
  * 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 <alibabacloud/videorecog/model/RecognizeVideoCastCrewListRequest.h>
-
-using AlibabaCloud::Videorecog::Model::RecognizeVideoCastCrewListRequest;
-
-RecognizeVideoCastCrewListRequest::RecognizeVideoCastCrewListRequest()
-    : RpcServiceRequest("videorecog", "2020-03-20", "RecognizeVideoCastCrewList") {
-  setMethod(HttpRequest::Method::Post);
-}
-
-RecognizeVideoCastCrewListRequest::~RecognizeVideoCastCrewListRequest() {}
-
-std::vector<RecognizeVideoCastCrewListRequest::Params> RecognizeVideoCastCrewListRequest::getParams() const {
-  return params_;
+ */
+
+#include <alibabacloud/videorecog/model/RecognizeVideoCastCrewListRequest.h>
+
+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_;
 }
 
-void RecognizeVideoCastCrewListRequest::setParams(const std::vector<RecognizeVideoCastCrewListRequest::Params> &params) {
-  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::setParams(const Array& params)
+{
+	params_ = params;
+	setBodyParameter("Params", std::to_string(params));
 }
 
-bool RecognizeVideoCastCrewListRequest::getAsync() const {
-  return async_;
+bool RecognizeVideoCastCrewListRequest::getAsync()const
+{
+	return async_;
 }
 
-void RecognizeVideoCastCrewListRequest::setAsync(bool async) {
-  async_ = async;
-  setBodyParameter(std::string("Async"), async ? "true" : "false");
+void RecognizeVideoCastCrewListRequest::setAsync(bool async)
+{
+	async_ = async;
+	setBodyParameter("Async", async ? "true" : "false");
 }
 
-std::string RecognizeVideoCastCrewListRequest::getRegisterUrl() const {
-  return registerUrl_;
+std::string RecognizeVideoCastCrewListRequest::getRegisterUrl()const
+{
+	return registerUrl_;
 }
 
-void RecognizeVideoCastCrewListRequest::setRegisterUrl(const std::string &registerUrl) {
-  registerUrl_ = registerUrl;
-  setBodyParameter(std::string("RegisterUrl"), registerUrl);
+void RecognizeVideoCastCrewListRequest::setRegisterUrl(const std::string& registerUrl)
+{
+	registerUrl_ = registerUrl;
+	setBodyParameter("RegisterUrl", registerUrl);
 }
 
-std::string RecognizeVideoCastCrewListRequest::getVideoUrl() const {
-  return videoUrl_;
+std::string RecognizeVideoCastCrewListRequest::getVideoUrl()const
+{
+	return videoUrl_;
 }
 
-void RecognizeVideoCastCrewListRequest::setVideoUrl(const std::string &videoUrl) {
-  videoUrl_ = videoUrl;
-  setBodyParameter(std::string("VideoUrl"), videoUrl);
+void RecognizeVideoCastCrewListRequest::setVideoUrl(const std::string& videoUrl)
+{
+	videoUrl_ = videoUrl;
+	setBodyParameter("VideoUrl", videoUrl);
 }
 

+ 32 - 26
videorecog/src/model/SplitVideoPartsRequest.cc

@@ -1,45 +1,51 @@
 /*
  * 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 <alibabacloud/videorecog/model/SplitVideoPartsRequest.h>
-
-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 <alibabacloud/videorecog/model/SplitVideoPartsRequest.h>
+
+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_;
 }
 
-void SplitVideoPartsRequest::setAsync(bool async) {
-  async_ = async;
-  setBodyParameter(std::string("Async"), async ? "true" : "false");
+void SplitVideoPartsRequest::setAsync(bool async)
+{
+	async_ = async;
+	setBodyParameter("Async", async ? "true" : "false");
 }
 
-std::string SplitVideoPartsRequest::getVideoUrl() const {
-  return videoUrl_;
+std::string SplitVideoPartsRequest::getVideoUrl()const
+{
+	return videoUrl_;
 }
 
-void SplitVideoPartsRequest::setVideoUrl(const std::string &videoUrl) {
-  videoUrl_ = videoUrl;
-  setBodyParameter(std::string("VideoUrl"), videoUrl);
+void SplitVideoPartsRequest::setVideoUrl(const std::string& videoUrl)
+{
+	videoUrl_ = videoUrl;
+	setBodyParameter("VideoUrl", videoUrl);
 }
 

+ 32 - 26
videorecog/src/model/UnderstandVideoContentRequest.cc

@@ -1,45 +1,51 @@
 /*
  * 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 <alibabacloud/videorecog/model/UnderstandVideoContentRequest.h>
-
-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 <alibabacloud/videorecog/model/UnderstandVideoContentRequest.h>
+
+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_;
 }
 
-void UnderstandVideoContentRequest::setAsync(bool async) {
-  async_ = async;
-  setBodyParameter(std::string("Async"), async ? "true" : "false");
+void UnderstandVideoContentRequest::setAsync(bool async)
+{
+	async_ = async;
+	setBodyParameter("Async", async ? "true" : "false");
 }
 
-std::string UnderstandVideoContentRequest::getVideoURL() const {
-  return videoURL_;
+std::string UnderstandVideoContentRequest::getVideoURL()const
+{
+	return videoURL_;
 }
 
-void UnderstandVideoContentRequest::setVideoURL(const std::string &videoURL) {
-  videoURL_ = videoURL;
-  setBodyParameter(std::string("VideoURL"), videoURL);
+void UnderstandVideoContentRequest::setVideoURL(const std::string& videoURL)
+{
+	videoURL_ = videoURL;
+	setBodyParameter("VideoURL", videoURL);
 }