Update RecognizeVideoCastCrewList.

This commit is contained in:
sdk-team
2022-10-17 03:50:23 +00:00
parent 57aece2625
commit a1bc2cb5af
17 changed files with 499 additions and 390 deletions

View File

@@ -1 +1 @@
1.36.1297 1.36.1298

View File

@@ -1,45 +1,51 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_ #ifndef ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_
#define ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_ #define ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_
#include <alibabacloud/videorecog/VideorecogExport.h> #include <string>
#include <alibabacloud/core/RpcServiceRequest.h> #include <vector>
#include <string> #include <alibabacloud/core/RpcServiceRequest.h>
#include <vector> #include <alibabacloud/videorecog/VideorecogExport.h>
#include <map>
namespace AlibabaCloud
namespace AlibabaCloud { {
namespace Videorecog { namespace Videorecog
namespace Model { {
class ALIBABACLOUD_VIDEORECOG_EXPORT DetectVideoShotRequest : public RpcServiceRequest { namespace Model
public: {
DetectVideoShotRequest(); class ALIBABACLOUD_VIDEORECOG_EXPORT DetectVideoShotRequest : public RpcServiceRequest
~DetectVideoShotRequest(); {
bool getAsync() const;
void setAsync(bool async); public:
std::string getVideoUrl() const; DetectVideoShotRequest();
void setVideoUrl(const std::string &videoUrl); ~DetectVideoShotRequest();
private: bool getAsync()const;
bool async_; void setAsync(bool async);
std::string videoUrl_; std::string getVideoUrl()const;
}; void setVideoUrl(const std::string& videoUrl);
} // namespace Model
} // namespace Videorecog private:
} // namespace AlibabaCloud bool async_;
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_ std::string videoUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_DETECTVIDEOSHOTREQUEST_H_

View File

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

View File

@@ -1,48 +1,54 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_ #ifndef ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_
#define ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_ #define ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_
#include <alibabacloud/videorecog/VideorecogExport.h> #include <string>
#include <alibabacloud/core/RpcServiceRequest.h> #include <vector>
#include <string> #include <alibabacloud/core/RpcServiceRequest.h>
#include <vector> #include <alibabacloud/videorecog/VideorecogExport.h>
#include <map>
namespace AlibabaCloud
namespace AlibabaCloud { {
namespace Videorecog { namespace Videorecog
namespace Model { {
class ALIBABACLOUD_VIDEORECOG_EXPORT GenerateVideoCoverRequest : public RpcServiceRequest { namespace Model
public: {
GenerateVideoCoverRequest(); class ALIBABACLOUD_VIDEORECOG_EXPORT GenerateVideoCoverRequest : public RpcServiceRequest
~GenerateVideoCoverRequest(); {
bool getIsGif() const;
void setIsGif(bool isGif); public:
bool getAsync() const; GenerateVideoCoverRequest();
void setAsync(bool async); ~GenerateVideoCoverRequest();
std::string getVideoUrl() const;
void setVideoUrl(const std::string &videoUrl); bool getIsGif()const;
void setIsGif(bool isGif);
private: bool getAsync()const;
bool isGif_; void setAsync(bool async);
bool async_; std::string getVideoUrl()const;
std::string videoUrl_; void setVideoUrl(const std::string& videoUrl);
};
} // namespace Model private:
} // namespace Videorecog bool isGif_;
} // namespace AlibabaCloud bool async_;
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_ std::string videoUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_GENERATEVIDEOCOVERREQUEST_H_

View File

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

View File

@@ -1,45 +1,51 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_ #ifndef ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_
#define ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_ #define ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_
#include <alibabacloud/videorecog/VideorecogExport.h> #include <string>
#include <alibabacloud/core/RpcServiceRequest.h> #include <vector>
#include <string> #include <alibabacloud/core/RpcServiceRequest.h>
#include <vector> #include <alibabacloud/videorecog/VideorecogExport.h>
#include <map>
namespace AlibabaCloud
namespace AlibabaCloud { {
namespace Videorecog { namespace Videorecog
namespace Model { {
class ALIBABACLOUD_VIDEORECOG_EXPORT GetAsyncJobResultRequest : public RpcServiceRequest { namespace Model
public: {
GetAsyncJobResultRequest(); class ALIBABACLOUD_VIDEORECOG_EXPORT GetAsyncJobResultRequest : public RpcServiceRequest
~GetAsyncJobResultRequest(); {
std::string getJobId() const;
void setJobId(const std::string &jobId); public:
bool getAsync() const; GetAsyncJobResultRequest();
void setAsync(bool async); ~GetAsyncJobResultRequest();
private: std::string getJobId()const;
std::string jobId_; void setJobId(const std::string& jobId);
bool async_; bool getAsync()const;
}; void setAsync(bool async);
} // namespace Model
} // namespace Videorecog private:
} // namespace AlibabaCloud std::string jobId_;
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_ bool async_;
};
}
}
}
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_GETASYNCJOBRESULTREQUEST_H_

View File

@@ -1,54 +1,57 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_ #ifndef ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_
#define ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_ #define ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_
#include <alibabacloud/videorecog/VideorecogExport.h> #include <string>
#include <alibabacloud/core/RpcServiceRequest.h> #include <vector>
#include <string> #include <alibabacloud/core/RpcServiceRequest.h>
#include <vector> #include <alibabacloud/videorecog/VideorecogExport.h>
#include <map>
namespace AlibabaCloud
namespace AlibabaCloud { {
namespace Videorecog { namespace Videorecog
namespace Model { {
class ALIBABACLOUD_VIDEORECOG_EXPORT RecognizeVideoCastCrewListRequest : public RpcServiceRequest { namespace Model
public: {
struct Params { class ALIBABACLOUD_VIDEORECOG_EXPORT RecognizeVideoCastCrewListRequest : public RpcServiceRequest
std::string type; {
};
RecognizeVideoCastCrewListRequest(); public:
~RecognizeVideoCastCrewListRequest(); RecognizeVideoCastCrewListRequest();
std::vector<Params> getParams() const; ~RecognizeVideoCastCrewListRequest();
void setParams(const std::vector<Params> &params);
bool getAsync() const; Array getParams()const;
void setAsync(bool async); void setParams(const Array& params);
std::string getRegisterUrl() const; bool getAsync()const;
void setRegisterUrl(const std::string &registerUrl); void setAsync(bool async);
std::string getVideoUrl() const; std::string getRegisterUrl()const;
void setVideoUrl(const std::string &videoUrl); void setRegisterUrl(const std::string& registerUrl);
std::string getVideoUrl()const;
private: void setVideoUrl(const std::string& videoUrl);
std::vector<Params> params_;
bool async_; private:
std::string registerUrl_; Array params_;
std::string videoUrl_; bool async_;
}; std::string registerUrl_;
} // namespace Model std::string videoUrl_;
} // namespace Videorecog
} // namespace AlibabaCloud };
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_ }
}
}
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_RECOGNIZEVIDEOCASTCREWLISTREQUEST_H_

View File

@@ -1,45 +1,51 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_ #ifndef ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_
#define ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_ #define ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_
#include <alibabacloud/videorecog/VideorecogExport.h> #include <string>
#include <alibabacloud/core/RpcServiceRequest.h> #include <vector>
#include <string> #include <alibabacloud/core/RpcServiceRequest.h>
#include <vector> #include <alibabacloud/videorecog/VideorecogExport.h>
#include <map>
namespace AlibabaCloud
namespace AlibabaCloud { {
namespace Videorecog { namespace Videorecog
namespace Model { {
class ALIBABACLOUD_VIDEORECOG_EXPORT SplitVideoPartsRequest : public RpcServiceRequest { namespace Model
public: {
SplitVideoPartsRequest(); class ALIBABACLOUD_VIDEORECOG_EXPORT SplitVideoPartsRequest : public RpcServiceRequest
~SplitVideoPartsRequest(); {
bool getAsync() const;
void setAsync(bool async); public:
std::string getVideoUrl() const; SplitVideoPartsRequest();
void setVideoUrl(const std::string &videoUrl); ~SplitVideoPartsRequest();
private: bool getAsync()const;
bool async_; void setAsync(bool async);
std::string videoUrl_; std::string getVideoUrl()const;
}; void setVideoUrl(const std::string& videoUrl);
} // namespace Model
} // namespace Videorecog private:
} // namespace AlibabaCloud bool async_;
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_ std::string videoUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_SPLITVIDEOPARTSREQUEST_H_

View File

@@ -1,45 +1,51 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_ #ifndef ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_
#define ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_ #define ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_
#include <alibabacloud/videorecog/VideorecogExport.h> #include <string>
#include <alibabacloud/core/RpcServiceRequest.h> #include <vector>
#include <string> #include <alibabacloud/core/RpcServiceRequest.h>
#include <vector> #include <alibabacloud/videorecog/VideorecogExport.h>
#include <map>
namespace AlibabaCloud
namespace AlibabaCloud { {
namespace Videorecog { namespace Videorecog
namespace Model { {
class ALIBABACLOUD_VIDEORECOG_EXPORT UnderstandVideoContentRequest : public RpcServiceRequest { namespace Model
public: {
UnderstandVideoContentRequest(); class ALIBABACLOUD_VIDEORECOG_EXPORT UnderstandVideoContentRequest : public RpcServiceRequest
~UnderstandVideoContentRequest(); {
bool getAsync() const;
void setAsync(bool async); public:
std::string getVideoURL() const; UnderstandVideoContentRequest();
void setVideoURL(const std::string &videoURL); ~UnderstandVideoContentRequest();
private: bool getAsync()const;
bool async_; void setAsync(bool async);
std::string videoURL_; std::string getVideoURL()const;
}; void setVideoURL(const std::string& videoURL);
} // namespace Model
} // namespace Videorecog private:
} // namespace AlibabaCloud bool async_;
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_ std::string videoURL_;
};
}
}
}
#endif // !ALIBABACLOUD_VIDEORECOG_MODEL_UNDERSTANDVIDEOCONTENTREQUEST_H_

View File

@@ -1,45 +1,51 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <alibabacloud/videorecog/model/DetectVideoShotRequest.h> #include <alibabacloud/videorecog/model/DetectVideoShotRequest.h>
using AlibabaCloud::Videorecog::Model::DetectVideoShotRequest; using AlibabaCloud::Videorecog::Model::DetectVideoShotRequest;
DetectVideoShotRequest::DetectVideoShotRequest() DetectVideoShotRequest::DetectVideoShotRequest() :
: RpcServiceRequest("videorecog", "2020-03-20", "DetectVideoShot") { RpcServiceRequest("videorecog", "2020-03-20", "DetectVideoShot")
setMethod(HttpRequest::Method::Post); {
setMethod(HttpRequest::Method::Post);
}
DetectVideoShotRequest::~DetectVideoShotRequest()
{}
bool DetectVideoShotRequest::getAsync()const
{
return async_;
} }
DetectVideoShotRequest::~DetectVideoShotRequest() {} void DetectVideoShotRequest::setAsync(bool async)
{
bool DetectVideoShotRequest::getAsync() const { async_ = async;
return async_; setBodyParameter("Async", async ? "true" : "false");
} }
void DetectVideoShotRequest::setAsync(bool async) { std::string DetectVideoShotRequest::getVideoUrl()const
async_ = async; {
setBodyParameter(std::string("Async"), async ? "true" : "false"); return videoUrl_;
} }
std::string DetectVideoShotRequest::getVideoUrl() const { void DetectVideoShotRequest::setVideoUrl(const std::string& videoUrl)
return videoUrl_; {
} videoUrl_ = videoUrl;
setBodyParameter("VideoUrl", videoUrl);
void DetectVideoShotRequest::setVideoUrl(const std::string &videoUrl) {
videoUrl_ = videoUrl;
setBodyParameter(std::string("VideoUrl"), videoUrl);
} }

View File

@@ -43,11 +43,25 @@ void DetectVideoShotResult::parse(const std::string &payload)
auto allShotFrameIds = dataNode["ShotFrameIds"]["ShotFrameId"]; auto allShotFrameIds = dataNode["ShotFrameIds"]["ShotFrameId"];
for (auto value : allShotFrameIds) for (auto value : allShotFrameIds)
data_.shotFrameIds.push_back(value.asString()); 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 DetectVideoShotResult::Data DetectVideoShotResult::getData()const
{ {
return data_; return data_;
} }
std::string DetectVideoShotResult::getCode()const
{
return code_;
}

View File

@@ -1,54 +1,62 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <alibabacloud/videorecog/model/GenerateVideoCoverRequest.h> #include <alibabacloud/videorecog/model/GenerateVideoCoverRequest.h>
using AlibabaCloud::Videorecog::Model::GenerateVideoCoverRequest; using AlibabaCloud::Videorecog::Model::GenerateVideoCoverRequest;
GenerateVideoCoverRequest::GenerateVideoCoverRequest() GenerateVideoCoverRequest::GenerateVideoCoverRequest() :
: RpcServiceRequest("videorecog", "2020-03-20", "GenerateVideoCover") { RpcServiceRequest("videorecog", "2020-03-20", "GenerateVideoCover")
setMethod(HttpRequest::Method::Post); {
setMethod(HttpRequest::Method::Post);
}
GenerateVideoCoverRequest::~GenerateVideoCoverRequest()
{}
bool GenerateVideoCoverRequest::getIsGif()const
{
return isGif_;
} }
GenerateVideoCoverRequest::~GenerateVideoCoverRequest() {} void GenerateVideoCoverRequest::setIsGif(bool isGif)
{
bool GenerateVideoCoverRequest::getIsGif() const { isGif_ = isGif;
return isGif_; setBodyParameter("IsGif", isGif ? "true" : "false");
} }
void GenerateVideoCoverRequest::setIsGif(bool isGif) { bool GenerateVideoCoverRequest::getAsync()const
isGif_ = isGif; {
setBodyParameter(std::string("IsGif"), isGif ? "true" : "false"); return async_;
} }
bool GenerateVideoCoverRequest::getAsync() const { void GenerateVideoCoverRequest::setAsync(bool async)
return async_; {
async_ = async;
setBodyParameter("Async", async ? "true" : "false");
} }
void GenerateVideoCoverRequest::setAsync(bool async) { std::string GenerateVideoCoverRequest::getVideoUrl()const
async_ = async; {
setBodyParameter(std::string("Async"), async ? "true" : "false"); return videoUrl_;
} }
std::string GenerateVideoCoverRequest::getVideoUrl() const { void GenerateVideoCoverRequest::setVideoUrl(const std::string& videoUrl)
return videoUrl_; {
} videoUrl_ = videoUrl;
setBodyParameter("VideoUrl", videoUrl);
void GenerateVideoCoverRequest::setVideoUrl(const std::string &videoUrl) {
videoUrl_ = videoUrl;
setBodyParameter(std::string("VideoUrl"), videoUrl);
} }

View File

@@ -50,11 +50,25 @@ void GenerateVideoCoverResult::parse(const std::string &payload)
outputObject.confidence = std::stof(dataNodeOutputsOutput["Confidence"].asString()); outputObject.confidence = std::stof(dataNodeOutputsOutput["Confidence"].asString());
data_.outputs.push_back(outputObject); 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 GenerateVideoCoverResult::Data GenerateVideoCoverResult::getData()const
{ {
return data_; return data_;
} }
std::string GenerateVideoCoverResult::getCode()const
{
return code_;
}

View File

@@ -1,45 +1,51 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <alibabacloud/videorecog/model/GetAsyncJobResultRequest.h> #include <alibabacloud/videorecog/model/GetAsyncJobResultRequest.h>
using AlibabaCloud::Videorecog::Model::GetAsyncJobResultRequest; using AlibabaCloud::Videorecog::Model::GetAsyncJobResultRequest;
GetAsyncJobResultRequest::GetAsyncJobResultRequest() GetAsyncJobResultRequest::GetAsyncJobResultRequest() :
: RpcServiceRequest("videorecog", "2020-03-20", "GetAsyncJobResult") { RpcServiceRequest("videorecog", "2020-03-20", "GetAsyncJobResult")
setMethod(HttpRequest::Method::Post); {
setMethod(HttpRequest::Method::Post);
}
GetAsyncJobResultRequest::~GetAsyncJobResultRequest()
{}
std::string GetAsyncJobResultRequest::getJobId()const
{
return jobId_;
} }
GetAsyncJobResultRequest::~GetAsyncJobResultRequest() {} void GetAsyncJobResultRequest::setJobId(const std::string& jobId)
{
std::string GetAsyncJobResultRequest::getJobId() const { jobId_ = jobId;
return jobId_; setBodyParameter("JobId", jobId);
} }
void GetAsyncJobResultRequest::setJobId(const std::string &jobId) { bool GetAsyncJobResultRequest::getAsync()const
jobId_ = jobId; {
setBodyParameter(std::string("JobId"), jobId); return async_;
} }
bool GetAsyncJobResultRequest::getAsync() const { void GetAsyncJobResultRequest::setAsync(bool async)
return async_; {
} async_ = async;
setBodyParameter("Async", async ? "true" : "false");
void GetAsyncJobResultRequest::setAsync(bool async) {
async_ = async;
setBodyParameter(std::string("Async"), async ? "true" : "false");
} }

View File

@@ -1,65 +1,73 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <alibabacloud/videorecog/model/RecognizeVideoCastCrewListRequest.h> #include <alibabacloud/videorecog/model/RecognizeVideoCastCrewListRequest.h>
using AlibabaCloud::Videorecog::Model::RecognizeVideoCastCrewListRequest; using AlibabaCloud::Videorecog::Model::RecognizeVideoCastCrewListRequest;
RecognizeVideoCastCrewListRequest::RecognizeVideoCastCrewListRequest() RecognizeVideoCastCrewListRequest::RecognizeVideoCastCrewListRequest() :
: RpcServiceRequest("videorecog", "2020-03-20", "RecognizeVideoCastCrewList") { RpcServiceRequest("videorecog", "2020-03-20", "RecognizeVideoCastCrewList")
setMethod(HttpRequest::Method::Post); {
setMethod(HttpRequest::Method::Post);
}
RecognizeVideoCastCrewListRequest::~RecognizeVideoCastCrewListRequest()
{}
Array RecognizeVideoCastCrewListRequest::getParams()const
{
return params_;
} }
RecognizeVideoCastCrewListRequest::~RecognizeVideoCastCrewListRequest() {} void RecognizeVideoCastCrewListRequest::setParams(const Array& params)
{
std::vector<RecognizeVideoCastCrewListRequest::Params> RecognizeVideoCastCrewListRequest::getParams() const { params_ = params;
return params_; setBodyParameter("Params", std::to_string(params));
} }
void RecognizeVideoCastCrewListRequest::setParams(const std::vector<RecognizeVideoCastCrewListRequest::Params> &params) { bool RecognizeVideoCastCrewListRequest::getAsync()const
params_ = params; {
for(int dep1 = 0; dep1 != params.size(); dep1++) { return async_;
setBodyParameter(std::string("Params") + "." + std::to_string(dep1 + 1) + ".Type", params[dep1].type);
}
} }
bool RecognizeVideoCastCrewListRequest::getAsync() const { void RecognizeVideoCastCrewListRequest::setAsync(bool async)
return async_; {
async_ = async;
setBodyParameter("Async", async ? "true" : "false");
} }
void RecognizeVideoCastCrewListRequest::setAsync(bool async) { std::string RecognizeVideoCastCrewListRequest::getRegisterUrl()const
async_ = async; {
setBodyParameter(std::string("Async"), async ? "true" : "false"); return registerUrl_;
} }
std::string RecognizeVideoCastCrewListRequest::getRegisterUrl() const { void RecognizeVideoCastCrewListRequest::setRegisterUrl(const std::string& registerUrl)
return registerUrl_; {
registerUrl_ = registerUrl;
setBodyParameter("RegisterUrl", registerUrl);
} }
void RecognizeVideoCastCrewListRequest::setRegisterUrl(const std::string &registerUrl) { std::string RecognizeVideoCastCrewListRequest::getVideoUrl()const
registerUrl_ = registerUrl; {
setBodyParameter(std::string("RegisterUrl"), registerUrl); return videoUrl_;
} }
std::string RecognizeVideoCastCrewListRequest::getVideoUrl() const { void RecognizeVideoCastCrewListRequest::setVideoUrl(const std::string& videoUrl)
return videoUrl_; {
} videoUrl_ = videoUrl;
setBodyParameter("VideoUrl", videoUrl);
void RecognizeVideoCastCrewListRequest::setVideoUrl(const std::string &videoUrl) {
videoUrl_ = videoUrl;
setBodyParameter(std::string("VideoUrl"), videoUrl);
} }

View File

@@ -1,45 +1,51 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <alibabacloud/videorecog/model/SplitVideoPartsRequest.h> #include <alibabacloud/videorecog/model/SplitVideoPartsRequest.h>
using AlibabaCloud::Videorecog::Model::SplitVideoPartsRequest; using AlibabaCloud::Videorecog::Model::SplitVideoPartsRequest;
SplitVideoPartsRequest::SplitVideoPartsRequest() SplitVideoPartsRequest::SplitVideoPartsRequest() :
: RpcServiceRequest("videorecog", "2020-03-20", "SplitVideoParts") { RpcServiceRequest("videorecog", "2020-03-20", "SplitVideoParts")
setMethod(HttpRequest::Method::Post); {
setMethod(HttpRequest::Method::Post);
}
SplitVideoPartsRequest::~SplitVideoPartsRequest()
{}
bool SplitVideoPartsRequest::getAsync()const
{
return async_;
} }
SplitVideoPartsRequest::~SplitVideoPartsRequest() {} void SplitVideoPartsRequest::setAsync(bool async)
{
bool SplitVideoPartsRequest::getAsync() const { async_ = async;
return async_; setBodyParameter("Async", async ? "true" : "false");
} }
void SplitVideoPartsRequest::setAsync(bool async) { std::string SplitVideoPartsRequest::getVideoUrl()const
async_ = async; {
setBodyParameter(std::string("Async"), async ? "true" : "false"); return videoUrl_;
} }
std::string SplitVideoPartsRequest::getVideoUrl() const { void SplitVideoPartsRequest::setVideoUrl(const std::string& videoUrl)
return videoUrl_; {
} videoUrl_ = videoUrl;
setBodyParameter("VideoUrl", videoUrl);
void SplitVideoPartsRequest::setVideoUrl(const std::string &videoUrl) {
videoUrl_ = videoUrl;
setBodyParameter(std::string("VideoUrl"), videoUrl);
} }

View File

@@ -1,45 +1,51 @@
/* /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <alibabacloud/videorecog/model/UnderstandVideoContentRequest.h> #include <alibabacloud/videorecog/model/UnderstandVideoContentRequest.h>
using AlibabaCloud::Videorecog::Model::UnderstandVideoContentRequest; using AlibabaCloud::Videorecog::Model::UnderstandVideoContentRequest;
UnderstandVideoContentRequest::UnderstandVideoContentRequest() UnderstandVideoContentRequest::UnderstandVideoContentRequest() :
: RpcServiceRequest("videorecog", "2020-03-20", "UnderstandVideoContent") { RpcServiceRequest("videorecog", "2020-03-20", "UnderstandVideoContent")
setMethod(HttpRequest::Method::Post); {
setMethod(HttpRequest::Method::Post);
}
UnderstandVideoContentRequest::~UnderstandVideoContentRequest()
{}
bool UnderstandVideoContentRequest::getAsync()const
{
return async_;
} }
UnderstandVideoContentRequest::~UnderstandVideoContentRequest() {} void UnderstandVideoContentRequest::setAsync(bool async)
{
bool UnderstandVideoContentRequest::getAsync() const { async_ = async;
return async_; setBodyParameter("Async", async ? "true" : "false");
} }
void UnderstandVideoContentRequest::setAsync(bool async) { std::string UnderstandVideoContentRequest::getVideoURL()const
async_ = async; {
setBodyParameter(std::string("Async"), async ? "true" : "false"); return videoURL_;
} }
std::string UnderstandVideoContentRequest::getVideoURL() const { void UnderstandVideoContentRequest::setVideoURL(const std::string& videoURL)
return videoURL_; {
} videoURL_ = videoURL;
setBodyParameter("VideoURL", videoURL);
void UnderstandVideoContentRequest::setVideoURL(const std::string &videoURL) {
videoURL_ = videoURL;
setBodyParameter(std::string("VideoURL"), videoURL);
} }