由释一发起的PUSH SDK自动发布, BUILD_ID=490, 版本号:1.3.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
1061
push/src/PushClient.cc
Normal file
1061
push/src/PushClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
71
push/src/model/BindAliasRequest.cc
Normal file
71
push/src/model/BindAliasRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/push/model/BindAliasRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::BindAliasRequest;
|
||||
|
||||
BindAliasRequest::BindAliasRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "BindAlias")
|
||||
{}
|
||||
|
||||
BindAliasRequest::~BindAliasRequest()
|
||||
{}
|
||||
|
||||
std::string BindAliasRequest::getAliasName()const
|
||||
{
|
||||
return aliasName_;
|
||||
}
|
||||
|
||||
void BindAliasRequest::setAliasName(const std::string& aliasName)
|
||||
{
|
||||
aliasName_ = aliasName;
|
||||
setParameter("AliasName", aliasName);
|
||||
}
|
||||
|
||||
long BindAliasRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void BindAliasRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string BindAliasRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void BindAliasRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string BindAliasRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BindAliasRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
push/src/model/BindAliasResult.cc
Normal file
45
push/src/model/BindAliasResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/push/model/BindAliasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
BindAliasResult::BindAliasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindAliasResult::BindAliasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindAliasResult::~BindAliasResult()
|
||||
{}
|
||||
|
||||
void BindAliasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
71
push/src/model/BindPhoneRequest.cc
Normal file
71
push/src/model/BindPhoneRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/push/model/BindPhoneRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::BindPhoneRequest;
|
||||
|
||||
BindPhoneRequest::BindPhoneRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "BindPhone")
|
||||
{}
|
||||
|
||||
BindPhoneRequest::~BindPhoneRequest()
|
||||
{}
|
||||
|
||||
std::string BindPhoneRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void BindPhoneRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
long BindPhoneRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void BindPhoneRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string BindPhoneRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void BindPhoneRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string BindPhoneRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BindPhoneRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
push/src/model/BindPhoneResult.cc
Normal file
45
push/src/model/BindPhoneResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/push/model/BindPhoneResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
BindPhoneResult::BindPhoneResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindPhoneResult::BindPhoneResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindPhoneResult::~BindPhoneResult()
|
||||
{}
|
||||
|
||||
void BindPhoneResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
82
push/src/model/BindTagRequest.cc
Normal file
82
push/src/model/BindTagRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/push/model/BindTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::BindTagRequest;
|
||||
|
||||
BindTagRequest::BindTagRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "BindTag")
|
||||
{}
|
||||
|
||||
BindTagRequest::~BindTagRequest()
|
||||
{}
|
||||
|
||||
std::string BindTagRequest::getTagName()const
|
||||
{
|
||||
return tagName_;
|
||||
}
|
||||
|
||||
void BindTagRequest::setTagName(const std::string& tagName)
|
||||
{
|
||||
tagName_ = tagName;
|
||||
setParameter("TagName", tagName);
|
||||
}
|
||||
|
||||
std::string BindTagRequest::getClientKey()const
|
||||
{
|
||||
return clientKey_;
|
||||
}
|
||||
|
||||
void BindTagRequest::setClientKey(const std::string& clientKey)
|
||||
{
|
||||
clientKey_ = clientKey;
|
||||
setParameter("ClientKey", clientKey);
|
||||
}
|
||||
|
||||
long BindTagRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void BindTagRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string BindTagRequest::getKeyType()const
|
||||
{
|
||||
return keyType_;
|
||||
}
|
||||
|
||||
void BindTagRequest::setKeyType(const std::string& keyType)
|
||||
{
|
||||
keyType_ = keyType;
|
||||
setParameter("KeyType", keyType);
|
||||
}
|
||||
|
||||
std::string BindTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BindTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
push/src/model/BindTagResult.cc
Normal file
45
push/src/model/BindTagResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/push/model/BindTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
BindTagResult::BindTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindTagResult::BindTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindTagResult::~BindTagResult()
|
||||
{}
|
||||
|
||||
void BindTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
push/src/model/CancelPushRequest.cc
Normal file
60
push/src/model/CancelPushRequest.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/push/model/CancelPushRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::CancelPushRequest;
|
||||
|
||||
CancelPushRequest::CancelPushRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "CancelPush")
|
||||
{}
|
||||
|
||||
CancelPushRequest::~CancelPushRequest()
|
||||
{}
|
||||
|
||||
long CancelPushRequest::getMessageId()const
|
||||
{
|
||||
return messageId_;
|
||||
}
|
||||
|
||||
void CancelPushRequest::setMessageId(long messageId)
|
||||
{
|
||||
messageId_ = messageId;
|
||||
setParameter("MessageId", std::to_string(messageId));
|
||||
}
|
||||
|
||||
long CancelPushRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void CancelPushRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string CancelPushRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelPushRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
push/src/model/CancelPushResult.cc
Normal file
45
push/src/model/CancelPushResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/push/model/CancelPushResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
CancelPushResult::CancelPushResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelPushResult::CancelPushResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelPushResult::~CancelPushResult()
|
||||
{}
|
||||
|
||||
void CancelPushResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
push/src/model/CheckDeviceRequest.cc
Normal file
60
push/src/model/CheckDeviceRequest.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/push/model/CheckDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::CheckDeviceRequest;
|
||||
|
||||
CheckDeviceRequest::CheckDeviceRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "CheckDevice")
|
||||
{}
|
||||
|
||||
CheckDeviceRequest::~CheckDeviceRequest()
|
||||
{}
|
||||
|
||||
long CheckDeviceRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void CheckDeviceRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string CheckDeviceRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void CheckDeviceRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string CheckDeviceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
push/src/model/CheckDeviceResult.cc
Normal file
52
push/src/model/CheckDeviceResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/push/model/CheckDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
CheckDeviceResult::CheckDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDeviceResult::CheckDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDeviceResult::~CheckDeviceResult()
|
||||
{}
|
||||
|
||||
void CheckDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Available"].isNull())
|
||||
available_ = value["Available"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckDeviceResult::getAvailable()const
|
||||
{
|
||||
return available_;
|
||||
}
|
||||
|
||||
60
push/src/model/CheckDevicesRequest.cc
Normal file
60
push/src/model/CheckDevicesRequest.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/push/model/CheckDevicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::CheckDevicesRequest;
|
||||
|
||||
CheckDevicesRequest::CheckDevicesRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "CheckDevices")
|
||||
{}
|
||||
|
||||
CheckDevicesRequest::~CheckDevicesRequest()
|
||||
{}
|
||||
|
||||
std::string CheckDevicesRequest::getDeviceIds()const
|
||||
{
|
||||
return deviceIds_;
|
||||
}
|
||||
|
||||
void CheckDevicesRequest::setDeviceIds(const std::string& deviceIds)
|
||||
{
|
||||
deviceIds_ = deviceIds;
|
||||
setParameter("DeviceIds", deviceIds);
|
||||
}
|
||||
|
||||
long CheckDevicesRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void CheckDevicesRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string CheckDevicesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckDevicesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
60
push/src/model/CheckDevicesResult.cc
Normal file
60
push/src/model/CheckDevicesResult.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/push/model/CheckDevicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
CheckDevicesResult::CheckDevicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDevicesResult::CheckDevicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDevicesResult::~CheckDevicesResult()
|
||||
{}
|
||||
|
||||
void CheckDevicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDeviceCheckInfos = value["DeviceCheckInfos"]["DeviceCheckInfo"];
|
||||
for (auto value : allDeviceCheckInfos)
|
||||
{
|
||||
DeviceCheckInfo deviceCheckInfosObject;
|
||||
if(!value["DeviceId"].isNull())
|
||||
deviceCheckInfosObject.deviceId = value["DeviceId"].asString();
|
||||
if(!value["Available"].isNull())
|
||||
deviceCheckInfosObject.available = value["Available"].asString() == "true";
|
||||
deviceCheckInfos_.push_back(deviceCheckInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<CheckDevicesResult::DeviceCheckInfo> CheckDevicesResult::getDeviceCheckInfos()const
|
||||
{
|
||||
return deviceCheckInfos_;
|
||||
}
|
||||
|
||||
104
push/src/model/ListPushRecordsRequest.cc
Normal file
104
push/src/model/ListPushRecordsRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/push/model/ListPushRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::ListPushRecordsRequest;
|
||||
|
||||
ListPushRecordsRequest::ListPushRecordsRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "ListPushRecords")
|
||||
{}
|
||||
|
||||
ListPushRecordsRequest::~ListPushRecordsRequest()
|
||||
{}
|
||||
|
||||
int ListPushRecordsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPushRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListPushRecordsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListPushRecordsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long ListPushRecordsRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void ListPushRecordsRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string ListPushRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListPushRecordsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int ListPushRecordsRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void ListPushRecordsRequest::setPage(int page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string ListPushRecordsRequest::getPushType()const
|
||||
{
|
||||
return pushType_;
|
||||
}
|
||||
|
||||
void ListPushRecordsRequest::setPushType(const std::string& pushType)
|
||||
{
|
||||
pushType_ = pushType;
|
||||
setParameter("PushType", pushType);
|
||||
}
|
||||
|
||||
std::string ListPushRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListPushRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
93
push/src/model/ListPushRecordsResult.cc
Normal file
93
push/src/model/ListPushRecordsResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/push/model/ListPushRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
ListPushRecordsResult::ListPushRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPushRecordsResult::ListPushRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPushRecordsResult::~ListPushRecordsResult()
|
||||
{}
|
||||
|
||||
void ListPushRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPushMessageInfos = value["PushMessageInfos"]["PushMessageInfo"];
|
||||
for (auto value : allPushMessageInfos)
|
||||
{
|
||||
PushMessageInfo pushMessageInfosObject;
|
||||
if(!value["AppKey"].isNull())
|
||||
pushMessageInfosObject.appKey = std::stol(value["AppKey"].asString());
|
||||
if(!value["AppName"].isNull())
|
||||
pushMessageInfosObject.appName = value["AppName"].asString();
|
||||
if(!value["MessageId"].isNull())
|
||||
pushMessageInfosObject.messageId = value["MessageId"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
pushMessageInfosObject.type = value["Type"].asString();
|
||||
if(!value["DeviceType"].isNull())
|
||||
pushMessageInfosObject.deviceType = value["DeviceType"].asString();
|
||||
if(!value["PushTime"].isNull())
|
||||
pushMessageInfosObject.pushTime = value["PushTime"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
pushMessageInfosObject.title = value["Title"].asString();
|
||||
if(!value["Body"].isNull())
|
||||
pushMessageInfosObject.body = value["Body"].asString();
|
||||
pushMessageInfos_.push_back(pushMessageInfosObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["Page"].isNull())
|
||||
page_ = std::stoi(value["Page"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListPushRecordsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListPushRecordsResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
int ListPushRecordsResult::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
std::vector<ListPushRecordsResult::PushMessageInfo> ListPushRecordsResult::getPushMessageInfos()const
|
||||
{
|
||||
return pushMessageInfos_;
|
||||
}
|
||||
|
||||
38
push/src/model/ListSummaryAppsRequest.cc
Normal file
38
push/src/model/ListSummaryAppsRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/push/model/ListSummaryAppsRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::ListSummaryAppsRequest;
|
||||
|
||||
ListSummaryAppsRequest::ListSummaryAppsRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "ListSummaryApps")
|
||||
{}
|
||||
|
||||
ListSummaryAppsRequest::~ListSummaryAppsRequest()
|
||||
{}
|
||||
|
||||
std::string ListSummaryAppsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListSummaryAppsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
60
push/src/model/ListSummaryAppsResult.cc
Normal file
60
push/src/model/ListSummaryAppsResult.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/push/model/ListSummaryAppsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
ListSummaryAppsResult::ListSummaryAppsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSummaryAppsResult::ListSummaryAppsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSummaryAppsResult::~ListSummaryAppsResult()
|
||||
{}
|
||||
|
||||
void ListSummaryAppsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSummaryAppInfos = value["SummaryAppInfos"]["SummaryAppInfo"];
|
||||
for (auto value : allSummaryAppInfos)
|
||||
{
|
||||
SummaryAppInfo summaryAppInfosObject;
|
||||
if(!value["AppName"].isNull())
|
||||
summaryAppInfosObject.appName = value["AppName"].asString();
|
||||
if(!value["AppKey"].isNull())
|
||||
summaryAppInfosObject.appKey = std::stol(value["AppKey"].asString());
|
||||
summaryAppInfos_.push_back(summaryAppInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListSummaryAppsResult::SummaryAppInfo> ListSummaryAppsResult::getSummaryAppInfos()const
|
||||
{
|
||||
return summaryAppInfos_;
|
||||
}
|
||||
|
||||
49
push/src/model/ListTagsRequest.cc
Normal file
49
push/src/model/ListTagsRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/push/model/ListTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::ListTagsRequest;
|
||||
|
||||
ListTagsRequest::ListTagsRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "ListTags")
|
||||
{}
|
||||
|
||||
ListTagsRequest::~ListTagsRequest()
|
||||
{}
|
||||
|
||||
long ListTagsRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void ListTagsRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string ListTagsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListTagsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
58
push/src/model/ListTagsResult.cc
Normal file
58
push/src/model/ListTagsResult.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/push/model/ListTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
ListTagsResult::ListTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagsResult::ListTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagsResult::~ListTagsResult()
|
||||
{}
|
||||
|
||||
void ListTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagInfos = value["TagInfos"]["TagInfo"];
|
||||
for (auto value : allTagInfos)
|
||||
{
|
||||
TagInfo tagInfosObject;
|
||||
if(!value["TagName"].isNull())
|
||||
tagInfosObject.tagName = value["TagName"].asString();
|
||||
tagInfos_.push_back(tagInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListTagsResult::TagInfo> ListTagsResult::getTagInfos()const
|
||||
{
|
||||
return tagInfos_;
|
||||
}
|
||||
|
||||
104
push/src/model/PushMessageToAndroidRequest.cc
Normal file
104
push/src/model/PushMessageToAndroidRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/push/model/PushMessageToAndroidRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::PushMessageToAndroidRequest;
|
||||
|
||||
PushMessageToAndroidRequest::PushMessageToAndroidRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "PushMessageToAndroid")
|
||||
{}
|
||||
|
||||
PushMessageToAndroidRequest::~PushMessageToAndroidRequest()
|
||||
{}
|
||||
|
||||
long PushMessageToAndroidRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getTargetValue()const
|
||||
{
|
||||
return targetValue_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setTargetValue(const std::string& targetValue)
|
||||
{
|
||||
targetValue_ = targetValue;
|
||||
setParameter("TargetValue", targetValue);
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getJobKey()const
|
||||
{
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setJobKey(const std::string& jobKey)
|
||||
{
|
||||
jobKey_ = jobKey;
|
||||
setParameter("JobKey", jobKey);
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getTarget()const
|
||||
{
|
||||
return target_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setTarget(const std::string& target)
|
||||
{
|
||||
target_ = target;
|
||||
setParameter("Target", target);
|
||||
}
|
||||
|
||||
52
push/src/model/PushMessageToAndroidResult.cc
Normal file
52
push/src/model/PushMessageToAndroidResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/push/model/PushMessageToAndroidResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
PushMessageToAndroidResult::PushMessageToAndroidResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PushMessageToAndroidResult::PushMessageToAndroidResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PushMessageToAndroidResult::~PushMessageToAndroidResult()
|
||||
{}
|
||||
|
||||
void PushMessageToAndroidResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["MessageId"].isNull())
|
||||
messageId_ = value["MessageId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidResult::getMessageId()const
|
||||
{
|
||||
return messageId_;
|
||||
}
|
||||
|
||||
104
push/src/model/PushMessageToiOSRequest.cc
Normal file
104
push/src/model/PushMessageToiOSRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/push/model/PushMessageToiOSRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::PushMessageToiOSRequest;
|
||||
|
||||
PushMessageToiOSRequest::PushMessageToiOSRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "PushMessageToiOS")
|
||||
{}
|
||||
|
||||
PushMessageToiOSRequest::~PushMessageToiOSRequest()
|
||||
{}
|
||||
|
||||
long PushMessageToiOSRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getTargetValue()const
|
||||
{
|
||||
return targetValue_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setTargetValue(const std::string& targetValue)
|
||||
{
|
||||
targetValue_ = targetValue;
|
||||
setParameter("TargetValue", targetValue);
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getJobKey()const
|
||||
{
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setJobKey(const std::string& jobKey)
|
||||
{
|
||||
jobKey_ = jobKey;
|
||||
setParameter("JobKey", jobKey);
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getTarget()const
|
||||
{
|
||||
return target_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setTarget(const std::string& target)
|
||||
{
|
||||
target_ = target;
|
||||
setParameter("Target", target);
|
||||
}
|
||||
|
||||
52
push/src/model/PushMessageToiOSResult.cc
Normal file
52
push/src/model/PushMessageToiOSResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/push/model/PushMessageToiOSResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
PushMessageToiOSResult::PushMessageToiOSResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PushMessageToiOSResult::PushMessageToiOSResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PushMessageToiOSResult::~PushMessageToiOSResult()
|
||||
{}
|
||||
|
||||
void PushMessageToiOSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["MessageId"].isNull())
|
||||
messageId_ = value["MessageId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSResult::getMessageId()const
|
||||
{
|
||||
return messageId_;
|
||||
}
|
||||
|
||||
115
push/src/model/PushNoticeToAndroidRequest.cc
Normal file
115
push/src/model/PushNoticeToAndroidRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/push/model/PushNoticeToAndroidRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::PushNoticeToAndroidRequest;
|
||||
|
||||
PushNoticeToAndroidRequest::PushNoticeToAndroidRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "PushNoticeToAndroid")
|
||||
{}
|
||||
|
||||
PushNoticeToAndroidRequest::~PushNoticeToAndroidRequest()
|
||||
{}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getExtParameters()const
|
||||
{
|
||||
return extParameters_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setExtParameters(const std::string& extParameters)
|
||||
{
|
||||
extParameters_ = extParameters;
|
||||
setParameter("ExtParameters", extParameters);
|
||||
}
|
||||
|
||||
long PushNoticeToAndroidRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getTargetValue()const
|
||||
{
|
||||
return targetValue_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setTargetValue(const std::string& targetValue)
|
||||
{
|
||||
targetValue_ = targetValue;
|
||||
setParameter("TargetValue", targetValue);
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getJobKey()const
|
||||
{
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setJobKey(const std::string& jobKey)
|
||||
{
|
||||
jobKey_ = jobKey;
|
||||
setParameter("JobKey", jobKey);
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getTarget()const
|
||||
{
|
||||
return target_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setTarget(const std::string& target)
|
||||
{
|
||||
target_ = target;
|
||||
setParameter("Target", target);
|
||||
}
|
||||
|
||||
52
push/src/model/PushNoticeToAndroidResult.cc
Normal file
52
push/src/model/PushNoticeToAndroidResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/push/model/PushNoticeToAndroidResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
PushNoticeToAndroidResult::PushNoticeToAndroidResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PushNoticeToAndroidResult::PushNoticeToAndroidResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PushNoticeToAndroidResult::~PushNoticeToAndroidResult()
|
||||
{}
|
||||
|
||||
void PushNoticeToAndroidResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["MessageId"].isNull())
|
||||
messageId_ = value["MessageId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidResult::getMessageId()const
|
||||
{
|
||||
return messageId_;
|
||||
}
|
||||
|
||||
126
push/src/model/PushNoticeToiOSRequest.cc
Normal file
126
push/src/model/PushNoticeToiOSRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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/push/model/PushNoticeToiOSRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::PushNoticeToiOSRequest;
|
||||
|
||||
PushNoticeToiOSRequest::PushNoticeToiOSRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "PushNoticeToiOS")
|
||||
{}
|
||||
|
||||
PushNoticeToiOSRequest::~PushNoticeToiOSRequest()
|
||||
{}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getExtParameters()const
|
||||
{
|
||||
return extParameters_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setExtParameters(const std::string& extParameters)
|
||||
{
|
||||
extParameters_ = extParameters;
|
||||
setParameter("ExtParameters", extParameters);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getApnsEnv()const
|
||||
{
|
||||
return apnsEnv_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setApnsEnv(const std::string& apnsEnv)
|
||||
{
|
||||
apnsEnv_ = apnsEnv;
|
||||
setParameter("ApnsEnv", apnsEnv);
|
||||
}
|
||||
|
||||
long PushNoticeToiOSRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getTargetValue()const
|
||||
{
|
||||
return targetValue_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setTargetValue(const std::string& targetValue)
|
||||
{
|
||||
targetValue_ = targetValue;
|
||||
setParameter("TargetValue", targetValue);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getJobKey()const
|
||||
{
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setJobKey(const std::string& jobKey)
|
||||
{
|
||||
jobKey_ = jobKey;
|
||||
setParameter("JobKey", jobKey);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getTarget()const
|
||||
{
|
||||
return target_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setTarget(const std::string& target)
|
||||
{
|
||||
target_ = target;
|
||||
setParameter("Target", target);
|
||||
}
|
||||
|
||||
52
push/src/model/PushNoticeToiOSResult.cc
Normal file
52
push/src/model/PushNoticeToiOSResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/push/model/PushNoticeToiOSResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
PushNoticeToiOSResult::PushNoticeToiOSResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PushNoticeToiOSResult::PushNoticeToiOSResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PushNoticeToiOSResult::~PushNoticeToiOSResult()
|
||||
{}
|
||||
|
||||
void PushNoticeToiOSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["MessageId"].isNull())
|
||||
messageId_ = value["MessageId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSResult::getMessageId()const
|
||||
{
|
||||
return messageId_;
|
||||
}
|
||||
|
||||
522
push/src/model/PushRequest.cc
Normal file
522
push/src/model/PushRequest.cc
Normal file
@@ -0,0 +1,522 @@
|
||||
/*
|
||||
* 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/push/model/PushRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::PushRequest;
|
||||
|
||||
PushRequest::PushRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "Push")
|
||||
{}
|
||||
|
||||
PushRequest::~PushRequest()
|
||||
{}
|
||||
|
||||
int PushRequest::getAndroidNotificationBarType()const
|
||||
{
|
||||
return androidNotificationBarType_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationBarType(int androidNotificationBarType)
|
||||
{
|
||||
androidNotificationBarType_ = androidNotificationBarType;
|
||||
setParameter("AndroidNotificationBarType", std::to_string(androidNotificationBarType));
|
||||
}
|
||||
|
||||
int PushRequest::getSmsSendPolicy()const
|
||||
{
|
||||
return smsSendPolicy_;
|
||||
}
|
||||
|
||||
void PushRequest::setSmsSendPolicy(int smsSendPolicy)
|
||||
{
|
||||
smsSendPolicy_ = smsSendPolicy;
|
||||
setParameter("SmsSendPolicy", std::to_string(smsSendPolicy));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidExtParameters()const
|
||||
{
|
||||
return androidExtParameters_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidExtParameters(const std::string& androidExtParameters)
|
||||
{
|
||||
androidExtParameters_ = androidExtParameters;
|
||||
setParameter("AndroidExtParameters", androidExtParameters);
|
||||
}
|
||||
|
||||
int PushRequest::getIOSBadge()const
|
||||
{
|
||||
return iOSBadge_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSBadge(int iOSBadge)
|
||||
{
|
||||
iOSBadge_ = iOSBadge;
|
||||
setParameter("IOSBadge", std::to_string(iOSBadge));
|
||||
}
|
||||
|
||||
bool PushRequest::getIOSBadgeAutoIncrement()const
|
||||
{
|
||||
return iOSBadgeAutoIncrement_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSBadgeAutoIncrement(bool iOSBadgeAutoIncrement)
|
||||
{
|
||||
iOSBadgeAutoIncrement_ = iOSBadgeAutoIncrement;
|
||||
setParameter("IOSBadgeAutoIncrement", std::to_string(iOSBadgeAutoIncrement));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidOpenType()const
|
||||
{
|
||||
return androidOpenType_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidOpenType(const std::string& androidOpenType)
|
||||
{
|
||||
androidOpenType_ = androidOpenType;
|
||||
setParameter("AndroidOpenType", androidOpenType);
|
||||
}
|
||||
|
||||
std::string PushRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void PushRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string PushRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void PushRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string PushRequest::getDeviceType()const
|
||||
{
|
||||
return deviceType_;
|
||||
}
|
||||
|
||||
void PushRequest::setDeviceType(const std::string& deviceType)
|
||||
{
|
||||
deviceType_ = deviceType;
|
||||
setParameter("DeviceType", deviceType);
|
||||
}
|
||||
|
||||
std::string PushRequest::getPushTime()const
|
||||
{
|
||||
return pushTime_;
|
||||
}
|
||||
|
||||
void PushRequest::setPushTime(const std::string& pushTime)
|
||||
{
|
||||
pushTime_ = pushTime;
|
||||
setParameter("PushTime", pushTime);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void PushRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int PushRequest::getSmsDelaySecs()const
|
||||
{
|
||||
return smsDelaySecs_;
|
||||
}
|
||||
|
||||
void PushRequest::setSmsDelaySecs(int smsDelaySecs)
|
||||
{
|
||||
smsDelaySecs_ = smsDelaySecs;
|
||||
setParameter("SmsDelaySecs", std::to_string(smsDelaySecs));
|
||||
}
|
||||
|
||||
int PushRequest::getSendSpeed()const
|
||||
{
|
||||
return sendSpeed_;
|
||||
}
|
||||
|
||||
void PushRequest::setSendSpeed(int sendSpeed)
|
||||
{
|
||||
sendSpeed_ = sendSpeed;
|
||||
setParameter("SendSpeed", std::to_string(sendSpeed));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidPopupActivity()const
|
||||
{
|
||||
return androidPopupActivity_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidPopupActivity(const std::string& androidPopupActivity)
|
||||
{
|
||||
androidPopupActivity_ = androidPopupActivity;
|
||||
setParameter("AndroidPopupActivity", androidPopupActivity);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSRemindBody()const
|
||||
{
|
||||
return iOSRemindBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSRemindBody(const std::string& iOSRemindBody)
|
||||
{
|
||||
iOSRemindBody_ = iOSRemindBody;
|
||||
setParameter("IOSRemindBody", iOSRemindBody);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSExtParameters()const
|
||||
{
|
||||
return iOSExtParameters_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSExtParameters(const std::string& iOSExtParameters)
|
||||
{
|
||||
iOSExtParameters_ = iOSExtParameters;
|
||||
setParameter("IOSExtParameters", iOSExtParameters);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotifyType()const
|
||||
{
|
||||
return androidNotifyType_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotifyType(const std::string& androidNotifyType)
|
||||
{
|
||||
androidNotifyType_ = androidNotifyType;
|
||||
setParameter("AndroidNotifyType", androidNotifyType);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidPopupTitle()const
|
||||
{
|
||||
return androidPopupTitle_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidPopupTitle(const std::string& androidPopupTitle)
|
||||
{
|
||||
androidPopupTitle_ = androidPopupTitle;
|
||||
setParameter("AndroidPopupTitle", androidPopupTitle);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSMusic()const
|
||||
{
|
||||
return iOSMusic_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSMusic(const std::string& iOSMusic)
|
||||
{
|
||||
iOSMusic_ = iOSMusic;
|
||||
setParameter("IOSMusic", iOSMusic);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSApnsEnv()const
|
||||
{
|
||||
return iOSApnsEnv_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSApnsEnv(const std::string& iOSApnsEnv)
|
||||
{
|
||||
iOSApnsEnv_ = iOSApnsEnv;
|
||||
setParameter("IOSApnsEnv", iOSApnsEnv);
|
||||
}
|
||||
|
||||
bool PushRequest::getIOSMutableContent()const
|
||||
{
|
||||
return iOSMutableContent_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSMutableContent(bool iOSMutableContent)
|
||||
{
|
||||
iOSMutableContent_ = iOSMutableContent;
|
||||
setParameter("IOSMutableContent", std::to_string(iOSMutableContent));
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidNotificationBarPriority()const
|
||||
{
|
||||
return androidNotificationBarPriority_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationBarPriority(int androidNotificationBarPriority)
|
||||
{
|
||||
androidNotificationBarPriority_ = androidNotificationBarPriority;
|
||||
setParameter("AndroidNotificationBarPriority", std::to_string(androidNotificationBarPriority));
|
||||
}
|
||||
|
||||
std::string PushRequest::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
void PushRequest::setExpireTime(const std::string& expireTime)
|
||||
{
|
||||
expireTime_ = expireTime;
|
||||
setParameter("ExpireTime", expireTime);
|
||||
}
|
||||
|
||||
std::string PushRequest::getSmsTemplateName()const
|
||||
{
|
||||
return smsTemplateName_;
|
||||
}
|
||||
|
||||
void PushRequest::setSmsTemplateName(const std::string& smsTemplateName)
|
||||
{
|
||||
smsTemplateName_ = smsTemplateName;
|
||||
setParameter("SmsTemplateName", smsTemplateName);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidPopupBody()const
|
||||
{
|
||||
return androidPopupBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidPopupBody(const std::string& androidPopupBody)
|
||||
{
|
||||
androidPopupBody_ = androidPopupBody;
|
||||
setParameter("AndroidPopupBody", androidPopupBody);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSNotificationCategory()const
|
||||
{
|
||||
return iOSNotificationCategory_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSNotificationCategory(const std::string& iOSNotificationCategory)
|
||||
{
|
||||
iOSNotificationCategory_ = iOSNotificationCategory;
|
||||
setParameter("IOSNotificationCategory", iOSNotificationCategory);
|
||||
}
|
||||
|
||||
bool PushRequest::getStoreOffline()const
|
||||
{
|
||||
return storeOffline_;
|
||||
}
|
||||
|
||||
void PushRequest::setStoreOffline(bool storeOffline)
|
||||
{
|
||||
storeOffline_ = storeOffline;
|
||||
setParameter("StoreOffline", std::to_string(storeOffline));
|
||||
}
|
||||
|
||||
bool PushRequest::getIOSSilentNotification()const
|
||||
{
|
||||
return iOSSilentNotification_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSSilentNotification(bool iOSSilentNotification)
|
||||
{
|
||||
iOSSilentNotification_ = iOSSilentNotification;
|
||||
setParameter("IOSSilentNotification", std::to_string(iOSSilentNotification));
|
||||
}
|
||||
|
||||
std::string PushRequest::getSmsParams()const
|
||||
{
|
||||
return smsParams_;
|
||||
}
|
||||
|
||||
void PushRequest::setSmsParams(const std::string& smsParams)
|
||||
{
|
||||
smsParams_ = smsParams;
|
||||
setParameter("SmsParams", smsParams);
|
||||
}
|
||||
|
||||
std::string PushRequest::getJobKey()const
|
||||
{
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushRequest::setJobKey(const std::string& jobKey)
|
||||
{
|
||||
jobKey_ = jobKey;
|
||||
setParameter("JobKey", jobKey);
|
||||
}
|
||||
|
||||
std::string PushRequest::getTarget()const
|
||||
{
|
||||
return target_;
|
||||
}
|
||||
|
||||
void PushRequest::setTarget(const std::string& target)
|
||||
{
|
||||
target_ = target;
|
||||
setParameter("Target", target);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidOpenUrl()const
|
||||
{
|
||||
return androidOpenUrl_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidOpenUrl(const std::string& androidOpenUrl)
|
||||
{
|
||||
androidOpenUrl_ = androidOpenUrl;
|
||||
setParameter("AndroidOpenUrl", androidOpenUrl);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationChannel()const
|
||||
{
|
||||
return androidNotificationChannel_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationChannel(const std::string& androidNotificationChannel)
|
||||
{
|
||||
androidNotificationChannel_ = androidNotificationChannel;
|
||||
setParameter("AndroidNotificationChannel", androidNotificationChannel);
|
||||
}
|
||||
|
||||
bool PushRequest::getAndroidRemind()const
|
||||
{
|
||||
return androidRemind_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidRemind(bool androidRemind)
|
||||
{
|
||||
androidRemind_ = androidRemind;
|
||||
setParameter("AndroidRemind", std::to_string(androidRemind));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidActivity()const
|
||||
{
|
||||
return androidActivity_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidActivity(const std::string& androidActivity)
|
||||
{
|
||||
androidActivity_ = androidActivity;
|
||||
setParameter("AndroidActivity", androidActivity);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidXiaoMiNotifyBody()const
|
||||
{
|
||||
return androidXiaoMiNotifyBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidXiaoMiNotifyBody(const std::string& androidXiaoMiNotifyBody)
|
||||
{
|
||||
androidXiaoMiNotifyBody_ = androidXiaoMiNotifyBody;
|
||||
setParameter("AndroidXiaoMiNotifyBody", androidXiaoMiNotifyBody);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSSubtitle()const
|
||||
{
|
||||
return iOSSubtitle_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSSubtitle(const std::string& iOSSubtitle)
|
||||
{
|
||||
iOSSubtitle_ = iOSSubtitle;
|
||||
setParameter("IOSSubtitle", iOSSubtitle);
|
||||
}
|
||||
|
||||
std::string PushRequest::getSmsSignName()const
|
||||
{
|
||||
return smsSignName_;
|
||||
}
|
||||
|
||||
void PushRequest::setSmsSignName(const std::string& smsSignName)
|
||||
{
|
||||
smsSignName_ = smsSignName;
|
||||
setParameter("SmsSignName", smsSignName);
|
||||
}
|
||||
|
||||
bool PushRequest::getIOSRemind()const
|
||||
{
|
||||
return iOSRemind_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSRemind(bool iOSRemind)
|
||||
{
|
||||
iOSRemind_ = iOSRemind;
|
||||
setParameter("IOSRemind", std::to_string(iOSRemind));
|
||||
}
|
||||
|
||||
long PushRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void PushRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string PushRequest::getTargetValue()const
|
||||
{
|
||||
return targetValue_;
|
||||
}
|
||||
|
||||
void PushRequest::setTargetValue(const std::string& targetValue)
|
||||
{
|
||||
targetValue_ = targetValue;
|
||||
setParameter("TargetValue", targetValue);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidMusic()const
|
||||
{
|
||||
return androidMusic_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidMusic(const std::string& androidMusic)
|
||||
{
|
||||
androidMusic_ = androidMusic;
|
||||
setParameter("AndroidMusic", androidMusic);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidXiaoMiActivity()const
|
||||
{
|
||||
return androidXiaoMiActivity_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidXiaoMiActivity(const std::string& androidXiaoMiActivity)
|
||||
{
|
||||
androidXiaoMiActivity_ = androidXiaoMiActivity;
|
||||
setParameter("AndroidXiaoMiActivity", androidXiaoMiActivity);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidXiaoMiNotifyTitle()const
|
||||
{
|
||||
return androidXiaoMiNotifyTitle_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidXiaoMiNotifyTitle(const std::string& androidXiaoMiNotifyTitle)
|
||||
{
|
||||
androidXiaoMiNotifyTitle_ = androidXiaoMiNotifyTitle;
|
||||
setParameter("AndroidXiaoMiNotifyTitle", androidXiaoMiNotifyTitle);
|
||||
}
|
||||
|
||||
std::string PushRequest::getPushType()const
|
||||
{
|
||||
return pushType_;
|
||||
}
|
||||
|
||||
void PushRequest::setPushType(const std::string& pushType)
|
||||
{
|
||||
pushType_ = pushType;
|
||||
setParameter("PushType", pushType);
|
||||
}
|
||||
|
||||
52
push/src/model/PushResult.cc
Normal file
52
push/src/model/PushResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/push/model/PushResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
PushResult::PushResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PushResult::PushResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PushResult::~PushResult()
|
||||
{}
|
||||
|
||||
void PushResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["MessageId"].isNull())
|
||||
messageId_ = value["MessageId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PushResult::getMessageId()const
|
||||
{
|
||||
return messageId_;
|
||||
}
|
||||
|
||||
60
push/src/model/QueryAliasesRequest.cc
Normal file
60
push/src/model/QueryAliasesRequest.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/push/model/QueryAliasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::QueryAliasesRequest;
|
||||
|
||||
QueryAliasesRequest::QueryAliasesRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "QueryAliases")
|
||||
{}
|
||||
|
||||
QueryAliasesRequest::~QueryAliasesRequest()
|
||||
{}
|
||||
|
||||
long QueryAliasesRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void QueryAliasesRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string QueryAliasesRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void QueryAliasesRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string QueryAliasesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryAliasesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
58
push/src/model/QueryAliasesResult.cc
Normal file
58
push/src/model/QueryAliasesResult.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/push/model/QueryAliasesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
QueryAliasesResult::QueryAliasesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAliasesResult::QueryAliasesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAliasesResult::~QueryAliasesResult()
|
||||
{}
|
||||
|
||||
void QueryAliasesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAliasInfos = value["AliasInfos"]["AliasInfo"];
|
||||
for (auto value : allAliasInfos)
|
||||
{
|
||||
AliasInfo aliasInfosObject;
|
||||
if(!value["AliasName"].isNull())
|
||||
aliasInfosObject.aliasName = value["AliasName"].asString();
|
||||
aliasInfos_.push_back(aliasInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryAliasesResult::AliasInfo> QueryAliasesResult::getAliasInfos()const
|
||||
{
|
||||
return aliasInfos_;
|
||||
}
|
||||
|
||||
60
push/src/model/QueryDeviceInfoRequest.cc
Normal file
60
push/src/model/QueryDeviceInfoRequest.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/push/model/QueryDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::QueryDeviceInfoRequest;
|
||||
|
||||
QueryDeviceInfoRequest::QueryDeviceInfoRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "QueryDeviceInfo")
|
||||
{}
|
||||
|
||||
QueryDeviceInfoRequest::~QueryDeviceInfoRequest()
|
||||
{}
|
||||
|
||||
long QueryDeviceInfoRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void QueryDeviceInfoRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string QueryDeviceInfoRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void QueryDeviceInfoRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string QueryDeviceInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryDeviceInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
71
push/src/model/QueryDeviceInfoResult.cc
Normal file
71
push/src/model/QueryDeviceInfoResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/push/model/QueryDeviceInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
QueryDeviceInfoResult::QueryDeviceInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryDeviceInfoResult::QueryDeviceInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryDeviceInfoResult::~QueryDeviceInfoResult()
|
||||
{}
|
||||
|
||||
void QueryDeviceInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto deviceInfoNode = value["DeviceInfo"];
|
||||
if(!deviceInfoNode["DeviceId"].isNull())
|
||||
deviceInfo_.deviceId = deviceInfoNode["DeviceId"].asString();
|
||||
if(!deviceInfoNode["DeviceType"].isNull())
|
||||
deviceInfo_.deviceType = deviceInfoNode["DeviceType"].asString();
|
||||
if(!deviceInfoNode["Account"].isNull())
|
||||
deviceInfo_.account = deviceInfoNode["Account"].asString();
|
||||
if(!deviceInfoNode["DeviceToken"].isNull())
|
||||
deviceInfo_.deviceToken = deviceInfoNode["DeviceToken"].asString();
|
||||
if(!deviceInfoNode["Tags"].isNull())
|
||||
deviceInfo_.tags = deviceInfoNode["Tags"].asString();
|
||||
if(!deviceInfoNode["Alias"].isNull())
|
||||
deviceInfo_.alias = deviceInfoNode["Alias"].asString();
|
||||
if(!deviceInfoNode["LastOnlineTime"].isNull())
|
||||
deviceInfo_.lastOnlineTime = deviceInfoNode["LastOnlineTime"].asString();
|
||||
if(!deviceInfoNode["Online"].isNull())
|
||||
deviceInfo_.online = deviceInfoNode["Online"].asString() == "true";
|
||||
if(!deviceInfoNode["PhoneNumber"].isNull())
|
||||
deviceInfo_.phoneNumber = deviceInfoNode["PhoneNumber"].asString();
|
||||
if(!deviceInfoNode["PushEnabled"].isNull())
|
||||
deviceInfo_.pushEnabled = deviceInfoNode["PushEnabled"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
QueryDeviceInfoResult::DeviceInfo QueryDeviceInfoResult::getDeviceInfo()const
|
||||
{
|
||||
return deviceInfo_;
|
||||
}
|
||||
|
||||
93
push/src/model/QueryDeviceStatRequest.cc
Normal file
93
push/src/model/QueryDeviceStatRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/push/model/QueryDeviceStatRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::QueryDeviceStatRequest;
|
||||
|
||||
QueryDeviceStatRequest::QueryDeviceStatRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "QueryDeviceStat")
|
||||
{}
|
||||
|
||||
QueryDeviceStatRequest::~QueryDeviceStatRequest()
|
||||
{}
|
||||
|
||||
std::string QueryDeviceStatRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void QueryDeviceStatRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long QueryDeviceStatRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void QueryDeviceStatRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string QueryDeviceStatRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void QueryDeviceStatRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string QueryDeviceStatRequest::getDeviceType()const
|
||||
{
|
||||
return deviceType_;
|
||||
}
|
||||
|
||||
void QueryDeviceStatRequest::setDeviceType(const std::string& deviceType)
|
||||
{
|
||||
deviceType_ = deviceType;
|
||||
setParameter("DeviceType", deviceType);
|
||||
}
|
||||
|
||||
std::string QueryDeviceStatRequest::getQueryType()const
|
||||
{
|
||||
return queryType_;
|
||||
}
|
||||
|
||||
void QueryDeviceStatRequest::setQueryType(const std::string& queryType)
|
||||
{
|
||||
queryType_ = queryType;
|
||||
setParameter("QueryType", queryType);
|
||||
}
|
||||
|
||||
std::string QueryDeviceStatRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryDeviceStatRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
62
push/src/model/QueryDeviceStatResult.cc
Normal file
62
push/src/model/QueryDeviceStatResult.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/push/model/QueryDeviceStatResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
QueryDeviceStatResult::QueryDeviceStatResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryDeviceStatResult::QueryDeviceStatResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryDeviceStatResult::~QueryDeviceStatResult()
|
||||
{}
|
||||
|
||||
void QueryDeviceStatResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAppDeviceStats = value["AppDeviceStats"]["AppDeviceStat"];
|
||||
for (auto value : allAppDeviceStats)
|
||||
{
|
||||
AppDeviceStat appDeviceStatsObject;
|
||||
if(!value["Time"].isNull())
|
||||
appDeviceStatsObject.time = value["Time"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
appDeviceStatsObject.count = std::stol(value["Count"].asString());
|
||||
if(!value["DeviceType"].isNull())
|
||||
appDeviceStatsObject.deviceType = value["DeviceType"].asString();
|
||||
appDeviceStats_.push_back(appDeviceStatsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryDeviceStatResult::AppDeviceStat> QueryDeviceStatResult::getAppDeviceStats()const
|
||||
{
|
||||
return appDeviceStats_;
|
||||
}
|
||||
|
||||
60
push/src/model/QueryDevicesByAccountRequest.cc
Normal file
60
push/src/model/QueryDevicesByAccountRequest.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/push/model/QueryDevicesByAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::QueryDevicesByAccountRequest;
|
||||
|
||||
QueryDevicesByAccountRequest::QueryDevicesByAccountRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "QueryDevicesByAccount")
|
||||
{}
|
||||
|
||||
QueryDevicesByAccountRequest::~QueryDevicesByAccountRequest()
|
||||
{}
|
||||
|
||||
long QueryDevicesByAccountRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void QueryDevicesByAccountRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string QueryDevicesByAccountRequest::getAccount()const
|
||||
{
|
||||
return account_;
|
||||
}
|
||||
|
||||
void QueryDevicesByAccountRequest::setAccount(const std::string& account)
|
||||
{
|
||||
account_ = account;
|
||||
setParameter("Account", account);
|
||||
}
|
||||
|
||||
std::string QueryDevicesByAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryDevicesByAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
53
push/src/model/QueryDevicesByAccountResult.cc
Normal file
53
push/src/model/QueryDevicesByAccountResult.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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/push/model/QueryDevicesByAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
QueryDevicesByAccountResult::QueryDevicesByAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryDevicesByAccountResult::QueryDevicesByAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryDevicesByAccountResult::~QueryDevicesByAccountResult()
|
||||
{}
|
||||
|
||||
void QueryDevicesByAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDeviceIds = value["DeviceIds"]["DeviceId"];
|
||||
for (const auto &item : allDeviceIds)
|
||||
deviceIds_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryDevicesByAccountResult::getDeviceIds()const
|
||||
{
|
||||
return deviceIds_;
|
||||
}
|
||||
|
||||
60
push/src/model/QueryDevicesByAliasRequest.cc
Normal file
60
push/src/model/QueryDevicesByAliasRequest.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/push/model/QueryDevicesByAliasRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::QueryDevicesByAliasRequest;
|
||||
|
||||
QueryDevicesByAliasRequest::QueryDevicesByAliasRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "QueryDevicesByAlias")
|
||||
{}
|
||||
|
||||
QueryDevicesByAliasRequest::~QueryDevicesByAliasRequest()
|
||||
{}
|
||||
|
||||
std::string QueryDevicesByAliasRequest::getAlias()const
|
||||
{
|
||||
return alias_;
|
||||
}
|
||||
|
||||
void QueryDevicesByAliasRequest::setAlias(const std::string& alias)
|
||||
{
|
||||
alias_ = alias;
|
||||
setParameter("Alias", alias);
|
||||
}
|
||||
|
||||
long QueryDevicesByAliasRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void QueryDevicesByAliasRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string QueryDevicesByAliasRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryDevicesByAliasRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
53
push/src/model/QueryDevicesByAliasResult.cc
Normal file
53
push/src/model/QueryDevicesByAliasResult.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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/push/model/QueryDevicesByAliasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
QueryDevicesByAliasResult::QueryDevicesByAliasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryDevicesByAliasResult::QueryDevicesByAliasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryDevicesByAliasResult::~QueryDevicesByAliasResult()
|
||||
{}
|
||||
|
||||
void QueryDevicesByAliasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDeviceIds = value["DeviceIds"]["DeviceId"];
|
||||
for (const auto &item : allDeviceIds)
|
||||
deviceIds_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryDevicesByAliasResult::getDeviceIds()const
|
||||
{
|
||||
return deviceIds_;
|
||||
}
|
||||
|
||||
104
push/src/model/QueryPushListRequest.cc
Normal file
104
push/src/model/QueryPushListRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/push/model/QueryPushListRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::QueryPushListRequest;
|
||||
|
||||
QueryPushListRequest::QueryPushListRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "QueryPushList")
|
||||
{}
|
||||
|
||||
QueryPushListRequest::~QueryPushListRequest()
|
||||
{}
|
||||
|
||||
int QueryPushListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryPushListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryPushListRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void QueryPushListRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long QueryPushListRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void QueryPushListRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string QueryPushListRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void QueryPushListRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int QueryPushListRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void QueryPushListRequest::setPage(int page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string QueryPushListRequest::getPushType()const
|
||||
{
|
||||
return pushType_;
|
||||
}
|
||||
|
||||
void QueryPushListRequest::setPushType(const std::string& pushType)
|
||||
{
|
||||
pushType_ = pushType;
|
||||
setParameter("PushType", pushType);
|
||||
}
|
||||
|
||||
std::string QueryPushListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryPushListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
93
push/src/model/QueryPushListResult.cc
Normal file
93
push/src/model/QueryPushListResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/push/model/QueryPushListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
QueryPushListResult::QueryPushListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryPushListResult::QueryPushListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryPushListResult::~QueryPushListResult()
|
||||
{}
|
||||
|
||||
void QueryPushListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPushMessageInfos = value["PushMessageInfos"]["PushMessageInfo"];
|
||||
for (auto value : allPushMessageInfos)
|
||||
{
|
||||
PushMessageInfo pushMessageInfosObject;
|
||||
if(!value["AppKey"].isNull())
|
||||
pushMessageInfosObject.appKey = std::stol(value["AppKey"].asString());
|
||||
if(!value["AppName"].isNull())
|
||||
pushMessageInfosObject.appName = value["AppName"].asString();
|
||||
if(!value["MessageId"].isNull())
|
||||
pushMessageInfosObject.messageId = value["MessageId"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
pushMessageInfosObject.type = value["Type"].asString();
|
||||
if(!value["DeviceType"].isNull())
|
||||
pushMessageInfosObject.deviceType = value["DeviceType"].asString();
|
||||
if(!value["PushTime"].isNull())
|
||||
pushMessageInfosObject.pushTime = value["PushTime"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
pushMessageInfosObject.title = value["Title"].asString();
|
||||
if(!value["Body"].isNull())
|
||||
pushMessageInfosObject.body = value["Body"].asString();
|
||||
pushMessageInfos_.push_back(pushMessageInfosObject);
|
||||
}
|
||||
if(!value["HasNext"].isNull())
|
||||
hasNext_ = value["HasNext"].asString() == "true";
|
||||
if(!value["Page"].isNull())
|
||||
page_ = std::stoi(value["Page"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int QueryPushListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int QueryPushListResult::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
std::vector<QueryPushListResult::PushMessageInfo> QueryPushListResult::getPushMessageInfos()const
|
||||
{
|
||||
return pushMessageInfos_;
|
||||
}
|
||||
|
||||
bool QueryPushListResult::getHasNext()const
|
||||
{
|
||||
return hasNext_;
|
||||
}
|
||||
|
||||
82
push/src/model/QueryPushStatByAppRequest.cc
Normal file
82
push/src/model/QueryPushStatByAppRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/push/model/QueryPushStatByAppRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::QueryPushStatByAppRequest;
|
||||
|
||||
QueryPushStatByAppRequest::QueryPushStatByAppRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "QueryPushStatByApp")
|
||||
{}
|
||||
|
||||
QueryPushStatByAppRequest::~QueryPushStatByAppRequest()
|
||||
{}
|
||||
|
||||
std::string QueryPushStatByAppRequest::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
}
|
||||
|
||||
void QueryPushStatByAppRequest::setGranularity(const std::string& granularity)
|
||||
{
|
||||
granularity_ = granularity;
|
||||
setParameter("Granularity", granularity);
|
||||
}
|
||||
|
||||
std::string QueryPushStatByAppRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void QueryPushStatByAppRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long QueryPushStatByAppRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void QueryPushStatByAppRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string QueryPushStatByAppRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void QueryPushStatByAppRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string QueryPushStatByAppRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryPushStatByAppRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
78
push/src/model/QueryPushStatByAppResult.cc
Normal file
78
push/src/model/QueryPushStatByAppResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/push/model/QueryPushStatByAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
QueryPushStatByAppResult::QueryPushStatByAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryPushStatByAppResult::QueryPushStatByAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryPushStatByAppResult::~QueryPushStatByAppResult()
|
||||
{}
|
||||
|
||||
void QueryPushStatByAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAppPushStats = value["AppPushStats"]["AppPushStat"];
|
||||
for (auto value : allAppPushStats)
|
||||
{
|
||||
AppPushStat appPushStatsObject;
|
||||
if(!value["Time"].isNull())
|
||||
appPushStatsObject.time = value["Time"].asString();
|
||||
if(!value["AcceptCount"].isNull())
|
||||
appPushStatsObject.acceptCount = std::stol(value["AcceptCount"].asString());
|
||||
if(!value["SentCount"].isNull())
|
||||
appPushStatsObject.sentCount = std::stol(value["SentCount"].asString());
|
||||
if(!value["ReceivedCount"].isNull())
|
||||
appPushStatsObject.receivedCount = std::stol(value["ReceivedCount"].asString());
|
||||
if(!value["OpenedCount"].isNull())
|
||||
appPushStatsObject.openedCount = std::stol(value["OpenedCount"].asString());
|
||||
if(!value["DeletedCount"].isNull())
|
||||
appPushStatsObject.deletedCount = std::stol(value["DeletedCount"].asString());
|
||||
if(!value["SmsSentCount"].isNull())
|
||||
appPushStatsObject.smsSentCount = std::stol(value["SmsSentCount"].asString());
|
||||
if(!value["SmsSkipCount"].isNull())
|
||||
appPushStatsObject.smsSkipCount = std::stol(value["SmsSkipCount"].asString());
|
||||
if(!value["SmsFailedCount"].isNull())
|
||||
appPushStatsObject.smsFailedCount = std::stol(value["SmsFailedCount"].asString());
|
||||
if(!value["SmsReceiveSuccessCount"].isNull())
|
||||
appPushStatsObject.smsReceiveSuccessCount = std::stol(value["SmsReceiveSuccessCount"].asString());
|
||||
if(!value["SmsReceiveFailedCount"].isNull())
|
||||
appPushStatsObject.smsReceiveFailedCount = std::stol(value["SmsReceiveFailedCount"].asString());
|
||||
appPushStats_.push_back(appPushStatsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryPushStatByAppResult::AppPushStat> QueryPushStatByAppResult::getAppPushStats()const
|
||||
{
|
||||
return appPushStats_;
|
||||
}
|
||||
|
||||
60
push/src/model/QueryPushStatByMsgRequest.cc
Normal file
60
push/src/model/QueryPushStatByMsgRequest.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/push/model/QueryPushStatByMsgRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::QueryPushStatByMsgRequest;
|
||||
|
||||
QueryPushStatByMsgRequest::QueryPushStatByMsgRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "QueryPushStatByMsg")
|
||||
{}
|
||||
|
||||
QueryPushStatByMsgRequest::~QueryPushStatByMsgRequest()
|
||||
{}
|
||||
|
||||
long QueryPushStatByMsgRequest::getMessageId()const
|
||||
{
|
||||
return messageId_;
|
||||
}
|
||||
|
||||
void QueryPushStatByMsgRequest::setMessageId(long messageId)
|
||||
{
|
||||
messageId_ = messageId;
|
||||
setParameter("MessageId", std::to_string(messageId));
|
||||
}
|
||||
|
||||
long QueryPushStatByMsgRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void QueryPushStatByMsgRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string QueryPushStatByMsgRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryPushStatByMsgRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
78
push/src/model/QueryPushStatByMsgResult.cc
Normal file
78
push/src/model/QueryPushStatByMsgResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/push/model/QueryPushStatByMsgResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
QueryPushStatByMsgResult::QueryPushStatByMsgResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryPushStatByMsgResult::QueryPushStatByMsgResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryPushStatByMsgResult::~QueryPushStatByMsgResult()
|
||||
{}
|
||||
|
||||
void QueryPushStatByMsgResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPushStats = value["PushStats"]["PushStat"];
|
||||
for (auto value : allPushStats)
|
||||
{
|
||||
PushStat pushStatsObject;
|
||||
if(!value["MessageId"].isNull())
|
||||
pushStatsObject.messageId = value["MessageId"].asString();
|
||||
if(!value["AcceptCount"].isNull())
|
||||
pushStatsObject.acceptCount = std::stol(value["AcceptCount"].asString());
|
||||
if(!value["SentCount"].isNull())
|
||||
pushStatsObject.sentCount = std::stol(value["SentCount"].asString());
|
||||
if(!value["ReceivedCount"].isNull())
|
||||
pushStatsObject.receivedCount = std::stol(value["ReceivedCount"].asString());
|
||||
if(!value["OpenedCount"].isNull())
|
||||
pushStatsObject.openedCount = std::stol(value["OpenedCount"].asString());
|
||||
if(!value["DeletedCount"].isNull())
|
||||
pushStatsObject.deletedCount = std::stol(value["DeletedCount"].asString());
|
||||
if(!value["SmsSentCount"].isNull())
|
||||
pushStatsObject.smsSentCount = std::stol(value["SmsSentCount"].asString());
|
||||
if(!value["SmsSkipCount"].isNull())
|
||||
pushStatsObject.smsSkipCount = std::stol(value["SmsSkipCount"].asString());
|
||||
if(!value["SmsFailedCount"].isNull())
|
||||
pushStatsObject.smsFailedCount = std::stol(value["SmsFailedCount"].asString());
|
||||
if(!value["SmsReceiveSuccessCount"].isNull())
|
||||
pushStatsObject.smsReceiveSuccessCount = std::stol(value["SmsReceiveSuccessCount"].asString());
|
||||
if(!value["SmsReceiveFailedCount"].isNull())
|
||||
pushStatsObject.smsReceiveFailedCount = std::stol(value["SmsReceiveFailedCount"].asString());
|
||||
pushStats_.push_back(pushStatsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryPushStatByMsgResult::PushStat> QueryPushStatByMsgResult::getPushStats()const
|
||||
{
|
||||
return pushStats_;
|
||||
}
|
||||
|
||||
71
push/src/model/QueryTagsRequest.cc
Normal file
71
push/src/model/QueryTagsRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/push/model/QueryTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::QueryTagsRequest;
|
||||
|
||||
QueryTagsRequest::QueryTagsRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "QueryTags")
|
||||
{}
|
||||
|
||||
QueryTagsRequest::~QueryTagsRequest()
|
||||
{}
|
||||
|
||||
std::string QueryTagsRequest::getClientKey()const
|
||||
{
|
||||
return clientKey_;
|
||||
}
|
||||
|
||||
void QueryTagsRequest::setClientKey(const std::string& clientKey)
|
||||
{
|
||||
clientKey_ = clientKey;
|
||||
setParameter("ClientKey", clientKey);
|
||||
}
|
||||
|
||||
long QueryTagsRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void QueryTagsRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string QueryTagsRequest::getKeyType()const
|
||||
{
|
||||
return keyType_;
|
||||
}
|
||||
|
||||
void QueryTagsRequest::setKeyType(const std::string& keyType)
|
||||
{
|
||||
keyType_ = keyType;
|
||||
setParameter("KeyType", keyType);
|
||||
}
|
||||
|
||||
std::string QueryTagsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryTagsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
58
push/src/model/QueryTagsResult.cc
Normal file
58
push/src/model/QueryTagsResult.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/push/model/QueryTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
QueryTagsResult::QueryTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryTagsResult::QueryTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryTagsResult::~QueryTagsResult()
|
||||
{}
|
||||
|
||||
void QueryTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagInfos = value["TagInfos"]["TagInfo"];
|
||||
for (auto value : allTagInfos)
|
||||
{
|
||||
TagInfo tagInfosObject;
|
||||
if(!value["TagName"].isNull())
|
||||
tagInfosObject.tagName = value["TagName"].asString();
|
||||
tagInfos_.push_back(tagInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryTagsResult::TagInfo> QueryTagsResult::getTagInfos()const
|
||||
{
|
||||
return tagInfos_;
|
||||
}
|
||||
|
||||
82
push/src/model/QueryUniqueDeviceStatRequest.cc
Normal file
82
push/src/model/QueryUniqueDeviceStatRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/push/model/QueryUniqueDeviceStatRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::QueryUniqueDeviceStatRequest;
|
||||
|
||||
QueryUniqueDeviceStatRequest::QueryUniqueDeviceStatRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "QueryUniqueDeviceStat")
|
||||
{}
|
||||
|
||||
QueryUniqueDeviceStatRequest::~QueryUniqueDeviceStatRequest()
|
||||
{}
|
||||
|
||||
std::string QueryUniqueDeviceStatRequest::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
}
|
||||
|
||||
void QueryUniqueDeviceStatRequest::setGranularity(const std::string& granularity)
|
||||
{
|
||||
granularity_ = granularity;
|
||||
setParameter("Granularity", granularity);
|
||||
}
|
||||
|
||||
std::string QueryUniqueDeviceStatRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void QueryUniqueDeviceStatRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long QueryUniqueDeviceStatRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void QueryUniqueDeviceStatRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string QueryUniqueDeviceStatRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void QueryUniqueDeviceStatRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string QueryUniqueDeviceStatRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryUniqueDeviceStatRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
60
push/src/model/QueryUniqueDeviceStatResult.cc
Normal file
60
push/src/model/QueryUniqueDeviceStatResult.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/push/model/QueryUniqueDeviceStatResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
QueryUniqueDeviceStatResult::QueryUniqueDeviceStatResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryUniqueDeviceStatResult::QueryUniqueDeviceStatResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryUniqueDeviceStatResult::~QueryUniqueDeviceStatResult()
|
||||
{}
|
||||
|
||||
void QueryUniqueDeviceStatResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAppDeviceStats = value["AppDeviceStats"]["AppDeviceStat"];
|
||||
for (auto value : allAppDeviceStats)
|
||||
{
|
||||
AppDeviceStat appDeviceStatsObject;
|
||||
if(!value["Time"].isNull())
|
||||
appDeviceStatsObject.time = value["Time"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
appDeviceStatsObject.count = std::stol(value["Count"].asString());
|
||||
appDeviceStats_.push_back(appDeviceStatsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryUniqueDeviceStatResult::AppDeviceStat> QueryUniqueDeviceStatResult::getAppDeviceStats()const
|
||||
{
|
||||
return appDeviceStats_;
|
||||
}
|
||||
|
||||
60
push/src/model/RemoveTagRequest.cc
Normal file
60
push/src/model/RemoveTagRequest.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/push/model/RemoveTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::RemoveTagRequest;
|
||||
|
||||
RemoveTagRequest::RemoveTagRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "RemoveTag")
|
||||
{}
|
||||
|
||||
RemoveTagRequest::~RemoveTagRequest()
|
||||
{}
|
||||
|
||||
std::string RemoveTagRequest::getTagName()const
|
||||
{
|
||||
return tagName_;
|
||||
}
|
||||
|
||||
void RemoveTagRequest::setTagName(const std::string& tagName)
|
||||
{
|
||||
tagName_ = tagName;
|
||||
setParameter("TagName", tagName);
|
||||
}
|
||||
|
||||
long RemoveTagRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void RemoveTagRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string RemoveTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void RemoveTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
push/src/model/RemoveTagResult.cc
Normal file
45
push/src/model/RemoveTagResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/push/model/RemoveTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
RemoveTagResult::RemoveTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemoveTagResult::RemoveTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemoveTagResult::~RemoveTagResult()
|
||||
{}
|
||||
|
||||
void RemoveTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
82
push/src/model/UnbindAliasRequest.cc
Normal file
82
push/src/model/UnbindAliasRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/push/model/UnbindAliasRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::UnbindAliasRequest;
|
||||
|
||||
UnbindAliasRequest::UnbindAliasRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "UnbindAlias")
|
||||
{}
|
||||
|
||||
UnbindAliasRequest::~UnbindAliasRequest()
|
||||
{}
|
||||
|
||||
std::string UnbindAliasRequest::getAliasName()const
|
||||
{
|
||||
return aliasName_;
|
||||
}
|
||||
|
||||
void UnbindAliasRequest::setAliasName(const std::string& aliasName)
|
||||
{
|
||||
aliasName_ = aliasName;
|
||||
setParameter("AliasName", aliasName);
|
||||
}
|
||||
|
||||
long UnbindAliasRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void UnbindAliasRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string UnbindAliasRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void UnbindAliasRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string UnbindAliasRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UnbindAliasRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool UnbindAliasRequest::getUnbindAll()const
|
||||
{
|
||||
return unbindAll_;
|
||||
}
|
||||
|
||||
void UnbindAliasRequest::setUnbindAll(bool unbindAll)
|
||||
{
|
||||
unbindAll_ = unbindAll;
|
||||
setParameter("UnbindAll", std::to_string(unbindAll));
|
||||
}
|
||||
|
||||
45
push/src/model/UnbindAliasResult.cc
Normal file
45
push/src/model/UnbindAliasResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/push/model/UnbindAliasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
UnbindAliasResult::UnbindAliasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindAliasResult::UnbindAliasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindAliasResult::~UnbindAliasResult()
|
||||
{}
|
||||
|
||||
void UnbindAliasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
push/src/model/UnbindPhoneRequest.cc
Normal file
60
push/src/model/UnbindPhoneRequest.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/push/model/UnbindPhoneRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::UnbindPhoneRequest;
|
||||
|
||||
UnbindPhoneRequest::UnbindPhoneRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "UnbindPhone")
|
||||
{}
|
||||
|
||||
UnbindPhoneRequest::~UnbindPhoneRequest()
|
||||
{}
|
||||
|
||||
long UnbindPhoneRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void UnbindPhoneRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string UnbindPhoneRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void UnbindPhoneRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string UnbindPhoneRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UnbindPhoneRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
push/src/model/UnbindPhoneResult.cc
Normal file
45
push/src/model/UnbindPhoneResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/push/model/UnbindPhoneResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
UnbindPhoneResult::UnbindPhoneResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindPhoneResult::UnbindPhoneResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindPhoneResult::~UnbindPhoneResult()
|
||||
{}
|
||||
|
||||
void UnbindPhoneResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
82
push/src/model/UnbindTagRequest.cc
Normal file
82
push/src/model/UnbindTagRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/push/model/UnbindTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Push::Model::UnbindTagRequest;
|
||||
|
||||
UnbindTagRequest::UnbindTagRequest() :
|
||||
RpcServiceRequest("push", "2016-08-01", "UnbindTag")
|
||||
{}
|
||||
|
||||
UnbindTagRequest::~UnbindTagRequest()
|
||||
{}
|
||||
|
||||
std::string UnbindTagRequest::getTagName()const
|
||||
{
|
||||
return tagName_;
|
||||
}
|
||||
|
||||
void UnbindTagRequest::setTagName(const std::string& tagName)
|
||||
{
|
||||
tagName_ = tagName;
|
||||
setParameter("TagName", tagName);
|
||||
}
|
||||
|
||||
std::string UnbindTagRequest::getClientKey()const
|
||||
{
|
||||
return clientKey_;
|
||||
}
|
||||
|
||||
void UnbindTagRequest::setClientKey(const std::string& clientKey)
|
||||
{
|
||||
clientKey_ = clientKey;
|
||||
setParameter("ClientKey", clientKey);
|
||||
}
|
||||
|
||||
long UnbindTagRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void UnbindTagRequest::setAppKey(long appKey)
|
||||
{
|
||||
appKey_ = appKey;
|
||||
setParameter("AppKey", std::to_string(appKey));
|
||||
}
|
||||
|
||||
std::string UnbindTagRequest::getKeyType()const
|
||||
{
|
||||
return keyType_;
|
||||
}
|
||||
|
||||
void UnbindTagRequest::setKeyType(const std::string& keyType)
|
||||
{
|
||||
keyType_ = keyType;
|
||||
setParameter("KeyType", keyType);
|
||||
}
|
||||
|
||||
std::string UnbindTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UnbindTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
push/src/model/UnbindTagResult.cc
Normal file
45
push/src/model/UnbindTagResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/push/model/UnbindTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Push;
|
||||
using namespace AlibabaCloud::Push::Model;
|
||||
|
||||
UnbindTagResult::UnbindTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindTagResult::UnbindTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindTagResult::~UnbindTagResult()
|
||||
{}
|
||||
|
||||
void UnbindTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user