DOMAIN SDK Auto Released By lukang.zlh,Version:1.31.0
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/domain/model/BatchFuzzyMatchDomainSensitiveWordRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::BatchFuzzyMatchDomainSensitiveWordRequest;
|
||||
|
||||
BatchFuzzyMatchDomainSensitiveWordRequest::BatchFuzzyMatchDomainSensitiveWordRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "BatchFuzzyMatchDomainSensitiveWord")
|
||||
{}
|
||||
|
||||
BatchFuzzyMatchDomainSensitiveWordRequest::~BatchFuzzyMatchDomainSensitiveWordRequest()
|
||||
{}
|
||||
|
||||
std::string BatchFuzzyMatchDomainSensitiveWordRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void BatchFuzzyMatchDomainSensitiveWordRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string BatchFuzzyMatchDomainSensitiveWordRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void BatchFuzzyMatchDomainSensitiveWordRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = keyword;
|
||||
setParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
std::string BatchFuzzyMatchDomainSensitiveWordRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void BatchFuzzyMatchDomainSensitiveWordRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
68
domain/src/model/BatchFuzzyMatchDomainSensitiveWordResult.cc
Normal file
68
domain/src/model/BatchFuzzyMatchDomainSensitiveWordResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/domain/model/BatchFuzzyMatchDomainSensitiveWordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
BatchFuzzyMatchDomainSensitiveWordResult::BatchFuzzyMatchDomainSensitiveWordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchFuzzyMatchDomainSensitiveWordResult::BatchFuzzyMatchDomainSensitiveWordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchFuzzyMatchDomainSensitiveWordResult::~BatchFuzzyMatchDomainSensitiveWordResult()
|
||||
{}
|
||||
|
||||
void BatchFuzzyMatchDomainSensitiveWordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSensitiveWordMatchResultList = value["SensitiveWordMatchResultList"]["SensitiveWordMatchResult"];
|
||||
for (auto value : allSensitiveWordMatchResultList)
|
||||
{
|
||||
SensitiveWordMatchResult sensitiveWordMatchResultListObject;
|
||||
if(!value["Keyword"].isNull())
|
||||
sensitiveWordMatchResultListObject.keyword = value["Keyword"].asString();
|
||||
if(!value["Exist"].isNull())
|
||||
sensitiveWordMatchResultListObject.exist = value["Exist"].asString() == "true";
|
||||
auto allMatchedSentiveWords = value["MatchedSentiveWords"]["MatchedSensitiveWord"];
|
||||
for (auto value : allMatchedSentiveWords)
|
||||
{
|
||||
SensitiveWordMatchResult::MatchedSensitiveWord matchedSentiveWordsObject;
|
||||
if(!value["Word"].isNull())
|
||||
matchedSentiveWordsObject.word = value["Word"].asString();
|
||||
sensitiveWordMatchResultListObject.matchedSentiveWords.push_back(matchedSentiveWordsObject);
|
||||
}
|
||||
sensitiveWordMatchResultList_.push_back(sensitiveWordMatchResultListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<BatchFuzzyMatchDomainSensitiveWordResult::SensitiveWordMatchResult> BatchFuzzyMatchDomainSensitiveWordResult::getSensitiveWordMatchResultList()const
|
||||
{
|
||||
return sensitiveWordMatchResultList_;
|
||||
}
|
||||
|
||||
@@ -50,6 +50,8 @@ void CheckDomainResult::parse(const std::string &payload)
|
||||
reason_ = value["Reason"].asString();
|
||||
if(!value["Price"].isNull())
|
||||
price_ = std::stol(value["Price"].asString());
|
||||
if(!value["DynamicCheck"].isNull())
|
||||
dynamicCheck_ = value["DynamicCheck"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
@@ -73,6 +75,11 @@ std::string CheckDomainResult::getPremium()const
|
||||
return premium_;
|
||||
}
|
||||
|
||||
bool CheckDomainResult::getDynamicCheck()const
|
||||
{
|
||||
return dynamicCheck_;
|
||||
}
|
||||
|
||||
std::string CheckDomainResult::getReason()const
|
||||
{
|
||||
return reason_;
|
||||
|
||||
60
domain/src/model/FuzzyMatchDomainSensitiveWordRequest.cc
Normal file
60
domain/src/model/FuzzyMatchDomainSensitiveWordRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/domain/model/FuzzyMatchDomainSensitiveWordRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::FuzzyMatchDomainSensitiveWordRequest;
|
||||
|
||||
FuzzyMatchDomainSensitiveWordRequest::FuzzyMatchDomainSensitiveWordRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "FuzzyMatchDomainSensitiveWord")
|
||||
{}
|
||||
|
||||
FuzzyMatchDomainSensitiveWordRequest::~FuzzyMatchDomainSensitiveWordRequest()
|
||||
{}
|
||||
|
||||
std::string FuzzyMatchDomainSensitiveWordRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void FuzzyMatchDomainSensitiveWordRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string FuzzyMatchDomainSensitiveWordRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void FuzzyMatchDomainSensitiveWordRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = keyword;
|
||||
setParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
std::string FuzzyMatchDomainSensitiveWordRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void FuzzyMatchDomainSensitiveWordRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
72
domain/src/model/FuzzyMatchDomainSensitiveWordResult.cc
Normal file
72
domain/src/model/FuzzyMatchDomainSensitiveWordResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/domain/model/FuzzyMatchDomainSensitiveWordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
FuzzyMatchDomainSensitiveWordResult::FuzzyMatchDomainSensitiveWordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FuzzyMatchDomainSensitiveWordResult::FuzzyMatchDomainSensitiveWordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FuzzyMatchDomainSensitiveWordResult::~FuzzyMatchDomainSensitiveWordResult()
|
||||
{}
|
||||
|
||||
void FuzzyMatchDomainSensitiveWordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMatchedSentiveWords = value["MatchedSentiveWords"]["MatchedSensitiveWord"];
|
||||
for (auto value : allMatchedSentiveWords)
|
||||
{
|
||||
MatchedSensitiveWord matchedSentiveWordsObject;
|
||||
if(!value["Word"].isNull())
|
||||
matchedSentiveWordsObject.word = value["Word"].asString();
|
||||
matchedSentiveWords_.push_back(matchedSentiveWordsObject);
|
||||
}
|
||||
if(!value["Keyword"].isNull())
|
||||
keyword_ = value["Keyword"].asString();
|
||||
if(!value["Exist"].isNull())
|
||||
exist_ = value["Exist"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool FuzzyMatchDomainSensitiveWordResult::getExist()const
|
||||
{
|
||||
return exist_;
|
||||
}
|
||||
|
||||
std::string FuzzyMatchDomainSensitiveWordResult::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
std::vector<FuzzyMatchDomainSensitiveWordResult::MatchedSensitiveWord> FuzzyMatchDomainSensitiveWordResult::getMatchedSentiveWords()const
|
||||
{
|
||||
return matchedSentiveWords_;
|
||||
}
|
||||
|
||||
@@ -56,51 +56,9 @@ void QueryDomainAdminDivisionResult::parse(const std::string &payload)
|
||||
}
|
||||
adminDivisions_.push_back(adminDivisionsObject);
|
||||
}
|
||||
if(!value["TotalItemNum"].isNull())
|
||||
totalItemNum_ = std::stoi(value["TotalItemNum"].asString());
|
||||
if(!value["CurrentPageNum"].isNull())
|
||||
currentPageNum_ = std::stoi(value["CurrentPageNum"].asString());
|
||||
if(!value["TotalPageNum"].isNull())
|
||||
totalPageNum_ = std::stoi(value["TotalPageNum"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PrePage"].isNull())
|
||||
prePage_ = value["PrePage"].asString() == "true";
|
||||
if(!value["NextPage"].isNull())
|
||||
nextPage_ = value["NextPage"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool QueryDomainAdminDivisionResult::getPrePage()const
|
||||
{
|
||||
return prePage_;
|
||||
}
|
||||
|
||||
int QueryDomainAdminDivisionResult::getCurrentPageNum()const
|
||||
{
|
||||
return currentPageNum_;
|
||||
}
|
||||
|
||||
int QueryDomainAdminDivisionResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int QueryDomainAdminDivisionResult::getTotalPageNum()const
|
||||
{
|
||||
return totalPageNum_;
|
||||
}
|
||||
|
||||
int QueryDomainAdminDivisionResult::getTotalItemNum()const
|
||||
{
|
||||
return totalItemNum_;
|
||||
}
|
||||
|
||||
bool QueryDomainAdminDivisionResult::getNextPage()const
|
||||
{
|
||||
return nextPage_;
|
||||
}
|
||||
|
||||
std::vector<QueryDomainAdminDivisionResult::AdminDivision> QueryDomainAdminDivisionResult::getAdminDivisions()const
|
||||
{
|
||||
return adminDivisions_;
|
||||
|
||||
Reference in New Issue
Block a user