Supported console.
This commit is contained in:
51
safconsole/src/model/RevokeFeedbackRequest.cc
Normal file
51
safconsole/src/model/RevokeFeedbackRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/safconsole/model/RevokeFeedbackRequest.h>
|
||||
|
||||
using AlibabaCloud::Safconsole::Model::RevokeFeedbackRequest;
|
||||
|
||||
RevokeFeedbackRequest::RevokeFeedbackRequest() :
|
||||
RpcServiceRequest("safconsole", "2021-01-12", "RevokeFeedback")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RevokeFeedbackRequest::~RevokeFeedbackRequest()
|
||||
{}
|
||||
|
||||
std::string RevokeFeedbackRequest::getSampleType()const
|
||||
{
|
||||
return sampleType_;
|
||||
}
|
||||
|
||||
void RevokeFeedbackRequest::setSampleType(const std::string& sampleType)
|
||||
{
|
||||
sampleType_ = sampleType;
|
||||
setBodyParameter("SampleType", sampleType);
|
||||
}
|
||||
|
||||
std::string RevokeFeedbackRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void RevokeFeedbackRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setBodyParameter("Value", value);
|
||||
}
|
||||
|
||||
58
safconsole/src/model/RevokeFeedbackResult.cc
Normal file
58
safconsole/src/model/RevokeFeedbackResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/safconsole/model/RevokeFeedbackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Safconsole;
|
||||
using namespace AlibabaCloud::Safconsole::Model;
|
||||
|
||||
RevokeFeedbackResult::RevokeFeedbackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RevokeFeedbackResult::RevokeFeedbackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RevokeFeedbackResult::~RevokeFeedbackResult()
|
||||
{}
|
||||
|
||||
void RevokeFeedbackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RevokeFeedbackResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string RevokeFeedbackResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
safconsole/src/model/SendFeedbackRequest.cc
Normal file
62
safconsole/src/model/SendFeedbackRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/safconsole/model/SendFeedbackRequest.h>
|
||||
|
||||
using AlibabaCloud::Safconsole::Model::SendFeedbackRequest;
|
||||
|
||||
SendFeedbackRequest::SendFeedbackRequest() :
|
||||
RpcServiceRequest("safconsole", "2021-01-12", "SendFeedback")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendFeedbackRequest::~SendFeedbackRequest()
|
||||
{}
|
||||
|
||||
std::string SendFeedbackRequest::getRiskLabel()const
|
||||
{
|
||||
return riskLabel_;
|
||||
}
|
||||
|
||||
void SendFeedbackRequest::setRiskLabel(const std::string& riskLabel)
|
||||
{
|
||||
riskLabel_ = riskLabel;
|
||||
setParameter("RiskLabel", riskLabel);
|
||||
}
|
||||
|
||||
std::string SendFeedbackRequest::getSampleType()const
|
||||
{
|
||||
return sampleType_;
|
||||
}
|
||||
|
||||
void SendFeedbackRequest::setSampleType(const std::string& sampleType)
|
||||
{
|
||||
sampleType_ = sampleType;
|
||||
setParameter("SampleType", sampleType);
|
||||
}
|
||||
|
||||
std::string SendFeedbackRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void SendFeedbackRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
58
safconsole/src/model/SendFeedbackResult.cc
Normal file
58
safconsole/src/model/SendFeedbackResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/safconsole/model/SendFeedbackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Safconsole;
|
||||
using namespace AlibabaCloud::Safconsole::Model;
|
||||
|
||||
SendFeedbackResult::SendFeedbackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendFeedbackResult::SendFeedbackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendFeedbackResult::~SendFeedbackResult()
|
||||
{}
|
||||
|
||||
void SendFeedbackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SendFeedbackResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int SendFeedbackResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user