Support watermark.
This commit is contained in:
@@ -375,42 +375,6 @@ ImmClient::CreateSetOutcomeCallable ImmClient::createSetCallable(const CreateSet
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateStreamAnalyseTaskOutcome ImmClient::createStreamAnalyseTask(const CreateStreamAnalyseTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateStreamAnalyseTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateStreamAnalyseTaskOutcome(CreateStreamAnalyseTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateStreamAnalyseTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::createStreamAnalyseTaskAsync(const CreateStreamAnalyseTaskRequest& request, const CreateStreamAnalyseTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createStreamAnalyseTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::CreateStreamAnalyseTaskOutcomeCallable ImmClient::createStreamAnalyseTaskCallable(const CreateStreamAnalyseTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateStreamAnalyseTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createStreamAnalyseTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoAbstractTaskOutcome ImmClient::createVideoAbstractTask(const CreateVideoAbstractTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -39,12 +39,12 @@ void CreateGroupFacesJobResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
if(!value["JobType"].isNull())
|
||||
jobType_ = value["JobType"].asString();
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,150 +0,0 @@
|
||||
/*
|
||||
* 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/imm/model/CreateStreamAnalyseTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::CreateStreamAnalyseTaskRequest;
|
||||
|
||||
CreateStreamAnalyseTaskRequest::CreateStreamAnalyseTaskRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "CreateStreamAnalyseTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateStreamAnalyseTaskRequest::~CreateStreamAnalyseTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateStreamAnalyseTaskRequest::getGrabType()const
|
||||
{
|
||||
return grabType_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setGrabType(const std::string& grabType)
|
||||
{
|
||||
grabType_ = grabType;
|
||||
setParameter("GrabType", grabType);
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskRequest::getNotifyEndpoint()const
|
||||
{
|
||||
return notifyEndpoint_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
|
||||
{
|
||||
notifyEndpoint_ = notifyEndpoint;
|
||||
setParameter("NotifyEndpoint", notifyEndpoint);
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskRequest::getStreamUri()const
|
||||
{
|
||||
return streamUri_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setStreamUri(const std::string& streamUri)
|
||||
{
|
||||
streamUri_ = streamUri;
|
||||
setParameter("StreamUri", streamUri);
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskRequest::getNotifyTopicName()const
|
||||
{
|
||||
return notifyTopicName_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setNotifyTopicName(const std::string& notifyTopicName)
|
||||
{
|
||||
notifyTopicName_ = notifyTopicName;
|
||||
setParameter("NotifyTopicName", notifyTopicName);
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
bool CreateStreamAnalyseTaskRequest::getSaveType()const
|
||||
{
|
||||
return saveType_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setSaveType(bool saveType)
|
||||
{
|
||||
saveType_ = saveType;
|
||||
setParameter("SaveType", saveType ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setParameter("Interval", interval);
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskRequest::getTgtUri()const
|
||||
{
|
||||
return tgtUri_;
|
||||
}
|
||||
|
||||
void CreateStreamAnalyseTaskRequest::setTgtUri(const std::string& tgtUri)
|
||||
{
|
||||
tgtUri_ = tgtUri;
|
||||
setParameter("TgtUri", tgtUri);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* 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/imm/model/CreateStreamAnalyseTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
CreateStreamAnalyseTaskResult::CreateStreamAnalyseTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateStreamAnalyseTaskResult::CreateStreamAnalyseTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateStreamAnalyseTaskResult::~CreateStreamAnalyseTaskResult()
|
||||
{}
|
||||
|
||||
void CreateStreamAnalyseTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["TaskType"].isNull())
|
||||
taskType_ = value["TaskType"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CreateStreamAnalyseTaskResult::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
@@ -39,20 +39,20 @@ void DeleteImageResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
if(!value["ImageUri"].isNull())
|
||||
imageUri_ = value["ImageUri"].asString();
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteImageResult::getSetId()const
|
||||
{
|
||||
return setId_;
|
||||
}
|
||||
|
||||
std::string DeleteImageResult::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
std::string DeleteImageResult::getSetId()const
|
||||
{
|
||||
return setId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,62 +48,77 @@ void GetImageResult::parse(const std::string &payload)
|
||||
if(!valueCroppingSuggestionCroppingSuggestionItem["Score"].isNull())
|
||||
croppingSuggestionObject.score = std::stof(valueCroppingSuggestionCroppingSuggestionItem["Score"].asString());
|
||||
auto croppingBoundaryNode = value["CroppingBoundary"];
|
||||
if(!croppingBoundaryNode["Width"].isNull())
|
||||
croppingSuggestionObject.croppingBoundary.width = std::stoi(croppingBoundaryNode["Width"].asString());
|
||||
if(!croppingBoundaryNode["Height"].isNull())
|
||||
croppingSuggestionObject.croppingBoundary.height = std::stoi(croppingBoundaryNode["Height"].asString());
|
||||
if(!croppingBoundaryNode["Left"].isNull())
|
||||
croppingSuggestionObject.croppingBoundary.left = std::stoi(croppingBoundaryNode["Left"].asString());
|
||||
if(!croppingBoundaryNode["Top"].isNull())
|
||||
croppingSuggestionObject.croppingBoundary.top = std::stoi(croppingBoundaryNode["Top"].asString());
|
||||
if(!croppingBoundaryNode["Height"].isNull())
|
||||
croppingSuggestionObject.croppingBoundary.height = std::stoi(croppingBoundaryNode["Height"].asString());
|
||||
if(!croppingBoundaryNode["Width"].isNull())
|
||||
croppingSuggestionObject.croppingBoundary.width = std::stoi(croppingBoundaryNode["Width"].asString());
|
||||
croppingSuggestion_.push_back(croppingSuggestionObject);
|
||||
}
|
||||
auto allFacesNode = value["Faces"]["FacesItem"];
|
||||
for (auto valueFacesFacesItem : allFacesNode)
|
||||
{
|
||||
FacesItem facesObject;
|
||||
if(!valueFacesFacesItem["FaceId"].isNull())
|
||||
facesObject.faceId = valueFacesFacesItem["FaceId"].asString();
|
||||
if(!valueFacesFacesItem["FaceConfidence"].isNull())
|
||||
facesObject.faceConfidence = std::stof(valueFacesFacesItem["FaceConfidence"].asString());
|
||||
if(!valueFacesFacesItem["Age"].isNull())
|
||||
facesObject.age = valueFacesFacesItem["Age"].asString();
|
||||
if(!valueFacesFacesItem["Gender"].isNull())
|
||||
facesObject.gender = valueFacesFacesItem["Gender"].asString();
|
||||
if(!valueFacesFacesItem["Emotion"].isNull())
|
||||
facesObject.emotion = valueFacesFacesItem["Emotion"].asString();
|
||||
if(!valueFacesFacesItem["FaceId"].isNull())
|
||||
facesObject.faceId = valueFacesFacesItem["FaceId"].asString();
|
||||
if(!valueFacesFacesItem["Attractive"].isNull())
|
||||
facesObject.attractive = std::stof(valueFacesFacesItem["Attractive"].asString());
|
||||
if(!valueFacesFacesItem["GenderConfidence"].isNull())
|
||||
facesObject.genderConfidence = std::stof(valueFacesFacesItem["GenderConfidence"].asString());
|
||||
if(!valueFacesFacesItem["GroupId"].isNull())
|
||||
facesObject.groupId = valueFacesFacesItem["GroupId"].asString();
|
||||
if(!valueFacesFacesItem["FaceQuality"].isNull())
|
||||
facesObject.faceQuality = std::stof(valueFacesFacesItem["FaceQuality"].asString());
|
||||
if(!valueFacesFacesItem["GenderConfidence"].isNull())
|
||||
facesObject.genderConfidence = std::stof(valueFacesFacesItem["GenderConfidence"].asString());
|
||||
if(!valueFacesFacesItem["EmotionConfidence"].isNull())
|
||||
facesObject.emotionConfidence = std::stof(valueFacesFacesItem["EmotionConfidence"].asString());
|
||||
if(!valueFacesFacesItem["Emotion"].isNull())
|
||||
facesObject.emotion = valueFacesFacesItem["Emotion"].asString();
|
||||
if(!valueFacesFacesItem["Gender"].isNull())
|
||||
facesObject.gender = valueFacesFacesItem["Gender"].asString();
|
||||
if(!valueFacesFacesItem["Age"].isNull())
|
||||
facesObject.age = valueFacesFacesItem["Age"].asString();
|
||||
if(!valueFacesFacesItem["GroupId"].isNull())
|
||||
facesObject.groupId = valueFacesFacesItem["GroupId"].asString();
|
||||
auto emotionDetailsNode = value["EmotionDetails"];
|
||||
if(!emotionDetailsNode["CALM"].isNull())
|
||||
facesObject.emotionDetails.cALM = std::stof(emotionDetailsNode["CALM"].asString());
|
||||
if(!emotionDetailsNode["SCARED"].isNull())
|
||||
facesObject.emotionDetails.sCARED = std::stof(emotionDetailsNode["SCARED"].asString());
|
||||
if(!emotionDetailsNode["HAPPY"].isNull())
|
||||
facesObject.emotionDetails.hAPPY = std::stof(emotionDetailsNode["HAPPY"].asString());
|
||||
if(!emotionDetailsNode["SAD"].isNull())
|
||||
facesObject.emotionDetails.sAD = std::stof(emotionDetailsNode["SAD"].asString());
|
||||
if(!emotionDetailsNode["SURPRISED"].isNull())
|
||||
facesObject.emotionDetails.sURPRISED = std::stof(emotionDetailsNode["SURPRISED"].asString());
|
||||
if(!emotionDetailsNode["ANGRY"].isNull())
|
||||
facesObject.emotionDetails.aNGRY = std::stof(emotionDetailsNode["ANGRY"].asString());
|
||||
if(!emotionDetailsNode["DISGUSTED"].isNull())
|
||||
facesObject.emotionDetails.dISGUSTED = std::stof(emotionDetailsNode["DISGUSTED"].asString());
|
||||
auto faceAttributesNode = value["FaceAttributes"];
|
||||
if(!faceAttributesNode["Glasses"].isNull())
|
||||
facesObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString();
|
||||
if(!faceAttributesNode["Beard"].isNull())
|
||||
facesObject.faceAttributes.beard = faceAttributesNode["Beard"].asString();
|
||||
if(!faceAttributesNode["Mask"].isNull())
|
||||
facesObject.faceAttributes.mask = faceAttributesNode["Mask"].asString();
|
||||
if(!faceAttributesNode["GlassesConfidence"].isNull())
|
||||
facesObject.faceAttributes.glassesConfidence = std::stof(faceAttributesNode["GlassesConfidence"].asString());
|
||||
if(!faceAttributesNode["BeardConfidence"].isNull())
|
||||
facesObject.faceAttributes.beardConfidence = std::stof(faceAttributesNode["BeardConfidence"].asString());
|
||||
if(!faceAttributesNode["MaskConfidence"].isNull())
|
||||
facesObject.faceAttributes.maskConfidence = std::stof(faceAttributesNode["MaskConfidence"].asString());
|
||||
if(!faceAttributesNode["Mask"].isNull())
|
||||
facesObject.faceAttributes.mask = faceAttributesNode["Mask"].asString();
|
||||
if(!faceAttributesNode["Glasses"].isNull())
|
||||
facesObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString();
|
||||
if(!faceAttributesNode["GlassesConfidence"].isNull())
|
||||
facesObject.faceAttributes.glassesConfidence = std::stof(faceAttributesNode["GlassesConfidence"].asString());
|
||||
auto faceBoundaryNode = faceAttributesNode["FaceBoundary"];
|
||||
if(!faceBoundaryNode["Left"].isNull())
|
||||
facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString());
|
||||
if(!faceBoundaryNode["Top"].isNull())
|
||||
facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString());
|
||||
if(!faceBoundaryNode["Width"].isNull())
|
||||
facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString());
|
||||
if(!faceBoundaryNode["Height"].isNull())
|
||||
facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString());
|
||||
if(!faceBoundaryNode["Width"].isNull())
|
||||
facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString());
|
||||
auto headPoseNode = faceAttributesNode["HeadPose"];
|
||||
if(!headPoseNode["Pitch"].isNull())
|
||||
facesObject.faceAttributes.headPose.pitch = std::stof(headPoseNode["Pitch"].asString());
|
||||
@@ -111,170 +126,155 @@ void GetImageResult::parse(const std::string &payload)
|
||||
facesObject.faceAttributes.headPose.roll = std::stof(headPoseNode["Roll"].asString());
|
||||
if(!headPoseNode["Yaw"].isNull())
|
||||
facesObject.faceAttributes.headPose.yaw = std::stof(headPoseNode["Yaw"].asString());
|
||||
auto emotionDetailsNode = value["EmotionDetails"];
|
||||
if(!emotionDetailsNode["HAPPY"].isNull())
|
||||
facesObject.emotionDetails.hAPPY = std::stof(emotionDetailsNode["HAPPY"].asString());
|
||||
if(!emotionDetailsNode["SAD"].isNull())
|
||||
facesObject.emotionDetails.sAD = std::stof(emotionDetailsNode["SAD"].asString());
|
||||
if(!emotionDetailsNode["ANGRY"].isNull())
|
||||
facesObject.emotionDetails.aNGRY = std::stof(emotionDetailsNode["ANGRY"].asString());
|
||||
if(!emotionDetailsNode["SURPRISED"].isNull())
|
||||
facesObject.emotionDetails.sURPRISED = std::stof(emotionDetailsNode["SURPRISED"].asString());
|
||||
if(!emotionDetailsNode["SCARED"].isNull())
|
||||
facesObject.emotionDetails.sCARED = std::stof(emotionDetailsNode["SCARED"].asString());
|
||||
if(!emotionDetailsNode["DISGUSTED"].isNull())
|
||||
facesObject.emotionDetails.dISGUSTED = std::stof(emotionDetailsNode["DISGUSTED"].asString());
|
||||
if(!emotionDetailsNode["CALM"].isNull())
|
||||
facesObject.emotionDetails.cALM = std::stof(emotionDetailsNode["CALM"].asString());
|
||||
faces_.push_back(facesObject);
|
||||
}
|
||||
auto allOCRNode = value["OCR"]["OCRItem"];
|
||||
for (auto valueOCROCRItem : allOCRNode)
|
||||
{
|
||||
OCRItem oCRObject;
|
||||
if(!valueOCROCRItem["OCRContents"].isNull())
|
||||
oCRObject.oCRContents = valueOCROCRItem["OCRContents"].asString();
|
||||
if(!valueOCROCRItem["OCRConfidence"].isNull())
|
||||
oCRObject.oCRConfidence = std::stof(valueOCROCRItem["OCRConfidence"].asString());
|
||||
auto oCRBoundaryNode = value["OCRBoundary"];
|
||||
if(!oCRBoundaryNode["Left"].isNull())
|
||||
oCRObject.oCRBoundary.left = std::stoi(oCRBoundaryNode["Left"].asString());
|
||||
if(!oCRBoundaryNode["Top"].isNull())
|
||||
oCRObject.oCRBoundary.top = std::stoi(oCRBoundaryNode["Top"].asString());
|
||||
if(!oCRBoundaryNode["Width"].isNull())
|
||||
oCRObject.oCRBoundary.width = std::stoi(oCRBoundaryNode["Width"].asString());
|
||||
if(!oCRBoundaryNode["Height"].isNull())
|
||||
oCRObject.oCRBoundary.height = std::stoi(oCRBoundaryNode["Height"].asString());
|
||||
oCR_.push_back(oCRObject);
|
||||
}
|
||||
auto allTagsNode = value["Tags"]["TagsItem"];
|
||||
for (auto valueTagsTagsItem : allTagsNode)
|
||||
{
|
||||
TagsItem tagsObject;
|
||||
if(!valueTagsTagsItem["TagName"].isNull())
|
||||
tagsObject.tagName = valueTagsTagsItem["TagName"].asString();
|
||||
if(!valueTagsTagsItem["TagConfidence"].isNull())
|
||||
tagsObject.tagConfidence = std::stof(valueTagsTagsItem["TagConfidence"].asString());
|
||||
if(!valueTagsTagsItem["TagName"].isNull())
|
||||
tagsObject.tagName = valueTagsTagsItem["TagName"].asString();
|
||||
if(!valueTagsTagsItem["TagLevel"].isNull())
|
||||
tagsObject.tagLevel = std::stoi(valueTagsTagsItem["TagLevel"].asString());
|
||||
if(!valueTagsTagsItem["ParentTagName"].isNull())
|
||||
tagsObject.parentTagName = valueTagsTagsItem["ParentTagName"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
auto allOCRNode = value["OCR"]["OCRItem"];
|
||||
for (auto valueOCROCRItem : allOCRNode)
|
||||
{
|
||||
OCRItem oCRObject;
|
||||
if(!valueOCROCRItem["OCRConfidence"].isNull())
|
||||
oCRObject.oCRConfidence = std::stof(valueOCROCRItem["OCRConfidence"].asString());
|
||||
if(!valueOCROCRItem["OCRContents"].isNull())
|
||||
oCRObject.oCRContents = valueOCROCRItem["OCRContents"].asString();
|
||||
auto oCRBoundaryNode = value["OCRBoundary"];
|
||||
if(!oCRBoundaryNode["Left"].isNull())
|
||||
oCRObject.oCRBoundary.left = std::stoi(oCRBoundaryNode["Left"].asString());
|
||||
if(!oCRBoundaryNode["Top"].isNull())
|
||||
oCRObject.oCRBoundary.top = std::stoi(oCRBoundaryNode["Top"].asString());
|
||||
if(!oCRBoundaryNode["Height"].isNull())
|
||||
oCRObject.oCRBoundary.height = std::stoi(oCRBoundaryNode["Height"].asString());
|
||||
if(!oCRBoundaryNode["Width"].isNull())
|
||||
oCRObject.oCRBoundary.width = std::stoi(oCRBoundaryNode["Width"].asString());
|
||||
oCR_.push_back(oCRObject);
|
||||
}
|
||||
auto imageQualityNode = value["ImageQuality"];
|
||||
if(!imageQualityNode["OverallScore"].isNull())
|
||||
imageQuality_.overallScore = std::stof(imageQualityNode["OverallScore"].asString());
|
||||
if(!imageQualityNode["ClarityScore"].isNull())
|
||||
imageQuality_.clarityScore = std::stof(imageQualityNode["ClarityScore"].asString());
|
||||
if(!imageQualityNode["Clarity"].isNull())
|
||||
imageQuality_.clarity = std::stof(imageQualityNode["Clarity"].asString());
|
||||
if(!imageQualityNode["ExposureScore"].isNull())
|
||||
imageQuality_.exposureScore = std::stof(imageQualityNode["ExposureScore"].asString());
|
||||
if(!imageQualityNode["Exposure"].isNull())
|
||||
imageQuality_.exposure = std::stof(imageQualityNode["Exposure"].asString());
|
||||
if(!imageQualityNode["ContrastScore"].isNull())
|
||||
imageQuality_.contrastScore = std::stof(imageQualityNode["ContrastScore"].asString());
|
||||
if(!imageQualityNode["Contrast"].isNull())
|
||||
imageQuality_.contrast = std::stof(imageQualityNode["Contrast"].asString());
|
||||
if(!imageQualityNode["ColorScore"].isNull())
|
||||
imageQuality_.colorScore = std::stof(imageQualityNode["ColorScore"].asString());
|
||||
if(!imageQualityNode["Color"].isNull())
|
||||
imageQuality_.color = std::stof(imageQualityNode["Color"].asString());
|
||||
if(!imageQualityNode["CompositionScore"].isNull())
|
||||
imageQuality_.compositionScore = std::stof(imageQualityNode["CompositionScore"].asString());
|
||||
if(!imageQualityNode["ContrastScore"].isNull())
|
||||
imageQuality_.contrastScore = std::stof(imageQualityNode["ContrastScore"].asString());
|
||||
if(!imageQualityNode["Color"].isNull())
|
||||
imageQuality_.color = std::stof(imageQualityNode["Color"].asString());
|
||||
if(!imageQualityNode["Exposure"].isNull())
|
||||
imageQuality_.exposure = std::stof(imageQualityNode["Exposure"].asString());
|
||||
if(!imageQualityNode["OverallScore"].isNull())
|
||||
imageQuality_.overallScore = std::stof(imageQualityNode["OverallScore"].asString());
|
||||
if(!imageQualityNode["Clarity"].isNull())
|
||||
imageQuality_.clarity = std::stof(imageQualityNode["Clarity"].asString());
|
||||
if(!imageQualityNode["Contrast"].isNull())
|
||||
imageQuality_.contrast = std::stof(imageQualityNode["Contrast"].asString());
|
||||
if(!imageQualityNode["ExposureScore"].isNull())
|
||||
imageQuality_.exposureScore = std::stof(imageQualityNode["ExposureScore"].asString());
|
||||
if(!imageQualityNode["ColorScore"].isNull())
|
||||
imageQuality_.colorScore = std::stof(imageQualityNode["ColorScore"].asString());
|
||||
auto addressNode = value["Address"];
|
||||
if(!addressNode["Township"].isNull())
|
||||
address_.township = addressNode["Township"].asString();
|
||||
if(!addressNode["AddressLine"].isNull())
|
||||
address_.addressLine = addressNode["AddressLine"].asString();
|
||||
if(!addressNode["Country"].isNull())
|
||||
address_.country = addressNode["Country"].asString();
|
||||
if(!addressNode["Province"].isNull())
|
||||
address_.province = addressNode["Province"].asString();
|
||||
if(!addressNode["City"].isNull())
|
||||
address_.city = addressNode["City"].asString();
|
||||
if(!addressNode["District"].isNull())
|
||||
address_.district = addressNode["District"].asString();
|
||||
if(!addressNode["Township"].isNull())
|
||||
address_.township = addressNode["Township"].asString();
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
if(!value["ImageUri"].isNull())
|
||||
imageUri_ = value["ImageUri"].asString();
|
||||
if(!value["RemarksA"].isNull())
|
||||
remarksA_ = value["RemarksA"].asString();
|
||||
if(!value["RemarksB"].isNull())
|
||||
remarksB_ = value["RemarksB"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!addressNode["Province"].isNull())
|
||||
address_.province = addressNode["Province"].asString();
|
||||
if(!value["ModifyTime"].isNull())
|
||||
modifyTime_ = value["ModifyTime"].asString();
|
||||
if(!value["ImageWidth"].isNull())
|
||||
imageWidth_ = std::stoi(value["ImageWidth"].asString());
|
||||
if(!value["ImageHeight"].isNull())
|
||||
imageHeight_ = std::stoi(value["ImageHeight"].asString());
|
||||
if(!value["ImageFormat"].isNull())
|
||||
imageFormat_ = value["ImageFormat"].asString();
|
||||
if(!value["Exif"].isNull())
|
||||
exif_ = value["Exif"].asString();
|
||||
if(!value["FileSize"].isNull())
|
||||
fileSize_ = std::stoi(value["FileSize"].asString());
|
||||
if(!value["ImageTime"].isNull())
|
||||
imageTime_ = value["ImageTime"].asString();
|
||||
if(!value["Orientation"].isNull())
|
||||
orientation_ = value["Orientation"].asString();
|
||||
if(!value["SourceType"].isNull())
|
||||
sourceType_ = value["SourceType"].asString();
|
||||
if(!value["SourceUri"].isNull())
|
||||
sourceUri_ = value["SourceUri"].asString();
|
||||
if(!value["SourcePosition"].isNull())
|
||||
sourcePosition_ = value["SourcePosition"].asString();
|
||||
if(!value["FacesStatus"].isNull())
|
||||
facesStatus_ = value["FacesStatus"].asString();
|
||||
if(!value["FacesModifyTime"].isNull())
|
||||
facesModifyTime_ = value["FacesModifyTime"].asString();
|
||||
if(!value["Location"].isNull())
|
||||
location_ = value["Location"].asString();
|
||||
if(!value["OCRStatus"].isNull())
|
||||
oCRStatus_ = value["OCRStatus"].asString();
|
||||
if(!value["OCRModifyTime"].isNull())
|
||||
oCRModifyTime_ = value["OCRModifyTime"].asString();
|
||||
if(!value["OCRFailReason"].isNull())
|
||||
oCRFailReason_ = value["OCRFailReason"].asString();
|
||||
if(!value["SourceType"].isNull())
|
||||
sourceType_ = value["SourceType"].asString();
|
||||
if(!value["FacesFailReason"].isNull())
|
||||
facesFailReason_ = value["FacesFailReason"].asString();
|
||||
if(!value["TagsFailReason"].isNull())
|
||||
tagsFailReason_ = value["TagsFailReason"].asString();
|
||||
if(!value["TagsModifyTime"].isNull())
|
||||
tagsModifyTime_ = value["TagsModifyTime"].asString();
|
||||
if(!value["TagsStatus"].isNull())
|
||||
tagsStatus_ = value["TagsStatus"].asString();
|
||||
if(!value["RemarksC"].isNull())
|
||||
remarksC_ = value["RemarksC"].asString();
|
||||
if(!value["RemarksD"].isNull())
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["AddressModifyTime"].isNull())
|
||||
addressModifyTime_ = value["AddressModifyTime"].asString();
|
||||
if(!value["AddressStatus"].isNull())
|
||||
addressStatus_ = value["AddressStatus"].asString();
|
||||
if(!value["AddressFailReason"].isNull())
|
||||
addressFailReason_ = value["AddressFailReason"].asString();
|
||||
if(!value["RemarksArrayA"].isNull())
|
||||
remarksArrayA_ = value["RemarksArrayA"].asString();
|
||||
if(!value["RemarksArrayB"].isNull())
|
||||
remarksArrayB_ = value["RemarksArrayB"].asString();
|
||||
if(!value["ImageQualityModifyTime"].isNull())
|
||||
imageQualityModifyTime_ = value["ImageQualityModifyTime"].asString();
|
||||
if(!value["ImageQualityFailReason"].isNull())
|
||||
imageQualityFailReason_ = value["ImageQualityFailReason"].asString();
|
||||
if(!value["ImageQualityStatus"].isNull())
|
||||
imageQualityStatus_ = value["ImageQualityStatus"].asString();
|
||||
if(!value["CroppingSuggestionStatus"].isNull())
|
||||
croppingSuggestionStatus_ = value["CroppingSuggestionStatus"].asString();
|
||||
if(!value["CroppingSuggestionFailReason"].isNull())
|
||||
croppingSuggestionFailReason_ = value["CroppingSuggestionFailReason"].asString();
|
||||
if(!value["RemarksA"].isNull())
|
||||
remarksA_ = value["RemarksA"].asString();
|
||||
if(!value["AddressFailReason"].isNull())
|
||||
addressFailReason_ = value["AddressFailReason"].asString();
|
||||
if(!value["RemarksB"].isNull())
|
||||
remarksB_ = value["RemarksB"].asString();
|
||||
if(!value["AddressModifyTime"].isNull())
|
||||
addressModifyTime_ = value["AddressModifyTime"].asString();
|
||||
if(!value["ImageFormat"].isNull())
|
||||
imageFormat_ = value["ImageFormat"].asString();
|
||||
if(!value["RemarksArrayB"].isNull())
|
||||
remarksArrayB_ = value["RemarksArrayB"].asString();
|
||||
if(!value["TagsFailReason"].isNull())
|
||||
tagsFailReason_ = value["TagsFailReason"].asString();
|
||||
if(!value["Exif"].isNull())
|
||||
exif_ = value["Exif"].asString();
|
||||
if(!value["FacesModifyTime"].isNull())
|
||||
facesModifyTime_ = value["FacesModifyTime"].asString();
|
||||
if(!value["RemarksC"].isNull())
|
||||
remarksC_ = value["RemarksC"].asString();
|
||||
if(!value["RemarksD"].isNull())
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["ImageWidth"].isNull())
|
||||
imageWidth_ = std::stoi(value["ImageWidth"].asString());
|
||||
if(!value["SourcePosition"].isNull())
|
||||
sourcePosition_ = value["SourcePosition"].asString();
|
||||
if(!value["RemarksArrayA"].isNull())
|
||||
remarksArrayA_ = value["RemarksArrayA"].asString();
|
||||
if(!value["AddressStatus"].isNull())
|
||||
addressStatus_ = value["AddressStatus"].asString();
|
||||
if(!value["FacesStatus"].isNull())
|
||||
facesStatus_ = value["FacesStatus"].asString();
|
||||
if(!value["ImageQualityModifyTime"].isNull())
|
||||
imageQualityModifyTime_ = value["ImageQualityModifyTime"].asString();
|
||||
if(!value["TagsModifyTime"].isNull())
|
||||
tagsModifyTime_ = value["TagsModifyTime"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["ImageQualityFailReason"].isNull())
|
||||
imageQualityFailReason_ = value["ImageQualityFailReason"].asString();
|
||||
if(!value["ImageUri"].isNull())
|
||||
imageUri_ = value["ImageUri"].asString();
|
||||
if(!value["Orientation"].isNull())
|
||||
orientation_ = value["Orientation"].asString();
|
||||
if(!value["OCRStatus"].isNull())
|
||||
oCRStatus_ = value["OCRStatus"].asString();
|
||||
if(!value["OCRModifyTime"].isNull())
|
||||
oCRModifyTime_ = value["OCRModifyTime"].asString();
|
||||
if(!value["CroppingSuggestionModifyTime"].isNull())
|
||||
croppingSuggestionModifyTime_ = value["CroppingSuggestionModifyTime"].asString();
|
||||
if(!value["ImageTime"].isNull())
|
||||
imageTime_ = value["ImageTime"].asString();
|
||||
if(!value["TagsStatus"].isNull())
|
||||
tagsStatus_ = value["TagsStatus"].asString();
|
||||
if(!value["ImageQualityStatus"].isNull())
|
||||
imageQualityStatus_ = value["ImageQualityStatus"].asString();
|
||||
if(!value["ImageHeight"].isNull())
|
||||
imageHeight_ = std::stoi(value["ImageHeight"].asString());
|
||||
if(!value["OCRFailReason"].isNull())
|
||||
oCRFailReason_ = value["OCRFailReason"].asString();
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
if(!value["Location"].isNull())
|
||||
location_ = value["Location"].asString();
|
||||
if(!value["FileSize"].isNull())
|
||||
fileSize_ = std::stoi(value["FileSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -293,16 +293,16 @@ GetImageResult::Address GetImageResult::getAddress()const
|
||||
return address_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getSourceType()const
|
||||
{
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getSourceUri()const
|
||||
{
|
||||
return sourceUri_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getSourceType()const
|
||||
{
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getFacesFailReason()const
|
||||
{
|
||||
return facesFailReason_;
|
||||
@@ -343,16 +343,16 @@ std::string GetImageResult::getImageFormat()const
|
||||
return imageFormat_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getTagsFailReason()const
|
||||
{
|
||||
return tagsFailReason_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getTagsFailReason()const
|
||||
{
|
||||
return tagsFailReason_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getExif()const
|
||||
{
|
||||
return exif_;
|
||||
@@ -418,11 +418,6 @@ std::vector<GetImageResult::CroppingSuggestionItem> GetImageResult::getCroppingS
|
||||
return croppingSuggestion_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getTagsModifyTime()const
|
||||
{
|
||||
return tagsModifyTime_;
|
||||
@@ -433,6 +428,11 @@ std::string GetImageResult::getExternalId()const
|
||||
return externalId_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getImageQualityFailReason()const
|
||||
{
|
||||
return imageQualityFailReason_;
|
||||
@@ -458,19 +458,14 @@ std::string GetImageResult::getOCRModifyTime()const
|
||||
return oCRModifyTime_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getImageTime()const
|
||||
{
|
||||
return imageTime_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getCroppingSuggestionModifyTime()const
|
||||
{
|
||||
return croppingSuggestionModifyTime_;
|
||||
}
|
||||
|
||||
int GetImageResult::getImageHeight()const
|
||||
std::string GetImageResult::getImageTime()const
|
||||
{
|
||||
return imageHeight_;
|
||||
return imageTime_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getTagsStatus()const
|
||||
@@ -483,6 +478,11 @@ std::string GetImageResult::getImageQualityStatus()const
|
||||
return imageQualityStatus_;
|
||||
}
|
||||
|
||||
int GetImageResult::getImageHeight()const
|
||||
{
|
||||
return imageHeight_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getOCRFailReason()const
|
||||
{
|
||||
return oCRFailReason_;
|
||||
@@ -498,13 +498,13 @@ std::vector<GetImageResult::OCRItem> GetImageResult::getOCR()const
|
||||
return oCR_;
|
||||
}
|
||||
|
||||
int GetImageResult::getFileSize()const
|
||||
{
|
||||
return fileSize_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getLocation()const
|
||||
{
|
||||
return location_;
|
||||
}
|
||||
|
||||
int GetImageResult::getFileSize()const
|
||||
{
|
||||
return fileSize_;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,157 +41,157 @@ void GetMediaMetaResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto mediaMetaNode = value["MediaMeta"];
|
||||
auto mediaFormatNode = mediaMetaNode["MediaFormat"];
|
||||
if(!mediaFormatNode["NumberStreams"].isNull())
|
||||
mediaMeta_.mediaFormat.numberStreams = std::stoi(mediaFormatNode["NumberStreams"].asString());
|
||||
if(!mediaFormatNode["NumberPrograms"].isNull())
|
||||
mediaMeta_.mediaFormat.numberPrograms = std::stoi(mediaFormatNode["NumberPrograms"].asString());
|
||||
if(!mediaFormatNode["FormatName"].isNull())
|
||||
mediaMeta_.mediaFormat.formatName = mediaFormatNode["FormatName"].asString();
|
||||
if(!mediaFormatNode["FormatLongName"].isNull())
|
||||
mediaMeta_.mediaFormat.formatLongName = mediaFormatNode["FormatLongName"].asString();
|
||||
if(!mediaFormatNode["Size"].isNull())
|
||||
mediaMeta_.mediaFormat.size = mediaFormatNode["Size"].asString();
|
||||
if(!mediaFormatNode["Duration"].isNull())
|
||||
mediaMeta_.mediaFormat.duration = mediaFormatNode["Duration"].asString();
|
||||
if(!mediaFormatNode["NumberStreams"].isNull())
|
||||
mediaMeta_.mediaFormat.numberStreams = std::stoi(mediaFormatNode["NumberStreams"].asString());
|
||||
if(!mediaFormatNode["FormatLongName"].isNull())
|
||||
mediaMeta_.mediaFormat.formatLongName = mediaFormatNode["FormatLongName"].asString();
|
||||
if(!mediaFormatNode["StartTime"].isNull())
|
||||
mediaMeta_.mediaFormat.startTime = mediaFormatNode["StartTime"].asString();
|
||||
if(!mediaFormatNode["Bitrate"].isNull())
|
||||
mediaMeta_.mediaFormat.bitrate = mediaFormatNode["Bitrate"].asString();
|
||||
if(!mediaFormatNode["CreationTime"].isNull())
|
||||
mediaMeta_.mediaFormat.creationTime = mediaFormatNode["CreationTime"].asString();
|
||||
if(!mediaFormatNode["FormatName"].isNull())
|
||||
mediaMeta_.mediaFormat.formatName = mediaFormatNode["FormatName"].asString();
|
||||
if(!mediaFormatNode["Duration"].isNull())
|
||||
mediaMeta_.mediaFormat.duration = mediaFormatNode["Duration"].asString();
|
||||
if(!mediaFormatNode["Bitrate"].isNull())
|
||||
mediaMeta_.mediaFormat.bitrate = mediaFormatNode["Bitrate"].asString();
|
||||
if(!mediaFormatNode["Location"].isNull())
|
||||
mediaMeta_.mediaFormat.location = mediaFormatNode["Location"].asString();
|
||||
if(!mediaFormatNode["NumberPrograms"].isNull())
|
||||
mediaMeta_.mediaFormat.numberPrograms = std::stoi(mediaFormatNode["NumberPrograms"].asString());
|
||||
auto addressNode = mediaFormatNode["Address"];
|
||||
if(!addressNode["Township"].isNull())
|
||||
mediaMeta_.mediaFormat.address.township = addressNode["Township"].asString();
|
||||
if(!addressNode["AddressLine"].isNull())
|
||||
mediaMeta_.mediaFormat.address.addressLine = addressNode["AddressLine"].asString();
|
||||
if(!addressNode["Country"].isNull())
|
||||
mediaMeta_.mediaFormat.address.country = addressNode["Country"].asString();
|
||||
if(!addressNode["Province"].isNull())
|
||||
mediaMeta_.mediaFormat.address.province = addressNode["Province"].asString();
|
||||
if(!addressNode["City"].isNull())
|
||||
mediaMeta_.mediaFormat.address.city = addressNode["City"].asString();
|
||||
if(!addressNode["District"].isNull())
|
||||
mediaMeta_.mediaFormat.address.district = addressNode["District"].asString();
|
||||
if(!addressNode["Township"].isNull())
|
||||
mediaMeta_.mediaFormat.address.township = addressNode["Township"].asString();
|
||||
if(!addressNode["Province"].isNull())
|
||||
mediaMeta_.mediaFormat.address.province = addressNode["Province"].asString();
|
||||
auto tagNode = mediaFormatNode["Tag"];
|
||||
if(!tagNode["Language"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.language = tagNode["Language"].asString();
|
||||
if(!tagNode["CreationTime"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.creationTime = tagNode["CreationTime"].asString();
|
||||
if(!tagNode["Album"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.album = tagNode["Album"].asString();
|
||||
if(!tagNode["AlbumArtist"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.albumArtist = tagNode["AlbumArtist"].asString();
|
||||
if(!tagNode["Artist"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.artist = tagNode["Artist"].asString();
|
||||
if(!tagNode["Composer"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.composer = tagNode["Composer"].asString();
|
||||
if(!tagNode["Title"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.title = tagNode["Title"].asString();
|
||||
if(!tagNode["Performer"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.performer = tagNode["Performer"].asString();
|
||||
if(!tagNode["Language"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.language = tagNode["Language"].asString();
|
||||
if(!tagNode["CreationTime"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.creationTime = tagNode["CreationTime"].asString();
|
||||
if(!tagNode["Title"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.title = tagNode["Title"].asString();
|
||||
if(!tagNode["Album"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.album = tagNode["Album"].asString();
|
||||
if(!tagNode["AlbumArtist"].isNull())
|
||||
mediaMeta_.mediaFormat.tag.albumArtist = tagNode["AlbumArtist"].asString();
|
||||
auto mediaStreamsNode = mediaMetaNode["MediaStreams"];
|
||||
auto allVideoStreamsNode = mediaStreamsNode["VideoStreams"]["VideoStream"];
|
||||
for (auto mediaStreamsNodeVideoStreamsVideoStream : allVideoStreamsNode)
|
||||
{
|
||||
MediaMeta::MediaStreams::VideoStream videoStreamObject;
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Index"].isNull())
|
||||
videoStreamObject.index = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Index"].asString());
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Language"].isNull())
|
||||
videoStreamObject.language = mediaStreamsNodeVideoStreamsVideoStream["Language"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["CodecName"].isNull())
|
||||
videoStreamObject.codecName = mediaStreamsNodeVideoStreamsVideoStream["CodecName"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["CodecLongName"].isNull())
|
||||
videoStreamObject.codecLongName = mediaStreamsNodeVideoStreamsVideoStream["CodecLongName"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Profile"].isNull())
|
||||
videoStreamObject.profile = mediaStreamsNodeVideoStreamsVideoStream["Profile"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["CodecTimeBase"].isNull())
|
||||
videoStreamObject.codecTimeBase = mediaStreamsNodeVideoStreamsVideoStream["CodecTimeBase"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["CodecTagString"].isNull())
|
||||
videoStreamObject.codecTagString = mediaStreamsNodeVideoStreamsVideoStream["CodecTagString"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["CodecTag"].isNull())
|
||||
videoStreamObject.codecTag = mediaStreamsNodeVideoStreamsVideoStream["CodecTag"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Width"].isNull())
|
||||
videoStreamObject.width = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Width"].asString());
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Height"].isNull())
|
||||
videoStreamObject.height = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Height"].asString());
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["HasBFrames"].isNull())
|
||||
videoStreamObject.hasBFrames = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["HasBFrames"].asString());
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Frames"].isNull())
|
||||
videoStreamObject.frames = mediaStreamsNodeVideoStreamsVideoStream["Frames"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["CodecTimeBase"].isNull())
|
||||
videoStreamObject.codecTimeBase = mediaStreamsNodeVideoStreamsVideoStream["CodecTimeBase"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Rotate"].isNull())
|
||||
videoStreamObject.rotate = mediaStreamsNodeVideoStreamsVideoStream["Rotate"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["SampleAspectRatio"].isNull())
|
||||
videoStreamObject.sampleAspectRatio = mediaStreamsNodeVideoStreamsVideoStream["SampleAspectRatio"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["DisplayAspectRatio"].isNull())
|
||||
videoStreamObject.displayAspectRatio = mediaStreamsNodeVideoStreamsVideoStream["DisplayAspectRatio"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["PixelFormat"].isNull())
|
||||
videoStreamObject.pixelFormat = mediaStreamsNodeVideoStreamsVideoStream["PixelFormat"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Level"].isNull())
|
||||
videoStreamObject.level = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Level"].asString());
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["FrameRrate"].isNull())
|
||||
videoStreamObject.frameRrate = mediaStreamsNodeVideoStreamsVideoStream["FrameRrate"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["AverageFrameRate"].isNull())
|
||||
videoStreamObject.averageFrameRate = mediaStreamsNodeVideoStreamsVideoStream["AverageFrameRate"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["TimeBase"].isNull())
|
||||
videoStreamObject.timeBase = mediaStreamsNodeVideoStreamsVideoStream["TimeBase"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["StartTime"].isNull())
|
||||
videoStreamObject.startTime = mediaStreamsNodeVideoStreamsVideoStream["StartTime"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Duration"].isNull())
|
||||
videoStreamObject.duration = mediaStreamsNodeVideoStreamsVideoStream["Duration"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Index"].isNull())
|
||||
videoStreamObject.index = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Index"].asString());
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["CodecName"].isNull())
|
||||
videoStreamObject.codecName = mediaStreamsNodeVideoStreamsVideoStream["CodecName"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Bitrate"].isNull())
|
||||
videoStreamObject.bitrate = mediaStreamsNodeVideoStreamsVideoStream["Bitrate"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Frames"].isNull())
|
||||
videoStreamObject.frames = mediaStreamsNodeVideoStreamsVideoStream["Frames"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Rotate"].isNull())
|
||||
videoStreamObject.rotate = mediaStreamsNodeVideoStreamsVideoStream["Rotate"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Profile"].isNull())
|
||||
videoStreamObject.profile = mediaStreamsNodeVideoStreamsVideoStream["Profile"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["DisplayAspectRatio"].isNull())
|
||||
videoStreamObject.displayAspectRatio = mediaStreamsNodeVideoStreamsVideoStream["DisplayAspectRatio"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["HasBFrames"].isNull())
|
||||
videoStreamObject.hasBFrames = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["HasBFrames"].asString());
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["CodecTagString"].isNull())
|
||||
videoStreamObject.codecTagString = mediaStreamsNodeVideoStreamsVideoStream["CodecTagString"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["AverageFrameRate"].isNull())
|
||||
videoStreamObject.averageFrameRate = mediaStreamsNodeVideoStreamsVideoStream["AverageFrameRate"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Language"].isNull())
|
||||
videoStreamObject.language = mediaStreamsNodeVideoStreamsVideoStream["Language"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["CodecLongName"].isNull())
|
||||
videoStreamObject.codecLongName = mediaStreamsNodeVideoStreamsVideoStream["CodecLongName"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["PixelFormat"].isNull())
|
||||
videoStreamObject.pixelFormat = mediaStreamsNodeVideoStreamsVideoStream["PixelFormat"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Level"].isNull())
|
||||
videoStreamObject.level = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Level"].asString());
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Height"].isNull())
|
||||
videoStreamObject.height = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Height"].asString());
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["FrameRrate"].isNull())
|
||||
videoStreamObject.frameRrate = mediaStreamsNodeVideoStreamsVideoStream["FrameRrate"].asString();
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["Width"].isNull())
|
||||
videoStreamObject.width = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Width"].asString());
|
||||
if(!mediaStreamsNodeVideoStreamsVideoStream["TimeBase"].isNull())
|
||||
videoStreamObject.timeBase = mediaStreamsNodeVideoStreamsVideoStream["TimeBase"].asString();
|
||||
mediaMeta_.mediaStreams.videoStreams.push_back(videoStreamObject);
|
||||
}
|
||||
auto allAudioStreamsNode = mediaStreamsNode["AudioStreams"]["AudioStream"];
|
||||
for (auto mediaStreamsNodeAudioStreamsAudioStream : allAudioStreamsNode)
|
||||
{
|
||||
MediaMeta::MediaStreams::AudioStream audioStreamObject;
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Index"].isNull())
|
||||
audioStreamObject.index = std::stoi(mediaStreamsNodeAudioStreamsAudioStream["Index"].asString());
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["CodecName"].isNull())
|
||||
audioStreamObject.codecName = mediaStreamsNodeAudioStreamsAudioStream["CodecName"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["CodecLongName"].isNull())
|
||||
audioStreamObject.codecLongName = mediaStreamsNodeAudioStreamsAudioStream["CodecLongName"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["CodecTimeBase"].isNull())
|
||||
audioStreamObject.codecTimeBase = mediaStreamsNodeAudioStreamsAudioStream["CodecTimeBase"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["CodecTagString"].isNull())
|
||||
audioStreamObject.codecTagString = mediaStreamsNodeAudioStreamsAudioStream["CodecTagString"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["CodecTag"].isNull())
|
||||
audioStreamObject.codecTag = mediaStreamsNodeAudioStreamsAudioStream["CodecTag"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["SampleFormat"].isNull())
|
||||
audioStreamObject.sampleFormat = mediaStreamsNodeAudioStreamsAudioStream["SampleFormat"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["SampleRate"].isNull())
|
||||
audioStreamObject.sampleRate = mediaStreamsNodeAudioStreamsAudioStream["SampleRate"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Channels"].isNull())
|
||||
audioStreamObject.channels = std::stoi(mediaStreamsNodeAudioStreamsAudioStream["Channels"].asString());
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["ChannelLayout"].isNull())
|
||||
audioStreamObject.channelLayout = mediaStreamsNodeAudioStreamsAudioStream["ChannelLayout"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["TimeBase"].isNull())
|
||||
audioStreamObject.timeBase = mediaStreamsNodeAudioStreamsAudioStream["TimeBase"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["StartTime"].isNull())
|
||||
audioStreamObject.startTime = mediaStreamsNodeAudioStreamsAudioStream["StartTime"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Duration"].isNull())
|
||||
audioStreamObject.duration = mediaStreamsNodeAudioStreamsAudioStream["Duration"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Bitrate"].isNull())
|
||||
audioStreamObject.bitrate = mediaStreamsNodeAudioStreamsAudioStream["Bitrate"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Frames"].isNull())
|
||||
audioStreamObject.frames = mediaStreamsNodeAudioStreamsAudioStream["Frames"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Language"].isNull())
|
||||
audioStreamObject.language = mediaStreamsNodeAudioStreamsAudioStream["Language"].asString();
|
||||
mediaMeta_.mediaStreams.audioStreams.push_back(audioStreamObject);
|
||||
}
|
||||
auto allSubtitleStreamsNode = mediaStreamsNode["SubtitleStreams"]["SubtitleStream"];
|
||||
for (auto mediaStreamsNodeSubtitleStreamsSubtitleStream : allSubtitleStreamsNode)
|
||||
{
|
||||
MediaMeta::MediaStreams::SubtitleStream subtitleStreamObject;
|
||||
if(!mediaStreamsNodeSubtitleStreamsSubtitleStream["Index"].isNull())
|
||||
subtitleStreamObject.index = std::stoi(mediaStreamsNodeSubtitleStreamsSubtitleStream["Index"].asString());
|
||||
if(!mediaStreamsNodeSubtitleStreamsSubtitleStream["Language"].isNull())
|
||||
subtitleStreamObject.language = mediaStreamsNodeSubtitleStreamsSubtitleStream["Language"].asString();
|
||||
if(!mediaStreamsNodeSubtitleStreamsSubtitleStream["Index"].isNull())
|
||||
subtitleStreamObject.index = std::stoi(mediaStreamsNodeSubtitleStreamsSubtitleStream["Index"].asString());
|
||||
mediaMeta_.mediaStreams.subtitleStreams.push_back(subtitleStreamObject);
|
||||
}
|
||||
auto allAudioStreamsNode = mediaStreamsNode["AudioStreams"]["AudioStream"];
|
||||
for (auto mediaStreamsNodeAudioStreamsAudioStream : allAudioStreamsNode)
|
||||
{
|
||||
MediaMeta::MediaStreams::AudioStream audioStreamObject;
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["CodecTag"].isNull())
|
||||
audioStreamObject.codecTag = mediaStreamsNodeAudioStreamsAudioStream["CodecTag"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Frames"].isNull())
|
||||
audioStreamObject.frames = mediaStreamsNodeAudioStreamsAudioStream["Frames"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["CodecTimeBase"].isNull())
|
||||
audioStreamObject.codecTimeBase = mediaStreamsNodeAudioStreamsAudioStream["CodecTimeBase"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["ChannelLayout"].isNull())
|
||||
audioStreamObject.channelLayout = mediaStreamsNodeAudioStreamsAudioStream["ChannelLayout"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["StartTime"].isNull())
|
||||
audioStreamObject.startTime = mediaStreamsNodeAudioStreamsAudioStream["StartTime"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Duration"].isNull())
|
||||
audioStreamObject.duration = mediaStreamsNodeAudioStreamsAudioStream["Duration"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Index"].isNull())
|
||||
audioStreamObject.index = std::stoi(mediaStreamsNodeAudioStreamsAudioStream["Index"].asString());
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["CodecName"].isNull())
|
||||
audioStreamObject.codecName = mediaStreamsNodeAudioStreamsAudioStream["CodecName"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Bitrate"].isNull())
|
||||
audioStreamObject.bitrate = mediaStreamsNodeAudioStreamsAudioStream["Bitrate"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["SampleFormat"].isNull())
|
||||
audioStreamObject.sampleFormat = mediaStreamsNodeAudioStreamsAudioStream["SampleFormat"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Channels"].isNull())
|
||||
audioStreamObject.channels = std::stoi(mediaStreamsNodeAudioStreamsAudioStream["Channels"].asString());
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["CodecTagString"].isNull())
|
||||
audioStreamObject.codecTagString = mediaStreamsNodeAudioStreamsAudioStream["CodecTagString"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["SampleRate"].isNull())
|
||||
audioStreamObject.sampleRate = mediaStreamsNodeAudioStreamsAudioStream["SampleRate"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["Language"].isNull())
|
||||
audioStreamObject.language = mediaStreamsNodeAudioStreamsAudioStream["Language"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["CodecLongName"].isNull())
|
||||
audioStreamObject.codecLongName = mediaStreamsNodeAudioStreamsAudioStream["CodecLongName"].asString();
|
||||
if(!mediaStreamsNodeAudioStreamsAudioStream["TimeBase"].isNull())
|
||||
audioStreamObject.timeBase = mediaStreamsNodeAudioStreamsAudioStream["TimeBase"].asString();
|
||||
mediaMeta_.mediaStreams.audioStreams.push_back(audioStreamObject);
|
||||
}
|
||||
if(!value["MediaUri"].isNull())
|
||||
mediaUri_ = value["MediaUri"].asString();
|
||||
|
||||
|
||||
@@ -39,6 +39,36 @@ void GetVideoResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVideoTagsNode = value["VideoTags"]["VideoTagsItem"];
|
||||
for (auto valueVideoTagsVideoTagsItem : allVideoTagsNode)
|
||||
{
|
||||
VideoTagsItem videoTagsObject;
|
||||
if(!valueVideoTagsVideoTagsItem["TagConfidence"].isNull())
|
||||
videoTagsObject.tagConfidence = std::stof(valueVideoTagsVideoTagsItem["TagConfidence"].asString());
|
||||
if(!valueVideoTagsVideoTagsItem["TagName"].isNull())
|
||||
videoTagsObject.tagName = valueVideoTagsVideoTagsItem["TagName"].asString();
|
||||
if(!valueVideoTagsVideoTagsItem["TagLevel"].isNull())
|
||||
videoTagsObject.tagLevel = std::stoi(valueVideoTagsVideoTagsItem["TagLevel"].asString());
|
||||
if(!valueVideoTagsVideoTagsItem["ParentTagName"].isNull())
|
||||
videoTagsObject.parentTagName = valueVideoTagsVideoTagsItem["ParentTagName"].asString();
|
||||
videoTags_.push_back(videoTagsObject);
|
||||
}
|
||||
auto allPersonsNode = value["Persons"]["PersonsItem"];
|
||||
for (auto valuePersonsPersonsItem : allPersonsNode)
|
||||
{
|
||||
PersonsItem personsObject;
|
||||
if(!valuePersonsPersonsItem["PersonId"].isNull())
|
||||
personsObject.personId = valuePersonsPersonsItem["PersonId"].asString();
|
||||
if(!valuePersonsPersonsItem["GenderConfidence"].isNull())
|
||||
personsObject.genderConfidence = std::stof(valuePersonsPersonsItem["GenderConfidence"].asString());
|
||||
if(!valuePersonsPersonsItem["Gender"].isNull())
|
||||
personsObject.gender = valuePersonsPersonsItem["Gender"].asString();
|
||||
if(!valuePersonsPersonsItem["Age"].isNull())
|
||||
personsObject.age = std::stoi(valuePersonsPersonsItem["Age"].asString());
|
||||
if(!valuePersonsPersonsItem["AgeConfidence"].isNull())
|
||||
personsObject.ageConfidence = std::stof(valuePersonsPersonsItem["AgeConfidence"].asString());
|
||||
persons_.push_back(personsObject);
|
||||
}
|
||||
auto allCelebrityNode = value["Celebrity"]["CelebrityItem"];
|
||||
for (auto valueCelebrityCelebrityItem : allCelebrityNode)
|
||||
{
|
||||
@@ -51,116 +81,86 @@ void GetVideoResult::parse(const std::string &payload)
|
||||
celebrityObject.celebrityLibraryName = valueCelebrityCelebrityItem["CelebrityLibraryName"].asString();
|
||||
celebrity_.push_back(celebrityObject);
|
||||
}
|
||||
auto allVideoTagsNode = value["VideoTags"]["VideoTagsItem"];
|
||||
for (auto valueVideoTagsVideoTagsItem : allVideoTagsNode)
|
||||
{
|
||||
VideoTagsItem videoTagsObject;
|
||||
if(!valueVideoTagsVideoTagsItem["TagName"].isNull())
|
||||
videoTagsObject.tagName = valueVideoTagsVideoTagsItem["TagName"].asString();
|
||||
if(!valueVideoTagsVideoTagsItem["ParentTagName"].isNull())
|
||||
videoTagsObject.parentTagName = valueVideoTagsVideoTagsItem["ParentTagName"].asString();
|
||||
if(!valueVideoTagsVideoTagsItem["TagConfidence"].isNull())
|
||||
videoTagsObject.tagConfidence = std::stof(valueVideoTagsVideoTagsItem["TagConfidence"].asString());
|
||||
if(!valueVideoTagsVideoTagsItem["TagLevel"].isNull())
|
||||
videoTagsObject.tagLevel = std::stoi(valueVideoTagsVideoTagsItem["TagLevel"].asString());
|
||||
videoTags_.push_back(videoTagsObject);
|
||||
}
|
||||
auto allPersonsNode = value["Persons"]["PersonsItem"];
|
||||
for (auto valuePersonsPersonsItem : allPersonsNode)
|
||||
{
|
||||
PersonsItem personsObject;
|
||||
if(!valuePersonsPersonsItem["PersonId"].isNull())
|
||||
personsObject.personId = valuePersonsPersonsItem["PersonId"].asString();
|
||||
if(!valuePersonsPersonsItem["Age"].isNull())
|
||||
personsObject.age = std::stoi(valuePersonsPersonsItem["Age"].asString());
|
||||
if(!valuePersonsPersonsItem["AgeConfidence"].isNull())
|
||||
personsObject.ageConfidence = std::stof(valuePersonsPersonsItem["AgeConfidence"].asString());
|
||||
if(!valuePersonsPersonsItem["Gender"].isNull())
|
||||
personsObject.gender = valuePersonsPersonsItem["Gender"].asString();
|
||||
if(!valuePersonsPersonsItem["GenderConfidence"].isNull())
|
||||
personsObject.genderConfidence = std::stof(valuePersonsPersonsItem["GenderConfidence"].asString());
|
||||
persons_.push_back(personsObject);
|
||||
}
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
if(!value["VideoUri"].isNull())
|
||||
videoUri_ = value["VideoUri"].asString();
|
||||
if(!value["RemarksA"].isNull())
|
||||
remarksA_ = value["RemarksA"].asString();
|
||||
if(!value["RemarksB"].isNull())
|
||||
remarksB_ = value["RemarksB"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["ModifyTime"].isNull())
|
||||
modifyTime_ = value["ModifyTime"].asString();
|
||||
if(!value["VideoWidth"].isNull())
|
||||
videoWidth_ = std::stoi(value["VideoWidth"].asString());
|
||||
if(!value["VideoHeight"].isNull())
|
||||
videoHeight_ = std::stoi(value["VideoHeight"].asString());
|
||||
if(!value["VideoFormat"].isNull())
|
||||
videoFormat_ = value["VideoFormat"].asString();
|
||||
if(!value["VideoDuration"].isNull())
|
||||
videoDuration_ = std::stof(value["VideoDuration"].asString());
|
||||
if(!value["FileSize"].isNull())
|
||||
fileSize_ = std::stoi(value["FileSize"].asString());
|
||||
if(!value["VideoFrames"].isNull())
|
||||
videoFrames_ = std::stoi(value["VideoFrames"].asString());
|
||||
if(!value["SourceType"].isNull())
|
||||
sourceType_ = value["SourceType"].asString();
|
||||
if(!value["SourceUri"].isNull())
|
||||
sourceUri_ = value["SourceUri"].asString();
|
||||
if(!value["SourcePosition"].isNull())
|
||||
sourcePosition_ = value["SourcePosition"].asString();
|
||||
if(!value["ProcessStatus"].isNull())
|
||||
processStatus_ = value["ProcessStatus"].asString();
|
||||
if(!value["ProcessModifyTime"].isNull())
|
||||
processModifyTime_ = value["ProcessModifyTime"].asString();
|
||||
if(!value["VideoTagsStatus"].isNull())
|
||||
videoTagsStatus_ = value["VideoTagsStatus"].asString();
|
||||
if(!value["VideoTagsModifyTime"].isNull())
|
||||
videoTagsModifyTime_ = value["VideoTagsModifyTime"].asString();
|
||||
if(!value["CelebrityStatus"].isNull())
|
||||
celebrityStatus_ = value["CelebrityStatus"].asString();
|
||||
if(!value["CelebrityModifyTime"].isNull())
|
||||
celebrityModifyTime_ = value["CelebrityModifyTime"].asString();
|
||||
if(!value["ProcessFailReason"].isNull())
|
||||
processFailReason_ = value["ProcessFailReason"].asString();
|
||||
if(!value["VideoTagsFailReason"].isNull())
|
||||
videoTagsFailReason_ = value["VideoTagsFailReason"].asString();
|
||||
if(!value["CelebrityFailReason"].isNull())
|
||||
celebrityFailReason_ = value["CelebrityFailReason"].asString();
|
||||
if(!value["VideoWidth"].isNull())
|
||||
videoWidth_ = std::stoi(value["VideoWidth"].asString());
|
||||
if(!value["SourceUri"].isNull())
|
||||
sourceUri_ = value["SourceUri"].asString();
|
||||
if(!value["SourceType"].isNull())
|
||||
sourceType_ = value["SourceType"].asString();
|
||||
if(!value["VideoInfo"].isNull())
|
||||
videoInfo_ = value["VideoInfo"].asString();
|
||||
if(!value["RemarksA"].isNull())
|
||||
remarksA_ = value["RemarksA"].asString();
|
||||
if(!value["VideoFrameTagsModifyTime"].isNull())
|
||||
videoFrameTagsModifyTime_ = value["VideoFrameTagsModifyTime"].asString();
|
||||
if(!value["RemarksB"].isNull())
|
||||
remarksB_ = value["RemarksB"].asString();
|
||||
if(!value["VideoFacesFailReason"].isNull())
|
||||
videoFacesFailReason_ = value["VideoFacesFailReason"].asString();
|
||||
if(!value["VideoFacesStatus"].isNull())
|
||||
videoFacesStatus_ = value["VideoFacesStatus"].asString();
|
||||
if(!value["VideoOCRModifyTime"].isNull())
|
||||
videoOCRModifyTime_ = value["VideoOCRModifyTime"].asString();
|
||||
if(!value["RemarksC"].isNull())
|
||||
remarksC_ = value["RemarksC"].asString();
|
||||
if(!value["RemarksD"].isNull())
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["VideoFacesStatus"].isNull())
|
||||
videoFacesStatus_ = value["VideoFacesStatus"].asString();
|
||||
if(!value["VideoFacesFailReason"].isNull())
|
||||
videoFacesFailReason_ = value["VideoFacesFailReason"].asString();
|
||||
if(!value["VideoFacesModifyTime"].isNull())
|
||||
videoFacesModifyTime_ = value["VideoFacesModifyTime"].asString();
|
||||
if(!value["VideoFrameTagsStatus"].isNull())
|
||||
videoFrameTagsStatus_ = value["VideoFrameTagsStatus"].asString();
|
||||
if(!value["VideoFrameTagsFailReason"].isNull())
|
||||
videoFrameTagsFailReason_ = value["VideoFrameTagsFailReason"].asString();
|
||||
if(!value["VideoFrameTagsModifyTime"].isNull())
|
||||
videoFrameTagsModifyTime_ = value["VideoFrameTagsModifyTime"].asString();
|
||||
if(!value["VideoSTTStatus"].isNull())
|
||||
videoSTTStatus_ = value["VideoSTTStatus"].asString();
|
||||
if(!value["VideoSTTFailReason"].isNull())
|
||||
videoSTTFailReason_ = value["VideoSTTFailReason"].asString();
|
||||
if(!value["VideoSTTModifyTime"].isNull())
|
||||
videoSTTModifyTime_ = value["VideoSTTModifyTime"].asString();
|
||||
if(!value["VideoOCRStatus"].isNull())
|
||||
videoOCRStatus_ = value["VideoOCRStatus"].asString();
|
||||
if(!value["VideoHeight"].isNull())
|
||||
videoHeight_ = std::stoi(value["VideoHeight"].asString());
|
||||
if(!value["SourcePosition"].isNull())
|
||||
sourcePosition_ = value["SourcePosition"].asString();
|
||||
if(!value["VideoOCRFailReason"].isNull())
|
||||
videoOCRFailReason_ = value["VideoOCRFailReason"].asString();
|
||||
if(!value["VideoOCRModifyTime"].isNull())
|
||||
videoOCRModifyTime_ = value["VideoOCRModifyTime"].asString();
|
||||
if(!value["VideoInfo"].isNull())
|
||||
videoInfo_ = value["VideoInfo"].asString();
|
||||
if(!value["VideoFrameTagsStatus"].isNull())
|
||||
videoFrameTagsStatus_ = value["VideoFrameTagsStatus"].asString();
|
||||
if(!value["VideoTagsFailReason"].isNull())
|
||||
videoTagsFailReason_ = value["VideoTagsFailReason"].asString();
|
||||
if(!value["VideoTagsModifyTime"].isNull())
|
||||
videoTagsModifyTime_ = value["VideoTagsModifyTime"].asString();
|
||||
if(!value["VideoOCRStatus"].isNull())
|
||||
videoOCRStatus_ = value["VideoOCRStatus"].asString();
|
||||
if(!value["VideoFrames"].isNull())
|
||||
videoFrames_ = std::stoi(value["VideoFrames"].asString());
|
||||
if(!value["VideoSTTModifyTime"].isNull())
|
||||
videoSTTModifyTime_ = value["VideoSTTModifyTime"].asString();
|
||||
if(!value["ProcessModifyTime"].isNull())
|
||||
processModifyTime_ = value["ProcessModifyTime"].asString();
|
||||
if(!value["ProcessFailReason"].isNull())
|
||||
processFailReason_ = value["ProcessFailReason"].asString();
|
||||
if(!value["VideoSTTFailReason"].isNull())
|
||||
videoSTTFailReason_ = value["VideoSTTFailReason"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["VideoUri"].isNull())
|
||||
videoUri_ = value["VideoUri"].asString();
|
||||
if(!value["VideoFormat"].isNull())
|
||||
videoFormat_ = value["VideoFormat"].asString();
|
||||
if(!value["VideoFrameTagsFailReason"].isNull())
|
||||
videoFrameTagsFailReason_ = value["VideoFrameTagsFailReason"].asString();
|
||||
if(!value["VideoSTTStatus"].isNull())
|
||||
videoSTTStatus_ = value["VideoSTTStatus"].asString();
|
||||
if(!value["VideoFacesModifyTime"].isNull())
|
||||
videoFacesModifyTime_ = value["VideoFacesModifyTime"].asString();
|
||||
if(!value["CelebrityModifyTime"].isNull())
|
||||
celebrityModifyTime_ = value["CelebrityModifyTime"].asString();
|
||||
if(!value["VideoDuration"].isNull())
|
||||
videoDuration_ = std::stof(value["VideoDuration"].asString());
|
||||
if(!value["CelebrityFailReason"].isNull())
|
||||
celebrityFailReason_ = value["CelebrityFailReason"].asString();
|
||||
if(!value["CelebrityStatus"].isNull())
|
||||
celebrityStatus_ = value["CelebrityStatus"].asString();
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
if(!value["VideoTagsStatus"].isNull())
|
||||
videoTagsStatus_ = value["VideoTagsStatus"].asString();
|
||||
if(!value["FileSize"].isNull())
|
||||
fileSize_ = std::stoi(value["FileSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -179,16 +179,16 @@ int GetVideoResult::getVideoWidth()const
|
||||
return videoWidth_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getSourceType()const
|
||||
{
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getSourceUri()const
|
||||
{
|
||||
return sourceUri_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getSourceType()const
|
||||
{
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getVideoInfo()const
|
||||
{
|
||||
return videoInfo_;
|
||||
@@ -219,16 +219,16 @@ std::string GetVideoResult::getVideoFacesStatus()const
|
||||
return videoFacesStatus_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getRemarksC()const
|
||||
{
|
||||
return remarksC_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getVideoOCRModifyTime()const
|
||||
{
|
||||
return videoOCRModifyTime_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getRemarksC()const
|
||||
{
|
||||
return remarksC_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getRemarksD()const
|
||||
{
|
||||
return remarksD_;
|
||||
@@ -284,24 +284,24 @@ int GetVideoResult::getVideoFrames()const
|
||||
return videoFrames_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getProcessModifyTime()const
|
||||
{
|
||||
return processModifyTime_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getVideoSTTModifyTime()const
|
||||
{
|
||||
return videoSTTModifyTime_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getProcessModifyTime()const
|
||||
{
|
||||
return processModifyTime_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getProcessFailReason()const
|
||||
{
|
||||
return processFailReason_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getCreateTime()const
|
||||
std::string GetVideoResult::getVideoSTTFailReason()const
|
||||
{
|
||||
return createTime_;
|
||||
return videoSTTFailReason_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getExternalId()const
|
||||
@@ -309,9 +309,9 @@ std::string GetVideoResult::getExternalId()const
|
||||
return externalId_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getVideoSTTFailReason()const
|
||||
std::string GetVideoResult::getCreateTime()const
|
||||
{
|
||||
return videoSTTFailReason_;
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getVideoUri()const
|
||||
@@ -359,16 +359,16 @@ std::string GetVideoResult::getCelebrityFailReason()const
|
||||
return celebrityFailReason_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getSetId()const
|
||||
{
|
||||
return setId_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getCelebrityStatus()const
|
||||
{
|
||||
return celebrityStatus_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getSetId()const
|
||||
{
|
||||
return setId_;
|
||||
}
|
||||
|
||||
std::string GetVideoResult::getVideoTagsStatus()const
|
||||
{
|
||||
return videoTagsStatus_;
|
||||
|
||||
@@ -71,6 +71,17 @@ void GetWebofficeURLRequest::setFile(const std::string& file)
|
||||
setParameter("File", file);
|
||||
}
|
||||
|
||||
bool GetWebofficeURLRequest::getHidecmb()const
|
||||
{
|
||||
return hidecmb_;
|
||||
}
|
||||
|
||||
void GetWebofficeURLRequest::setHidecmb(bool hidecmb)
|
||||
{
|
||||
hidecmb_ = hidecmb;
|
||||
setParameter("Hidecmb", hidecmb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetWebofficeURLRequest::getNotifyEndpoint()const
|
||||
{
|
||||
return notifyEndpoint_;
|
||||
@@ -93,6 +104,17 @@ void GetWebofficeURLRequest::setFileID(const std::string& fileID)
|
||||
setParameter("FileID", fileID);
|
||||
}
|
||||
|
||||
std::string GetWebofficeURLRequest::getWatermark()const
|
||||
{
|
||||
return watermark_;
|
||||
}
|
||||
|
||||
void GetWebofficeURLRequest::setWatermark(const std::string& watermark)
|
||||
{
|
||||
watermark_ = watermark;
|
||||
setParameter("Watermark", watermark);
|
||||
}
|
||||
|
||||
std::string GetWebofficeURLRequest::getNotifyTopicName()const
|
||||
{
|
||||
return notifyTopicName_;
|
||||
|
||||
@@ -39,16 +39,16 @@ void GetWebofficeURLResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["WebofficeURL"].isNull())
|
||||
webofficeURL_ = value["WebofficeURL"].asString();
|
||||
if(!value["AccessToken"].isNull())
|
||||
accessToken_ = value["AccessToken"].asString();
|
||||
if(!value["RefreshToken"].isNull())
|
||||
refreshToken_ = value["RefreshToken"].asString();
|
||||
if(!value["AccessTokenExpiredTime"].isNull())
|
||||
accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString();
|
||||
if(!value["AccessToken"].isNull())
|
||||
accessToken_ = value["AccessToken"].asString();
|
||||
if(!value["RefreshTokenExpiredTime"].isNull())
|
||||
refreshTokenExpiredTime_ = value["RefreshTokenExpiredTime"].asString();
|
||||
if(!value["WebofficeURL"].isNull())
|
||||
webofficeURL_ = value["WebofficeURL"].asString();
|
||||
if(!value["AccessTokenExpiredTime"].isNull())
|
||||
accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,20 @@ void IndexImageResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RemarksArrayB"].isNull())
|
||||
remarksArrayB_ = value["RemarksArrayB"].asString();
|
||||
if(!value["ModifyTime"].isNull())
|
||||
modifyTime_ = value["ModifyTime"].asString();
|
||||
if(!value["RemarksC"].isNull())
|
||||
remarksC_ = value["RemarksC"].asString();
|
||||
if(!value["RemarksD"].isNull())
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["RemarksArrayA"].isNull())
|
||||
remarksArrayA_ = value["RemarksArrayA"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
if(!value["ImageUri"].isNull())
|
||||
@@ -47,20 +61,6 @@ void IndexImageResult::parse(const std::string &payload)
|
||||
remarksA_ = value["RemarksA"].asString();
|
||||
if(!value["RemarksB"].isNull())
|
||||
remarksB_ = value["RemarksB"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["ModifyTime"].isNull())
|
||||
modifyTime_ = value["ModifyTime"].asString();
|
||||
if(!value["RemarksC"].isNull())
|
||||
remarksC_ = value["RemarksC"].asString();
|
||||
if(!value["RemarksD"].isNull())
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["RemarksArrayA"].isNull())
|
||||
remarksArrayA_ = value["RemarksArrayA"].asString();
|
||||
if(!value["RemarksArrayB"].isNull())
|
||||
remarksArrayB_ = value["RemarksArrayB"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -84,9 +84,9 @@ std::string IndexImageResult::getRemarksD()const
|
||||
return remarksD_;
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getCreateTime()const
|
||||
std::string IndexImageResult::getRemarksArrayA()const
|
||||
{
|
||||
return createTime_;
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getExternalId()const
|
||||
@@ -94,9 +94,9 @@ std::string IndexImageResult::getExternalId()const
|
||||
return externalId_;
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getRemarksArrayA()const
|
||||
std::string IndexImageResult::getCreateTime()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getSetId()const
|
||||
|
||||
@@ -39,36 +39,36 @@ void IndexVideoResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
if(!value["VideoUri"].isNull())
|
||||
videoUri_ = value["VideoUri"].asString();
|
||||
if(!value["RemarksA"].isNull())
|
||||
remarksA_ = value["RemarksA"].asString();
|
||||
if(!value["RemarksB"].isNull())
|
||||
remarksB_ = value["RemarksB"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["ModifyTime"].isNull())
|
||||
modifyTime_ = value["ModifyTime"].asString();
|
||||
if(!value["Interval"].isNull())
|
||||
interval_ = std::stof(value["Interval"].asString());
|
||||
if(!value["GrabType"].isNull())
|
||||
grabType_ = value["GrabType"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["SaveType"].isNull())
|
||||
saveType_ = value["SaveType"].asString() == "true";
|
||||
if(!value["TgtUri"].isNull())
|
||||
tgtUri_ = value["TgtUri"].asString();
|
||||
if(!value["RemarksC"].isNull())
|
||||
remarksC_ = value["RemarksC"].asString();
|
||||
if(!value["RemarksD"].isNull())
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["VideoUri"].isNull())
|
||||
videoUri_ = value["VideoUri"].asString();
|
||||
if(!value["GrabType"].isNull())
|
||||
grabType_ = value["GrabType"].asString();
|
||||
if(!value["RemarksA"].isNull())
|
||||
remarksA_ = value["RemarksA"].asString();
|
||||
if(!value["RemarksB"].isNull())
|
||||
remarksB_ = value["RemarksB"].asString();
|
||||
if(!value["RemarksC"].isNull())
|
||||
remarksC_ = value["RemarksC"].asString();
|
||||
if(!value["TgtUri"].isNull())
|
||||
tgtUri_ = value["TgtUri"].asString();
|
||||
if(!value["RemarksD"].isNull())
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["SetId"].isNull())
|
||||
setId_ = value["SetId"].asString();
|
||||
if(!value["Interval"].isNull())
|
||||
interval_ = std::stof(value["Interval"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -87,16 +87,16 @@ bool IndexVideoResult::getSaveType()const
|
||||
return saveType_;
|
||||
}
|
||||
|
||||
std::string IndexVideoResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string IndexVideoResult::getExternalId()const
|
||||
{
|
||||
return externalId_;
|
||||
}
|
||||
|
||||
std::string IndexVideoResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string IndexVideoResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
|
||||
Reference in New Issue
Block a user