Added param for ActivateLicenseResponse .
This commit is contained in:
@@ -49,6 +49,8 @@ set(mseap_public_header_model
|
|||||||
include/alibabacloud/mseap/model/PushRpaTaskResult.h
|
include/alibabacloud/mseap/model/PushRpaTaskResult.h
|
||||||
include/alibabacloud/mseap/model/PushRpaTaskDetailRequest.h
|
include/alibabacloud/mseap/model/PushRpaTaskDetailRequest.h
|
||||||
include/alibabacloud/mseap/model/PushRpaTaskDetailResult.h
|
include/alibabacloud/mseap/model/PushRpaTaskDetailResult.h
|
||||||
|
include/alibabacloud/mseap/model/SendNotificationForPartnerRequest.h
|
||||||
|
include/alibabacloud/mseap/model/SendNotificationForPartnerResult.h
|
||||||
include/alibabacloud/mseap/model/SetRedisValueRequest.h
|
include/alibabacloud/mseap/model/SetRedisValueRequest.h
|
||||||
include/alibabacloud/mseap/model/SetRedisValueResult.h
|
include/alibabacloud/mseap/model/SetRedisValueResult.h
|
||||||
include/alibabacloud/mseap/model/UpdateAgreementStatusRequest.h
|
include/alibabacloud/mseap/model/UpdateAgreementStatusRequest.h
|
||||||
@@ -84,6 +86,8 @@ set(mseap_src
|
|||||||
src/model/PushRpaTaskResult.cc
|
src/model/PushRpaTaskResult.cc
|
||||||
src/model/PushRpaTaskDetailRequest.cc
|
src/model/PushRpaTaskDetailRequest.cc
|
||||||
src/model/PushRpaTaskDetailResult.cc
|
src/model/PushRpaTaskDetailResult.cc
|
||||||
|
src/model/SendNotificationForPartnerRequest.cc
|
||||||
|
src/model/SendNotificationForPartnerResult.cc
|
||||||
src/model/SetRedisValueRequest.cc
|
src/model/SetRedisValueRequest.cc
|
||||||
src/model/SetRedisValueResult.cc
|
src/model/SetRedisValueResult.cc
|
||||||
src/model/UpdateAgreementStatusRequest.cc
|
src/model/UpdateAgreementStatusRequest.cc
|
||||||
|
|||||||
@@ -50,6 +50,8 @@
|
|||||||
#include "model/PushRpaTaskResult.h"
|
#include "model/PushRpaTaskResult.h"
|
||||||
#include "model/PushRpaTaskDetailRequest.h"
|
#include "model/PushRpaTaskDetailRequest.h"
|
||||||
#include "model/PushRpaTaskDetailResult.h"
|
#include "model/PushRpaTaskDetailResult.h"
|
||||||
|
#include "model/SendNotificationForPartnerRequest.h"
|
||||||
|
#include "model/SendNotificationForPartnerResult.h"
|
||||||
#include "model/SetRedisValueRequest.h"
|
#include "model/SetRedisValueRequest.h"
|
||||||
#include "model/SetRedisValueResult.h"
|
#include "model/SetRedisValueResult.h"
|
||||||
#include "model/UpdateAgreementStatusRequest.h"
|
#include "model/UpdateAgreementStatusRequest.h"
|
||||||
@@ -105,6 +107,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::PushRpaTaskDetailResult> PushRpaTaskDetailOutcome;
|
typedef Outcome<Error, Model::PushRpaTaskDetailResult> PushRpaTaskDetailOutcome;
|
||||||
typedef std::future<PushRpaTaskDetailOutcome> PushRpaTaskDetailOutcomeCallable;
|
typedef std::future<PushRpaTaskDetailOutcome> PushRpaTaskDetailOutcomeCallable;
|
||||||
typedef std::function<void(const MseapClient*, const Model::PushRpaTaskDetailRequest&, const PushRpaTaskDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushRpaTaskDetailAsyncHandler;
|
typedef std::function<void(const MseapClient*, const Model::PushRpaTaskDetailRequest&, const PushRpaTaskDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushRpaTaskDetailAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::SendNotificationForPartnerResult> SendNotificationForPartnerOutcome;
|
||||||
|
typedef std::future<SendNotificationForPartnerOutcome> SendNotificationForPartnerOutcomeCallable;
|
||||||
|
typedef std::function<void(const MseapClient*, const Model::SendNotificationForPartnerRequest&, const SendNotificationForPartnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendNotificationForPartnerAsyncHandler;
|
||||||
typedef Outcome<Error, Model::SetRedisValueResult> SetRedisValueOutcome;
|
typedef Outcome<Error, Model::SetRedisValueResult> SetRedisValueOutcome;
|
||||||
typedef std::future<SetRedisValueOutcome> SetRedisValueOutcomeCallable;
|
typedef std::future<SetRedisValueOutcome> SetRedisValueOutcomeCallable;
|
||||||
typedef std::function<void(const MseapClient*, const Model::SetRedisValueRequest&, const SetRedisValueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRedisValueAsyncHandler;
|
typedef std::function<void(const MseapClient*, const Model::SetRedisValueRequest&, const SetRedisValueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRedisValueAsyncHandler;
|
||||||
@@ -158,6 +163,9 @@ namespace AlibabaCloud
|
|||||||
PushRpaTaskDetailOutcome pushRpaTaskDetail(const Model::PushRpaTaskDetailRequest &request)const;
|
PushRpaTaskDetailOutcome pushRpaTaskDetail(const Model::PushRpaTaskDetailRequest &request)const;
|
||||||
void pushRpaTaskDetailAsync(const Model::PushRpaTaskDetailRequest& request, const PushRpaTaskDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void pushRpaTaskDetailAsync(const Model::PushRpaTaskDetailRequest& request, const PushRpaTaskDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
PushRpaTaskDetailOutcomeCallable pushRpaTaskDetailCallable(const Model::PushRpaTaskDetailRequest& request) const;
|
PushRpaTaskDetailOutcomeCallable pushRpaTaskDetailCallable(const Model::PushRpaTaskDetailRequest& request) const;
|
||||||
|
SendNotificationForPartnerOutcome sendNotificationForPartner(const Model::SendNotificationForPartnerRequest &request)const;
|
||||||
|
void sendNotificationForPartnerAsync(const Model::SendNotificationForPartnerRequest& request, const SendNotificationForPartnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
SendNotificationForPartnerOutcomeCallable sendNotificationForPartnerCallable(const Model::SendNotificationForPartnerRequest& request) const;
|
||||||
SetRedisValueOutcome setRedisValue(const Model::SetRedisValueRequest &request)const;
|
SetRedisValueOutcome setRedisValue(const Model::SetRedisValueRequest &request)const;
|
||||||
void setRedisValueAsync(const Model::SetRedisValueRequest& request, const SetRedisValueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void setRedisValueAsync(const Model::SetRedisValueRequest& request, const SetRedisValueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
SetRedisValueOutcomeCallable setRedisValueCallable(const Model::SetRedisValueRequest& request) const;
|
SetRedisValueOutcomeCallable setRedisValueCallable(const Model::SetRedisValueRequest& request) const;
|
||||||
|
|||||||
@@ -0,0 +1,63 @@
|
|||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_MSEAP_MODEL_SENDNOTIFICATIONFORPARTNERREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_MSEAP_MODEL_SENDNOTIFICATIONFORPARTNERREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/mseap/MseapExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Mseap {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_MSEAP_EXPORT SendNotificationForPartnerRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
SendNotificationForPartnerRequest();
|
||||||
|
~SendNotificationForPartnerRequest();
|
||||||
|
std::string getTrackId() const;
|
||||||
|
void setTrackId(const std::string &trackId);
|
||||||
|
std::vector<std::string> getSmartSubChannels() const;
|
||||||
|
void setSmartSubChannels(const std::vector<std::string> &smartSubChannels);
|
||||||
|
std::string getChannelType() const;
|
||||||
|
void setChannelType(const std::string &channelType);
|
||||||
|
std::string getNotifyType() const;
|
||||||
|
void setNotifyType(const std::string ¬ifyType);
|
||||||
|
std::string getNotifycationEventType() const;
|
||||||
|
void setNotifycationEventType(const std::string ¬ifycationEventType);
|
||||||
|
std::string getSendTarget() const;
|
||||||
|
void setSendTarget(const std::string &sendTarget);
|
||||||
|
std::string getBizId() const;
|
||||||
|
void setBizId(const std::string &bizId);
|
||||||
|
std::map<std::string, std::string> getParamMap() const;
|
||||||
|
void setParamMap(const std::map<std::string, std::string> ¶mMap);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string trackId_;
|
||||||
|
std::vector<std::string> smartSubChannels_;
|
||||||
|
std::string channelType_;
|
||||||
|
std::string notifyType_;
|
||||||
|
std::string notifycationEventType_;
|
||||||
|
std::string sendTarget_;
|
||||||
|
std::string bizId_;
|
||||||
|
std::map<std::string, std::string> paramMap_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Mseap
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_MSEAP_MODEL_SENDNOTIFICATIONFORPARTNERREQUEST_H_
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_MSEAP_MODEL_SENDNOTIFICATIONFORPARTNERRESULT_H_
|
||||||
|
#define ALIBABACLOUD_MSEAP_MODEL_SENDNOTIFICATIONFORPARTNERRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/mseap/MseapExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Mseap
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_MSEAP_EXPORT SendNotificationForPartnerResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
SendNotificationForPartnerResult();
|
||||||
|
explicit SendNotificationForPartnerResult(const std::string &payload);
|
||||||
|
~SendNotificationForPartnerResult();
|
||||||
|
std::string getErrorMsg()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
std::string getMsgId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string errorMsg_;
|
||||||
|
bool success_;
|
||||||
|
std::string msgId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_MSEAP_MODEL_SENDNOTIFICATIONFORPARTNERRESULT_H_
|
||||||
@@ -555,6 +555,42 @@ MseapClient::PushRpaTaskDetailOutcomeCallable MseapClient::pushRpaTaskDetailCall
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MseapClient::SendNotificationForPartnerOutcome MseapClient::sendNotificationForPartner(const SendNotificationForPartnerRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return SendNotificationForPartnerOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return SendNotificationForPartnerOutcome(SendNotificationForPartnerResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return SendNotificationForPartnerOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void MseapClient::sendNotificationForPartnerAsync(const SendNotificationForPartnerRequest& request, const SendNotificationForPartnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, sendNotificationForPartner(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
MseapClient::SendNotificationForPartnerOutcomeCallable MseapClient::sendNotificationForPartnerCallable(const SendNotificationForPartnerRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<SendNotificationForPartnerOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->sendNotificationForPartner(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
MseapClient::SetRedisValueOutcome MseapClient::setRedisValue(const SetRedisValueRequest &request) const
|
MseapClient::SetRedisValueOutcome MseapClient::setRedisValue(const SetRedisValueRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
103
mseap/src/model/SendNotificationForPartnerRequest.cc
Normal file
103
mseap/src/model/SendNotificationForPartnerRequest.cc
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
/*
|
||||||
|
* 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/mseap/model/SendNotificationForPartnerRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Mseap::Model::SendNotificationForPartnerRequest;
|
||||||
|
|
||||||
|
SendNotificationForPartnerRequest::SendNotificationForPartnerRequest()
|
||||||
|
: RpcServiceRequest("mseap", "2021-01-18", "SendNotificationForPartner") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
SendNotificationForPartnerRequest::~SendNotificationForPartnerRequest() {}
|
||||||
|
|
||||||
|
std::string SendNotificationForPartnerRequest::getTrackId() const {
|
||||||
|
return trackId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendNotificationForPartnerRequest::setTrackId(const std::string &trackId) {
|
||||||
|
trackId_ = trackId;
|
||||||
|
setParameter(std::string("TrackId"), trackId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<SendNotificationForPartnerRequest::std::string> SendNotificationForPartnerRequest::getSmartSubChannels() const {
|
||||||
|
return smartSubChannels_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendNotificationForPartnerRequest::setSmartSubChannels(const std::vector<SendNotificationForPartnerRequest::std::string> &smartSubChannels) {
|
||||||
|
smartSubChannels_ = smartSubChannels;
|
||||||
|
for(int dep1 = 0; dep1 != smartSubChannels.size(); dep1++) {
|
||||||
|
setParameter(std::string("SmartSubChannels") + "." + std::to_string(dep1 + 1), smartSubChannels[dep1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendNotificationForPartnerRequest::getChannelType() const {
|
||||||
|
return channelType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendNotificationForPartnerRequest::setChannelType(const std::string &channelType) {
|
||||||
|
channelType_ = channelType;
|
||||||
|
setParameter(std::string("ChannelType"), channelType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendNotificationForPartnerRequest::getNotifyType() const {
|
||||||
|
return notifyType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendNotificationForPartnerRequest::setNotifyType(const std::string ¬ifyType) {
|
||||||
|
notifyType_ = notifyType;
|
||||||
|
setParameter(std::string("NotifyType"), notifyType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendNotificationForPartnerRequest::getNotifycationEventType() const {
|
||||||
|
return notifycationEventType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendNotificationForPartnerRequest::setNotifycationEventType(const std::string ¬ifycationEventType) {
|
||||||
|
notifycationEventType_ = notifycationEventType;
|
||||||
|
setParameter(std::string("NotifycationEventType"), notifycationEventType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendNotificationForPartnerRequest::getSendTarget() const {
|
||||||
|
return sendTarget_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendNotificationForPartnerRequest::setSendTarget(const std::string &sendTarget) {
|
||||||
|
sendTarget_ = sendTarget;
|
||||||
|
setParameter(std::string("SendTarget"), sendTarget);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendNotificationForPartnerRequest::getBizId() const {
|
||||||
|
return bizId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendNotificationForPartnerRequest::setBizId(const std::string &bizId) {
|
||||||
|
bizId_ = bizId;
|
||||||
|
setParameter(std::string("BizId"), bizId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::map<std::string, std::string> SendNotificationForPartnerRequest::getParamMap() const {
|
||||||
|
return paramMap_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendNotificationForPartnerRequest::setParamMap(const std::map<std::string, std::string> ¶mMap) {
|
||||||
|
paramMap_ = paramMap;
|
||||||
|
for(auto const &iter1 : paramMap) {
|
||||||
|
setParameter(std::string("ParamMap") + "." + iter1.first, iter1.second);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
65
mseap/src/model/SendNotificationForPartnerResult.cc
Normal file
65
mseap/src/model/SendNotificationForPartnerResult.cc
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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/mseap/model/SendNotificationForPartnerResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Mseap;
|
||||||
|
using namespace AlibabaCloud::Mseap::Model;
|
||||||
|
|
||||||
|
SendNotificationForPartnerResult::SendNotificationForPartnerResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
SendNotificationForPartnerResult::SendNotificationForPartnerResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
SendNotificationForPartnerResult::~SendNotificationForPartnerResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void SendNotificationForPartnerResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["ErrorMsg"].isNull())
|
||||||
|
errorMsg_ = value["ErrorMsg"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["MsgId"].isNull())
|
||||||
|
msgId_ = value["MsgId"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendNotificationForPartnerResult::getErrorMsg()const
|
||||||
|
{
|
||||||
|
return errorMsg_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SendNotificationForPartnerResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendNotificationForPartnerResult::getMsgId()const
|
||||||
|
{
|
||||||
|
return msgId_;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user