Update videoseg.
This commit is contained in:
@@ -35,14 +35,14 @@ namespace AlibabaCloud
|
|||||||
GetAsyncJobResultRequest();
|
GetAsyncJobResultRequest();
|
||||||
~GetAsyncJobResultRequest();
|
~GetAsyncJobResultRequest();
|
||||||
|
|
||||||
bool getAsync()const;
|
|
||||||
void setAsync(bool async);
|
|
||||||
std::string getJobId()const;
|
std::string getJobId()const;
|
||||||
void setJobId(const std::string& jobId);
|
void setJobId(const std::string& jobId);
|
||||||
|
bool getAsync()const;
|
||||||
|
void setAsync(bool async);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool async_;
|
|
||||||
std::string jobId_;
|
std::string jobId_;
|
||||||
|
bool async_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,12 +41,16 @@ namespace AlibabaCloud
|
|||||||
SegmentHalfBodyResult();
|
SegmentHalfBodyResult();
|
||||||
explicit SegmentHalfBodyResult(const std::string &payload);
|
explicit SegmentHalfBodyResult(const std::string &payload);
|
||||||
~SegmentHalfBodyResult();
|
~SegmentHalfBodyResult();
|
||||||
|
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_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,12 +41,16 @@ namespace AlibabaCloud
|
|||||||
SegmentVideoBodyResult();
|
SegmentVideoBodyResult();
|
||||||
explicit SegmentVideoBodyResult(const std::string &payload);
|
explicit SegmentVideoBodyResult(const std::string &payload);
|
||||||
~SegmentVideoBodyResult();
|
~SegmentVideoBodyResult();
|
||||||
|
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_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,21 +31,21 @@ VideosegClient::VideosegClient(const Credentials &credentials, const ClientConfi
|
|||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
VideosegClient::VideosegClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
VideosegClient::VideosegClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
VideosegClient::VideosegClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
VideosegClient::VideosegClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
VideosegClient::~VideosegClient()
|
VideosegClient::~VideosegClient()
|
||||||
|
|||||||
@@ -27,17 +27,6 @@ GetAsyncJobResultRequest::GetAsyncJobResultRequest() :
|
|||||||
GetAsyncJobResultRequest::~GetAsyncJobResultRequest()
|
GetAsyncJobResultRequest::~GetAsyncJobResultRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
bool GetAsyncJobResultRequest::getAsync()const
|
|
||||||
{
|
|
||||||
return async_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetAsyncJobResultRequest::setAsync(bool async)
|
|
||||||
{
|
|
||||||
async_ = async;
|
|
||||||
setBodyParameter("Async", async ? "true" : "false");
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetAsyncJobResultRequest::getJobId()const
|
std::string GetAsyncJobResultRequest::getJobId()const
|
||||||
{
|
{
|
||||||
return jobId_;
|
return jobId_;
|
||||||
@@ -49,3 +38,14 @@ void GetAsyncJobResultRequest::setJobId(const std::string& jobId)
|
|||||||
setBodyParameter("JobId", jobId);
|
setBodyParameter("JobId", jobId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool GetAsyncJobResultRequest::getAsync()const
|
||||||
|
{
|
||||||
|
return async_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetAsyncJobResultRequest::setAsync(bool async)
|
||||||
|
{
|
||||||
|
async_ = async;
|
||||||
|
setBodyParameter("Async", async ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,16 +40,16 @@ void GetAsyncJobResultResult::parse(const std::string &payload)
|
|||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto dataNode = value["Data"];
|
auto dataNode = value["Data"];
|
||||||
if(!dataNode["JobId"].isNull())
|
|
||||||
data_.jobId = dataNode["JobId"].asString();
|
|
||||||
if(!dataNode["Status"].isNull())
|
if(!dataNode["Status"].isNull())
|
||||||
data_.status = dataNode["Status"].asString();
|
data_.status = dataNode["Status"].asString();
|
||||||
|
if(!dataNode["ErrorMessage"].isNull())
|
||||||
|
data_.errorMessage = dataNode["ErrorMessage"].asString();
|
||||||
if(!dataNode["Result"].isNull())
|
if(!dataNode["Result"].isNull())
|
||||||
data_.result = dataNode["Result"].asString();
|
data_.result = dataNode["Result"].asString();
|
||||||
if(!dataNode["ErrorCode"].isNull())
|
if(!dataNode["ErrorCode"].isNull())
|
||||||
data_.errorCode = dataNode["ErrorCode"].asString();
|
data_.errorCode = dataNode["ErrorCode"].asString();
|
||||||
if(!dataNode["ErrorMessage"].isNull())
|
if(!dataNode["JobId"].isNull())
|
||||||
data_.errorMessage = dataNode["ErrorMessage"].asString();
|
data_.jobId = dataNode["JobId"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ void SegmentGreenScreenVideoResult::parse(const std::string &payload)
|
|||||||
auto dataNode = value["Data"];
|
auto dataNode = value["Data"];
|
||||||
if(!dataNode["VideoURL"].isNull())
|
if(!dataNode["VideoURL"].isNull())
|
||||||
data_.videoURL = dataNode["VideoURL"].asString();
|
data_.videoURL = dataNode["VideoURL"].asString();
|
||||||
if(!value["Message"].isNull())
|
|
||||||
message_ = value["Message"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
if(!value["Code"].isNull())
|
||||||
code_ = value["Code"].asString();
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,11 +42,25 @@ void SegmentHalfBodyResult::parse(const std::string &payload)
|
|||||||
auto dataNode = value["Data"];
|
auto dataNode = value["Data"];
|
||||||
if(!dataNode["VideoUrl"].isNull())
|
if(!dataNode["VideoUrl"].isNull())
|
||||||
data_.videoUrl = dataNode["VideoUrl"].asString();
|
data_.videoUrl = dataNode["VideoUrl"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string SegmentHalfBodyResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
SegmentHalfBodyResult::Data SegmentHalfBodyResult::getData()const
|
SegmentHalfBodyResult::Data SegmentHalfBodyResult::getData()const
|
||||||
{
|
{
|
||||||
return data_;
|
return data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string SegmentHalfBodyResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,11 +42,25 @@ void SegmentVideoBodyResult::parse(const std::string &payload)
|
|||||||
auto dataNode = value["Data"];
|
auto dataNode = value["Data"];
|
||||||
if(!dataNode["VideoUrl"].isNull())
|
if(!dataNode["VideoUrl"].isNull())
|
||||||
data_.videoUrl = dataNode["VideoUrl"].asString();
|
data_.videoUrl = dataNode["VideoUrl"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string SegmentVideoBodyResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
SegmentVideoBodyResult::Data SegmentVideoBodyResult::getData()const
|
SegmentVideoBodyResult::Data SegmentVideoBodyResult::getData()const
|
||||||
{
|
{
|
||||||
return data_;
|
return data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string SegmentVideoBodyResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user