Supported Trim, AndroidVivoPushMode, iOSInterruptionLevel, iOSRelevanceScore for Push and MassPush.

This commit is contained in:
sdk-team
2022-03-29 08:35:48 +00:00
parent 56cbac37fc
commit 7052337f54
76 changed files with 3224 additions and 3817 deletions

View File

@@ -1,73 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/push/model/BindAliasRequest.h>
using AlibabaCloud::Push::Model::BindAliasRequest;
BindAliasRequest::BindAliasRequest() :
RpcServiceRequest("push", "2016-08-01", "BindAlias")
{
setMethod(HttpRequest::Method::Post);
}
BindAliasRequest::~BindAliasRequest()
{}
std::string BindAliasRequest::getDeviceId()const
{
return deviceId_;
*/
#include <alibabacloud/push/model/BindAliasRequest.h>
using AlibabaCloud::Push::Model::BindAliasRequest;
BindAliasRequest::BindAliasRequest()
: RpcServiceRequest("push", "2016-08-01", "BindAlias") {
setMethod(HttpRequest::Method::Post);
}
void BindAliasRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
BindAliasRequest::~BindAliasRequest() {}
std::string BindAliasRequest::getDeviceId() const {
return deviceId_;
}
std::string BindAliasRequest::getAccessKeyId()const
{
return accessKeyId_;
void BindAliasRequest::setDeviceId(const std::string &deviceId) {
deviceId_ = deviceId;
setParameter(std::string("DeviceId"), deviceId);
}
void BindAliasRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string BindAliasRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string BindAliasRequest::getAliasName()const
{
return aliasName_;
void BindAliasRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void BindAliasRequest::setAliasName(const std::string& aliasName)
{
aliasName_ = aliasName;
setParameter("AliasName", aliasName);
std::string BindAliasRequest::getAliasName() const {
return aliasName_;
}
long BindAliasRequest::getAppKey()const
{
return appKey_;
void BindAliasRequest::setAliasName(const std::string &aliasName) {
aliasName_ = aliasName;
setParameter(std::string("AliasName"), aliasName);
}
void BindAliasRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long BindAliasRequest::getAppKey() const {
return appKey_;
}
void BindAliasRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,73 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/push/model/BindPhoneRequest.h>
using AlibabaCloud::Push::Model::BindPhoneRequest;
BindPhoneRequest::BindPhoneRequest() :
RpcServiceRequest("push", "2016-08-01", "BindPhone")
{
setMethod(HttpRequest::Method::Post);
}
BindPhoneRequest::~BindPhoneRequest()
{}
std::string BindPhoneRequest::getPhoneNumber()const
{
return phoneNumber_;
*/
#include <alibabacloud/push/model/BindPhoneRequest.h>
using AlibabaCloud::Push::Model::BindPhoneRequest;
BindPhoneRequest::BindPhoneRequest()
: RpcServiceRequest("push", "2016-08-01", "BindPhone") {
setMethod(HttpRequest::Method::Post);
}
void BindPhoneRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
BindPhoneRequest::~BindPhoneRequest() {}
std::string BindPhoneRequest::getPhoneNumber() const {
return phoneNumber_;
}
std::string BindPhoneRequest::getDeviceId()const
{
return deviceId_;
void BindPhoneRequest::setPhoneNumber(const std::string &phoneNumber) {
phoneNumber_ = phoneNumber;
setParameter(std::string("PhoneNumber"), phoneNumber);
}
void BindPhoneRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
std::string BindPhoneRequest::getDeviceId() const {
return deviceId_;
}
std::string BindPhoneRequest::getAccessKeyId()const
{
return accessKeyId_;
void BindPhoneRequest::setDeviceId(const std::string &deviceId) {
deviceId_ = deviceId;
setParameter(std::string("DeviceId"), deviceId);
}
void BindPhoneRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string BindPhoneRequest::getAccessKeyId() const {
return accessKeyId_;
}
long BindPhoneRequest::getAppKey()const
{
return appKey_;
void BindPhoneRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void BindPhoneRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long BindPhoneRequest::getAppKey() const {
return appKey_;
}
void BindPhoneRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,84 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/push/model/BindTagRequest.h>
using AlibabaCloud::Push::Model::BindTagRequest;
BindTagRequest::BindTagRequest() :
RpcServiceRequest("push", "2016-08-01", "BindTag")
{
setMethod(HttpRequest::Method::Post);
}
BindTagRequest::~BindTagRequest()
{}
std::string BindTagRequest::getKeyType()const
{
return keyType_;
*/
#include <alibabacloud/push/model/BindTagRequest.h>
using AlibabaCloud::Push::Model::BindTagRequest;
BindTagRequest::BindTagRequest()
: RpcServiceRequest("push", "2016-08-01", "BindTag") {
setMethod(HttpRequest::Method::Post);
}
void BindTagRequest::setKeyType(const std::string& keyType)
{
keyType_ = keyType;
setParameter("KeyType", keyType);
BindTagRequest::~BindTagRequest() {}
std::string BindTagRequest::getKeyType() const {
return keyType_;
}
std::string BindTagRequest::getAccessKeyId()const
{
return accessKeyId_;
void BindTagRequest::setKeyType(const std::string &keyType) {
keyType_ = keyType;
setParameter(std::string("KeyType"), keyType);
}
void BindTagRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string BindTagRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string BindTagRequest::getTagName()const
{
return tagName_;
void BindTagRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void BindTagRequest::setTagName(const std::string& tagName)
{
tagName_ = tagName;
setParameter("TagName", tagName);
std::string BindTagRequest::getTagName() const {
return tagName_;
}
std::string BindTagRequest::getClientKey()const
{
return clientKey_;
void BindTagRequest::setTagName(const std::string &tagName) {
tagName_ = tagName;
setParameter(std::string("TagName"), tagName);
}
void BindTagRequest::setClientKey(const std::string& clientKey)
{
clientKey_ = clientKey;
setParameter("ClientKey", clientKey);
std::string BindTagRequest::getClientKey() const {
return clientKey_;
}
long BindTagRequest::getAppKey()const
{
return appKey_;
void BindTagRequest::setClientKey(const std::string &clientKey) {
clientKey_ = clientKey;
setParameter(std::string("ClientKey"), clientKey);
}
void BindTagRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long BindTagRequest::getAppKey() const {
return appKey_;
}
void BindTagRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,62 +1,54 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
CancelPushRequest::~CancelPushRequest()
{}
long CancelPushRequest::getMessageId()const
{
return messageId_;
*/
#include <alibabacloud/push/model/CancelPushRequest.h>
using AlibabaCloud::Push::Model::CancelPushRequest;
CancelPushRequest::CancelPushRequest()
: RpcServiceRequest("push", "2016-08-01", "CancelPush") {
setMethod(HttpRequest::Method::Post);
}
void CancelPushRequest::setMessageId(long messageId)
{
messageId_ = messageId;
setParameter("MessageId", std::to_string(messageId));
CancelPushRequest::~CancelPushRequest() {}
long CancelPushRequest::getMessageId() const {
return messageId_;
}
std::string CancelPushRequest::getAccessKeyId()const
{
return accessKeyId_;
void CancelPushRequest::setMessageId(long messageId) {
messageId_ = messageId;
setParameter(std::string("MessageId"), std::to_string(messageId));
}
void CancelPushRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string CancelPushRequest::getAccessKeyId() const {
return accessKeyId_;
}
long CancelPushRequest::getAppKey()const
{
return appKey_;
void CancelPushRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void CancelPushRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long CancelPushRequest::getAppKey() const {
return appKey_;
}
void CancelPushRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,51 +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/CheckCertificateRequest.h>
using AlibabaCloud::Push::Model::CheckCertificateRequest;
CheckCertificateRequest::CheckCertificateRequest() :
RpcServiceRequest("push", "2016-08-01", "CheckCertificate")
{
setMethod(HttpRequest::Method::Post);
}
CheckCertificateRequest::~CheckCertificateRequest()
{}
std::string CheckCertificateRequest::getAccessKeyId()const
{
return accessKeyId_;
*/
#include <alibabacloud/push/model/CheckCertificateRequest.h>
using AlibabaCloud::Push::Model::CheckCertificateRequest;
CheckCertificateRequest::CheckCertificateRequest()
: RpcServiceRequest("push", "2016-08-01", "CheckCertificate") {
setMethod(HttpRequest::Method::Post);
}
void CheckCertificateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
CheckCertificateRequest::~CheckCertificateRequest() {}
std::string CheckCertificateRequest::getAccessKeyId() const {
return accessKeyId_;
}
long CheckCertificateRequest::getAppKey()const
{
return appKey_;
void CheckCertificateRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void CheckCertificateRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long CheckCertificateRequest::getAppKey() const {
return appKey_;
}
void CheckCertificateRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -40,15 +40,15 @@ void CheckCertificateResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto productionCertInfoNode = value["ProductionCertInfo"];
if(!productionCertInfoNode["ExipreTime"].isNull())
productionCertInfo_.exipreTime = std::stol(productionCertInfoNode["ExipreTime"].asString());
if(!productionCertInfoNode["Status"].isNull())
productionCertInfo_.status = productionCertInfoNode["Status"].asString();
if(!productionCertInfoNode["ExipreTime"].isNull())
productionCertInfo_.exipreTime = std::stol(productionCertInfoNode["ExipreTime"].asString());
auto developmentCertInfoNode = value["DevelopmentCertInfo"];
if(!developmentCertInfoNode["ExipreTime"].isNull())
developmentCertInfo_.exipreTime = std::stol(developmentCertInfoNode["ExipreTime"].asString());
if(!developmentCertInfoNode["Status"].isNull())
developmentCertInfo_.status = developmentCertInfoNode["Status"].asString();
if(!developmentCertInfoNode["ExipreTime"].isNull())
developmentCertInfo_.exipreTime = std::stol(developmentCertInfoNode["ExipreTime"].asString());
if(!value["Android"].isNull())
android_ = value["Android"].asString() == "true";
if(!value["IOS"].isNull())

View File

@@ -1,62 +1,54 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
CheckDeviceRequest::~CheckDeviceRequest()
{}
std::string CheckDeviceRequest::getDeviceId()const
{
return deviceId_;
*/
#include <alibabacloud/push/model/CheckDeviceRequest.h>
using AlibabaCloud::Push::Model::CheckDeviceRequest;
CheckDeviceRequest::CheckDeviceRequest()
: RpcServiceRequest("push", "2016-08-01", "CheckDevice") {
setMethod(HttpRequest::Method::Post);
}
void CheckDeviceRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
CheckDeviceRequest::~CheckDeviceRequest() {}
std::string CheckDeviceRequest::getDeviceId() const {
return deviceId_;
}
std::string CheckDeviceRequest::getAccessKeyId()const
{
return accessKeyId_;
void CheckDeviceRequest::setDeviceId(const std::string &deviceId) {
deviceId_ = deviceId;
setParameter(std::string("DeviceId"), deviceId);
}
void CheckDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string CheckDeviceRequest::getAccessKeyId() const {
return accessKeyId_;
}
long CheckDeviceRequest::getAppKey()const
{
return appKey_;
void CheckDeviceRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void CheckDeviceRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long CheckDeviceRequest::getAppKey() const {
return appKey_;
}
void CheckDeviceRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,62 +1,54 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
CheckDevicesRequest::~CheckDevicesRequest()
{}
std::string CheckDevicesRequest::getDeviceIds()const
{
return deviceIds_;
*/
#include <alibabacloud/push/model/CheckDevicesRequest.h>
using AlibabaCloud::Push::Model::CheckDevicesRequest;
CheckDevicesRequest::CheckDevicesRequest()
: RpcServiceRequest("push", "2016-08-01", "CheckDevices") {
setMethod(HttpRequest::Method::Post);
}
void CheckDevicesRequest::setDeviceIds(const std::string& deviceIds)
{
deviceIds_ = deviceIds;
setParameter("DeviceIds", deviceIds);
CheckDevicesRequest::~CheckDevicesRequest() {}
std::string CheckDevicesRequest::getDeviceIds() const {
return deviceIds_;
}
std::string CheckDevicesRequest::getAccessKeyId()const
{
return accessKeyId_;
void CheckDevicesRequest::setDeviceIds(const std::string &deviceIds) {
deviceIds_ = deviceIds;
setParameter(std::string("DeviceIds"), deviceIds);
}
void CheckDevicesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string CheckDevicesRequest::getAccessKeyId() const {
return accessKeyId_;
}
long CheckDevicesRequest::getAppKey()const
{
return appKey_;
void CheckDevicesRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void CheckDevicesRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long CheckDevicesRequest::getAppKey() const {
return appKey_;
}
void CheckDevicesRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,62 +1,54 @@
/*
* 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/CompleteContinuouslyPushRequest.h>
using AlibabaCloud::Push::Model::CompleteContinuouslyPushRequest;
CompleteContinuouslyPushRequest::CompleteContinuouslyPushRequest() :
RpcServiceRequest("push", "2016-08-01", "CompleteContinuouslyPush")
{
setMethod(HttpRequest::Method::Post);
}
CompleteContinuouslyPushRequest::~CompleteContinuouslyPushRequest()
{}
std::string CompleteContinuouslyPushRequest::getMessageId()const
{
return messageId_;
*/
#include <alibabacloud/push/model/CompleteContinuouslyPushRequest.h>
using AlibabaCloud::Push::Model::CompleteContinuouslyPushRequest;
CompleteContinuouslyPushRequest::CompleteContinuouslyPushRequest()
: RpcServiceRequest("push", "2016-08-01", "CompleteContinuouslyPush") {
setMethod(HttpRequest::Method::Post);
}
void CompleteContinuouslyPushRequest::setMessageId(const std::string& messageId)
{
messageId_ = messageId;
setParameter("MessageId", messageId);
CompleteContinuouslyPushRequest::~CompleteContinuouslyPushRequest() {}
std::string CompleteContinuouslyPushRequest::getMessageId() const {
return messageId_;
}
std::string CompleteContinuouslyPushRequest::getAccessKeyId()const
{
return accessKeyId_;
void CompleteContinuouslyPushRequest::setMessageId(const std::string &messageId) {
messageId_ = messageId;
setParameter(std::string("MessageId"), messageId);
}
void CompleteContinuouslyPushRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string CompleteContinuouslyPushRequest::getAccessKeyId() const {
return accessKeyId_;
}
long CompleteContinuouslyPushRequest::getAppKey()const
{
return appKey_;
void CompleteContinuouslyPushRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void CompleteContinuouslyPushRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long CompleteContinuouslyPushRequest::getAppKey() const {
return appKey_;
}
void CompleteContinuouslyPushRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,84 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/push/model/ContinuouslyPushRequest.h>
using AlibabaCloud::Push::Model::ContinuouslyPushRequest;
ContinuouslyPushRequest::ContinuouslyPushRequest() :
RpcServiceRequest("push", "2016-08-01", "ContinuouslyPush")
{
setMethod(HttpRequest::Method::Post);
}
ContinuouslyPushRequest::~ContinuouslyPushRequest()
{}
std::string ContinuouslyPushRequest::getMessageId()const
{
return messageId_;
*/
#include <alibabacloud/push/model/ContinuouslyPushRequest.h>
using AlibabaCloud::Push::Model::ContinuouslyPushRequest;
ContinuouslyPushRequest::ContinuouslyPushRequest()
: RpcServiceRequest("push", "2016-08-01", "ContinuouslyPush") {
setMethod(HttpRequest::Method::Post);
}
void ContinuouslyPushRequest::setMessageId(const std::string& messageId)
{
messageId_ = messageId;
setParameter("MessageId", messageId);
ContinuouslyPushRequest::~ContinuouslyPushRequest() {}
std::string ContinuouslyPushRequest::getMessageId() const {
return messageId_;
}
std::string ContinuouslyPushRequest::getAccessKeyId()const
{
return accessKeyId_;
void ContinuouslyPushRequest::setMessageId(const std::string &messageId) {
messageId_ = messageId;
setParameter(std::string("MessageId"), messageId);
}
void ContinuouslyPushRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string ContinuouslyPushRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string ContinuouslyPushRequest::getTarget()const
{
return target_;
void ContinuouslyPushRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void ContinuouslyPushRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
std::string ContinuouslyPushRequest::getTarget() const {
return target_;
}
long ContinuouslyPushRequest::getAppKey()const
{
return appKey_;
void ContinuouslyPushRequest::setTarget(const std::string &target) {
target_ = target;
setParameter(std::string("Target"), target);
}
void ContinuouslyPushRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long ContinuouslyPushRequest::getAppKey() const {
return appKey_;
}
std::string ContinuouslyPushRequest::getTargetValue()const
{
return targetValue_;
void ContinuouslyPushRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}
void ContinuouslyPushRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
std::string ContinuouslyPushRequest::getTargetValue() const {
return targetValue_;
}
void ContinuouslyPushRequest::setTargetValue(const std::string &targetValue) {
targetValue_ = targetValue;
setParameter(std::string("TargetValue"), targetValue);
}

View File

@@ -1,40 +1,36 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
ListSummaryAppsRequest::~ListSummaryAppsRequest()
{}
std::string ListSummaryAppsRequest::getAccessKeyId()const
{
return accessKeyId_;
*/
#include <alibabacloud/push/model/ListSummaryAppsRequest.h>
using AlibabaCloud::Push::Model::ListSummaryAppsRequest;
ListSummaryAppsRequest::ListSummaryAppsRequest()
: RpcServiceRequest("push", "2016-08-01", "ListSummaryApps") {
setMethod(HttpRequest::Method::Post);
}
void ListSummaryAppsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
ListSummaryAppsRequest::~ListSummaryAppsRequest() {}
std::string ListSummaryAppsRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ListSummaryAppsRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}

View File

@@ -1,51 +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/ListTagsRequest.h>
using AlibabaCloud::Push::Model::ListTagsRequest;
ListTagsRequest::ListTagsRequest() :
RpcServiceRequest("push", "2016-08-01", "ListTags")
{
setMethod(HttpRequest::Method::Post);
}
ListTagsRequest::~ListTagsRequest()
{}
std::string ListTagsRequest::getAccessKeyId()const
{
return accessKeyId_;
*/
#include <alibabacloud/push/model/ListTagsRequest.h>
using AlibabaCloud::Push::Model::ListTagsRequest;
ListTagsRequest::ListTagsRequest()
: RpcServiceRequest("push", "2016-08-01", "ListTags") {
setMethod(HttpRequest::Method::Post);
}
void ListTagsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
ListTagsRequest::~ListTagsRequest() {}
std::string ListTagsRequest::getAccessKeyId() const {
return accessKeyId_;
}
long ListTagsRequest::getAppKey()const
{
return appKey_;
void ListTagsRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void ListTagsRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long ListTagsRequest::getAppKey() const {
return appKey_;
}
void ListTagsRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,120 +1,116 @@
/*
* 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/MassPushRequest.h>
using AlibabaCloud::Push::Model::MassPushRequest;
MassPushRequest::MassPushRequest() :
RpcServiceRequest("push", "2016-08-01", "MassPush")
{
setMethod(HttpRequest::Method::Post);
}
MassPushRequest::~MassPushRequest()
{}
std::string MassPushRequest::getAccessKeyId()const
{
return accessKeyId_;
*/
#include <alibabacloud/push/model/MassPushRequest.h>
using AlibabaCloud::Push::Model::MassPushRequest;
MassPushRequest::MassPushRequest()
: RpcServiceRequest("push", "2016-08-01", "MassPush") {
setMethod(HttpRequest::Method::Post);
}
void MassPushRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
MassPushRequest::~MassPushRequest() {}
std::string MassPushRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::vector<MassPushRequest::PushTask> MassPushRequest::getPushTask()const
{
return pushTask_;
void MassPushRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void MassPushRequest::setPushTask(const std::vector<PushTask>& pushTask)
{
pushTask_ = pushTask;
for(int dep1 = 0; dep1!= pushTask.size(); dep1++) {
auto pushTaskObj = pushTask.at(dep1);
std::string pushTaskObjStr = "PushTask." + std::to_string(dep1 + 1);
setParameter(pushTaskObjStr + ".AndroidNotificationBarType", std::to_string(pushTaskObj.androidNotificationBarType));
setParameter(pushTaskObjStr + ".Body", pushTaskObj.body);
setParameter(pushTaskObjStr + ".DeviceType", pushTaskObj.deviceType);
setParameter(pushTaskObjStr + ".PushTime", pushTaskObj.pushTime);
setParameter(pushTaskObjStr + ".SendSpeed", std::to_string(pushTaskObj.sendSpeed));
setParameter(pushTaskObjStr + ".AndroidNotificationHuaweiChannel", pushTaskObj.androidNotificationHuaweiChannel);
setParameter(pushTaskObjStr + ".AndroidPopupActivity", pushTaskObj.androidPopupActivity);
setParameter(pushTaskObjStr + ".IOSRemindBody", pushTaskObj.iOSRemindBody);
setParameter(pushTaskObjStr + ".AndroidNotifyType", pushTaskObj.androidNotifyType);
setParameter(pushTaskObjStr + ".AndroidPopupTitle", pushTaskObj.androidPopupTitle);
setParameter(pushTaskObjStr + ".AndroidMessageHuaweiCategory", pushTaskObj.androidMessageHuaweiCategory);
setParameter(pushTaskObjStr + ".IOSMusic", pushTaskObj.iOSMusic);
setParameter(pushTaskObjStr + ".IOSApnsEnv", pushTaskObj.iOSApnsEnv);
setParameter(pushTaskObjStr + ".IOSMutableContent", pushTaskObj.iOSMutableContent ? "true" : "false");
setParameter(pushTaskObjStr + ".AndroidNotificationBarPriority", std::to_string(pushTaskObj.androidNotificationBarPriority));
setParameter(pushTaskObjStr + ".ExpireTime", pushTaskObj.expireTime);
setParameter(pushTaskObjStr + ".AndroidImageUrl", pushTaskObj.androidImageUrl);
setParameter(pushTaskObjStr + ".AndroidNotificationVivoChannel", pushTaskObj.androidNotificationVivoChannel);
setParameter(pushTaskObjStr + ".IOSNotificationCategory", pushTaskObj.iOSNotificationCategory);
setParameter(pushTaskObjStr + ".AndroidNotificationXiaomiChannel", pushTaskObj.androidNotificationXiaomiChannel);
setParameter(pushTaskObjStr + ".StoreOffline", pushTaskObj.storeOffline ? "true" : "false");
setParameter(pushTaskObjStr + ".AndroidInboxBody", pushTaskObj.androidInboxBody);
setParameter(pushTaskObjStr + ".JobKey", pushTaskObj.jobKey);
setParameter(pushTaskObjStr + ".AndroidOpenUrl", pushTaskObj.androidOpenUrl);
setParameter(pushTaskObjStr + ".AndroidXiaoMiNotifyBody", pushTaskObj.androidXiaoMiNotifyBody);
setParameter(pushTaskObjStr + ".IOSSubtitle", pushTaskObj.iOSSubtitle);
setParameter(pushTaskObjStr + ".AndroidXiaomiBigPictureUrl", pushTaskObj.androidXiaomiBigPictureUrl);
setParameter(pushTaskObjStr + ".IOSRemind", pushTaskObj.iOSRemind ? "true" : "false");
setParameter(pushTaskObjStr + ".IOSNotificationThreadId", pushTaskObj.iOSNotificationThreadId);
setParameter(pushTaskObjStr + ".AndroidMusic", pushTaskObj.androidMusic);
setParameter(pushTaskObjStr + ".IOSNotificationCollapseId", pushTaskObj.iOSNotificationCollapseId);
setParameter(pushTaskObjStr + ".AndroidMessageHuaweiUrgency", pushTaskObj.androidMessageHuaweiUrgency);
setParameter(pushTaskObjStr + ".PushType", pushTaskObj.pushType);
setParameter(pushTaskObjStr + ".AndroidExtParameters", pushTaskObj.androidExtParameters);
setParameter(pushTaskObjStr + ".IOSBadge", std::to_string(pushTaskObj.iOSBadge));
setParameter(pushTaskObjStr + ".AndroidBigBody", pushTaskObj.androidBigBody);
setParameter(pushTaskObjStr + ".IOSBadgeAutoIncrement", pushTaskObj.iOSBadgeAutoIncrement ? "true" : "false");
setParameter(pushTaskObjStr + ".AndroidOpenType", pushTaskObj.androidOpenType);
setParameter(pushTaskObjStr + ".Title", pushTaskObj.title);
setParameter(pushTaskObjStr + ".AndroidRenderStyle", pushTaskObj.androidRenderStyle);
setParameter(pushTaskObjStr + ".IOSExtParameters", pushTaskObj.iOSExtParameters);
setParameter(pushTaskObjStr + ".AndroidXiaomiImageUrl", pushTaskObj.androidXiaomiImageUrl);
setParameter(pushTaskObjStr + ".AndroidPopupBody", pushTaskObj.androidPopupBody);
setParameter(pushTaskObjStr + ".AndroidBigPictureUrl", pushTaskObj.androidBigPictureUrl);
setParameter(pushTaskObjStr + ".IOSSilentNotification", pushTaskObj.iOSSilentNotification ? "true" : "false");
setParameter(pushTaskObjStr + ".SendChannels", pushTaskObj.sendChannels);
setParameter(pushTaskObjStr + ".Target", pushTaskObj.target);
setParameter(pushTaskObjStr + ".AndroidBigTitle", pushTaskObj.androidBigTitle);
setParameter(pushTaskObjStr + ".AndroidNotificationChannel", pushTaskObj.androidNotificationChannel);
setParameter(pushTaskObjStr + ".AndroidRemind", pushTaskObj.androidRemind ? "true" : "false");
setParameter(pushTaskObjStr + ".AndroidActivity", pushTaskObj.androidActivity);
setParameter(pushTaskObjStr + ".AndroidNotificationNotifyId", std::to_string(pushTaskObj.androidNotificationNotifyId));
setParameter(pushTaskObjStr + ".TargetValue", pushTaskObj.targetValue);
setParameter(pushTaskObjStr + ".AndroidXiaoMiNotifyTitle", pushTaskObj.androidXiaoMiNotifyTitle);
setParameter(pushTaskObjStr + ".AndroidXiaoMiActivity", pushTaskObj.androidXiaoMiActivity);
}
std::vector<MassPushRequest::PushTask> MassPushRequest::getPushTask() const {
return pushTask_;
}
long MassPushRequest::getAppKey()const
{
return appKey_;
void MassPushRequest::setPushTask(const std::vector<MassPushRequest::PushTask> &pushTask) {
pushTask_ = pushTask;
for(int dep1 = 0; dep1 != pushTask.size(); dep1++) {
auto pushTaskObj = pushTask.at(dep1);
std::string pushTaskObjStr = std::string("PushTask") + "." + std::to_string(dep1 + 1);
setBodyParameter(pushTaskObjStr + ".AndroidNotificationBarType", std::to_string(pushTaskObj.androidNotificationBarType));
setBodyParameter(pushTaskObjStr + ".Body", pushTaskObj.body);
setBodyParameter(pushTaskObjStr + ".DeviceType", pushTaskObj.deviceType);
setBodyParameter(pushTaskObjStr + ".PushTime", pushTaskObj.pushTime);
setBodyParameter(pushTaskObjStr + ".SendSpeed", std::to_string(pushTaskObj.sendSpeed));
setBodyParameter(pushTaskObjStr + ".AndroidNotificationHuaweiChannel", pushTaskObj.androidNotificationHuaweiChannel);
setBodyParameter(pushTaskObjStr + ".AndroidPopupActivity", pushTaskObj.androidPopupActivity);
setBodyParameter(pushTaskObjStr + ".iOSRemindBody", pushTaskObj.iOSRemindBody);
setBodyParameter(pushTaskObjStr + ".Trim", pushTaskObj.trim ? "true" : "false");
setBodyParameter(pushTaskObjStr + ".AndroidNotifyType", pushTaskObj.androidNotifyType);
setBodyParameter(pushTaskObjStr + ".AndroidPopupTitle", pushTaskObj.androidPopupTitle);
setBodyParameter(pushTaskObjStr + ".AndroidMessageHuaweiCategory", pushTaskObj.androidMessageHuaweiCategory);
setBodyParameter(pushTaskObjStr + ".iOSMusic", pushTaskObj.iOSMusic);
setBodyParameter(pushTaskObjStr + ".iOSApnsEnv", pushTaskObj.iOSApnsEnv);
setBodyParameter(pushTaskObjStr + ".iOSMutableContent", pushTaskObj.iOSMutableContent ? "true" : "false");
setBodyParameter(pushTaskObjStr + ".AndroidNotificationBarPriority", std::to_string(pushTaskObj.androidNotificationBarPriority));
setBodyParameter(pushTaskObjStr + ".ExpireTime", pushTaskObj.expireTime);
setBodyParameter(pushTaskObjStr + ".AndroidImageUrl", pushTaskObj.androidImageUrl);
setBodyParameter(pushTaskObjStr + ".AndroidNotificationVivoChannel", pushTaskObj.androidNotificationVivoChannel);
setBodyParameter(pushTaskObjStr + ".iOSNotificationCategory", pushTaskObj.iOSNotificationCategory);
setBodyParameter(pushTaskObjStr + ".AndroidNotificationXiaomiChannel", pushTaskObj.androidNotificationXiaomiChannel);
setBodyParameter(pushTaskObjStr + ".StoreOffline", pushTaskObj.storeOffline ? "true" : "false");
setBodyParameter(pushTaskObjStr + ".iOSRelevanceScore", std::to_string(pushTaskObj.iOSRelevanceScore));
setBodyParameter(pushTaskObjStr + ".AndroidVivoPushMode", std::to_string(pushTaskObj.androidVivoPushMode));
setBodyParameter(pushTaskObjStr + ".AndroidInboxBody", pushTaskObj.androidInboxBody);
setBodyParameter(pushTaskObjStr + ".JobKey", pushTaskObj.jobKey);
setBodyParameter(pushTaskObjStr + ".AndroidOpenUrl", pushTaskObj.androidOpenUrl);
setBodyParameter(pushTaskObjStr + ".AndroidXiaoMiNotifyBody", pushTaskObj.androidXiaoMiNotifyBody);
setBodyParameter(pushTaskObjStr + ".iOSSubtitle", pushTaskObj.iOSSubtitle);
setBodyParameter(pushTaskObjStr + ".AndroidXiaomiBigPictureUrl", pushTaskObj.androidXiaomiBigPictureUrl);
setBodyParameter(pushTaskObjStr + ".iOSRemind", pushTaskObj.iOSRemind ? "true" : "false");
setBodyParameter(pushTaskObjStr + ".iOSNotificationThreadId", pushTaskObj.iOSNotificationThreadId);
setBodyParameter(pushTaskObjStr + ".AndroidMusic", pushTaskObj.androidMusic);
setBodyParameter(pushTaskObjStr + ".iOSNotificationCollapseId", pushTaskObj.iOSNotificationCollapseId);
setBodyParameter(pushTaskObjStr + ".AndroidMessageHuaweiUrgency", pushTaskObj.androidMessageHuaweiUrgency);
setBodyParameter(pushTaskObjStr + ".PushType", pushTaskObj.pushType);
setBodyParameter(pushTaskObjStr + ".iOSInterruptionLevel", pushTaskObj.iOSInterruptionLevel);
setBodyParameter(pushTaskObjStr + ".AndroidExtParameters", pushTaskObj.androidExtParameters);
setBodyParameter(pushTaskObjStr + ".iOSBadge", std::to_string(pushTaskObj.iOSBadge));
setBodyParameter(pushTaskObjStr + ".AndroidBigBody", pushTaskObj.androidBigBody);
setBodyParameter(pushTaskObjStr + ".iOSBadgeAutoIncrement", pushTaskObj.iOSBadgeAutoIncrement ? "true" : "false");
setBodyParameter(pushTaskObjStr + ".AndroidOpenType", pushTaskObj.androidOpenType);
setBodyParameter(pushTaskObjStr + ".Title", pushTaskObj.title);
setBodyParameter(pushTaskObjStr + ".AndroidRenderStyle", pushTaskObj.androidRenderStyle);
setBodyParameter(pushTaskObjStr + ".iOSExtParameters", pushTaskObj.iOSExtParameters);
setBodyParameter(pushTaskObjStr + ".AndroidXiaomiImageUrl", pushTaskObj.androidXiaomiImageUrl);
setBodyParameter(pushTaskObjStr + ".AndroidPopupBody", pushTaskObj.androidPopupBody);
setBodyParameter(pushTaskObjStr + ".AndroidBigPictureUrl", pushTaskObj.androidBigPictureUrl);
setBodyParameter(pushTaskObjStr + ".iOSSilentNotification", pushTaskObj.iOSSilentNotification ? "true" : "false");
setBodyParameter(pushTaskObjStr + ".SendChannels", pushTaskObj.sendChannels);
setBodyParameter(pushTaskObjStr + ".Target", pushTaskObj.target);
setBodyParameter(pushTaskObjStr + ".AndroidBigTitle", pushTaskObj.androidBigTitle);
setBodyParameter(pushTaskObjStr + ".AndroidNotificationChannel", pushTaskObj.androidNotificationChannel);
setBodyParameter(pushTaskObjStr + ".AndroidRemind", pushTaskObj.androidRemind ? "true" : "false");
setBodyParameter(pushTaskObjStr + ".AndroidActivity", pushTaskObj.androidActivity);
setBodyParameter(pushTaskObjStr + ".AndroidNotificationNotifyId", std::to_string(pushTaskObj.androidNotificationNotifyId));
setBodyParameter(pushTaskObjStr + ".TargetValue", pushTaskObj.targetValue);
setBodyParameter(pushTaskObjStr + ".AndroidXiaoMiNotifyTitle", pushTaskObj.androidXiaoMiNotifyTitle);
setBodyParameter(pushTaskObjStr + ".AndroidXiaoMiActivity", pushTaskObj.androidXiaoMiActivity);
}
}
void MassPushRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long MassPushRequest::getAppKey() const {
return appKey_;
}
void MassPushRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,106 +1,90 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
PushMessageToAndroidRequest::~PushMessageToAndroidRequest()
{}
std::string PushMessageToAndroidRequest::getTitle()const
{
return title_;
*/
#include <alibabacloud/push/model/PushMessageToAndroidRequest.h>
using AlibabaCloud::Push::Model::PushMessageToAndroidRequest;
PushMessageToAndroidRequest::PushMessageToAndroidRequest()
: RpcServiceRequest("push", "2016-08-01", "PushMessageToAndroid") {
setMethod(HttpRequest::Method::Post);
}
void PushMessageToAndroidRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
PushMessageToAndroidRequest::~PushMessageToAndroidRequest() {}
std::string PushMessageToAndroidRequest::getTitle() const {
return title_;
}
std::string PushMessageToAndroidRequest::getBody()const
{
return body_;
void PushMessageToAndroidRequest::setTitle(const std::string &title) {
title_ = title;
setParameter(std::string("Title"), title);
}
void PushMessageToAndroidRequest::setBody(const std::string& body)
{
body_ = body;
setParameter("Body", body);
std::string PushMessageToAndroidRequest::getBody() const {
return body_;
}
std::string PushMessageToAndroidRequest::getJobKey()const
{
return jobKey_;
void PushMessageToAndroidRequest::setBody(const std::string &body) {
body_ = body;
setParameter(std::string("Body"), body);
}
void PushMessageToAndroidRequest::setJobKey(const std::string& jobKey)
{
jobKey_ = jobKey;
setParameter("JobKey", jobKey);
std::string PushMessageToAndroidRequest::getJobKey() const {
return jobKey_;
}
std::string PushMessageToAndroidRequest::getAccessKeyId()const
{
return accessKeyId_;
void PushMessageToAndroidRequest::setJobKey(const std::string &jobKey) {
jobKey_ = jobKey;
setParameter(std::string("JobKey"), jobKey);
}
void PushMessageToAndroidRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string PushMessageToAndroidRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string PushMessageToAndroidRequest::getTarget()const
{
return target_;
void PushMessageToAndroidRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void PushMessageToAndroidRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
std::string PushMessageToAndroidRequest::getTarget() const {
return target_;
}
long PushMessageToAndroidRequest::getAppKey()const
{
return appKey_;
void PushMessageToAndroidRequest::setTarget(const std::string &target) {
target_ = target;
setParameter(std::string("Target"), target);
}
void PushMessageToAndroidRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long PushMessageToAndroidRequest::getAppKey() const {
return appKey_;
}
std::string PushMessageToAndroidRequest::getTargetValue()const
{
return targetValue_;
void PushMessageToAndroidRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}
void PushMessageToAndroidRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
std::string PushMessageToAndroidRequest::getTargetValue() const {
return targetValue_;
}
void PushMessageToAndroidRequest::setTargetValue(const std::string &targetValue) {
targetValue_ = targetValue;
setParameter(std::string("TargetValue"), targetValue);
}

View File

@@ -1,106 +1,90 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
PushMessageToiOSRequest::~PushMessageToiOSRequest()
{}
std::string PushMessageToiOSRequest::getTitle()const
{
return title_;
*/
#include <alibabacloud/push/model/PushMessageToiOSRequest.h>
using AlibabaCloud::Push::Model::PushMessageToiOSRequest;
PushMessageToiOSRequest::PushMessageToiOSRequest()
: RpcServiceRequest("push", "2016-08-01", "PushMessageToiOS") {
setMethod(HttpRequest::Method::Post);
}
void PushMessageToiOSRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
PushMessageToiOSRequest::~PushMessageToiOSRequest() {}
std::string PushMessageToiOSRequest::getTitle() const {
return title_;
}
std::string PushMessageToiOSRequest::getBody()const
{
return body_;
void PushMessageToiOSRequest::setTitle(const std::string &title) {
title_ = title;
setParameter(std::string("Title"), title);
}
void PushMessageToiOSRequest::setBody(const std::string& body)
{
body_ = body;
setParameter("Body", body);
std::string PushMessageToiOSRequest::getBody() const {
return body_;
}
std::string PushMessageToiOSRequest::getJobKey()const
{
return jobKey_;
void PushMessageToiOSRequest::setBody(const std::string &body) {
body_ = body;
setParameter(std::string("Body"), body);
}
void PushMessageToiOSRequest::setJobKey(const std::string& jobKey)
{
jobKey_ = jobKey;
setParameter("JobKey", jobKey);
std::string PushMessageToiOSRequest::getJobKey() const {
return jobKey_;
}
std::string PushMessageToiOSRequest::getAccessKeyId()const
{
return accessKeyId_;
void PushMessageToiOSRequest::setJobKey(const std::string &jobKey) {
jobKey_ = jobKey;
setParameter(std::string("JobKey"), jobKey);
}
void PushMessageToiOSRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string PushMessageToiOSRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string PushMessageToiOSRequest::getTarget()const
{
return target_;
void PushMessageToiOSRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void PushMessageToiOSRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
std::string PushMessageToiOSRequest::getTarget() const {
return target_;
}
long PushMessageToiOSRequest::getAppKey()const
{
return appKey_;
void PushMessageToiOSRequest::setTarget(const std::string &target) {
target_ = target;
setParameter(std::string("Target"), target);
}
void PushMessageToiOSRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long PushMessageToiOSRequest::getAppKey() const {
return appKey_;
}
std::string PushMessageToiOSRequest::getTargetValue()const
{
return targetValue_;
void PushMessageToiOSRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}
void PushMessageToiOSRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
std::string PushMessageToiOSRequest::getTargetValue() const {
return targetValue_;
}
void PushMessageToiOSRequest::setTargetValue(const std::string &targetValue) {
targetValue_ = targetValue;
setParameter(std::string("TargetValue"), targetValue);
}

View File

@@ -1,117 +1,99 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
PushNoticeToAndroidRequest::~PushNoticeToAndroidRequest()
{}
std::string PushNoticeToAndroidRequest::getExtParameters()const
{
return extParameters_;
*/
#include <alibabacloud/push/model/PushNoticeToAndroidRequest.h>
using AlibabaCloud::Push::Model::PushNoticeToAndroidRequest;
PushNoticeToAndroidRequest::PushNoticeToAndroidRequest()
: RpcServiceRequest("push", "2016-08-01", "PushNoticeToAndroid") {
setMethod(HttpRequest::Method::Post);
}
void PushNoticeToAndroidRequest::setExtParameters(const std::string& extParameters)
{
extParameters_ = extParameters;
setParameter("ExtParameters", extParameters);
PushNoticeToAndroidRequest::~PushNoticeToAndroidRequest() {}
std::string PushNoticeToAndroidRequest::getExtParameters() const {
return extParameters_;
}
std::string PushNoticeToAndroidRequest::getTitle()const
{
return title_;
void PushNoticeToAndroidRequest::setExtParameters(const std::string &extParameters) {
extParameters_ = extParameters;
setParameter(std::string("ExtParameters"), extParameters);
}
void PushNoticeToAndroidRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
std::string PushNoticeToAndroidRequest::getTitle() const {
return title_;
}
std::string PushNoticeToAndroidRequest::getBody()const
{
return body_;
void PushNoticeToAndroidRequest::setTitle(const std::string &title) {
title_ = title;
setParameter(std::string("Title"), title);
}
void PushNoticeToAndroidRequest::setBody(const std::string& body)
{
body_ = body;
setParameter("Body", body);
std::string PushNoticeToAndroidRequest::getBody() const {
return body_;
}
std::string PushNoticeToAndroidRequest::getJobKey()const
{
return jobKey_;
void PushNoticeToAndroidRequest::setBody(const std::string &body) {
body_ = body;
setParameter(std::string("Body"), body);
}
void PushNoticeToAndroidRequest::setJobKey(const std::string& jobKey)
{
jobKey_ = jobKey;
setParameter("JobKey", jobKey);
std::string PushNoticeToAndroidRequest::getJobKey() const {
return jobKey_;
}
std::string PushNoticeToAndroidRequest::getAccessKeyId()const
{
return accessKeyId_;
void PushNoticeToAndroidRequest::setJobKey(const std::string &jobKey) {
jobKey_ = jobKey;
setParameter(std::string("JobKey"), jobKey);
}
void PushNoticeToAndroidRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string PushNoticeToAndroidRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string PushNoticeToAndroidRequest::getTarget()const
{
return target_;
void PushNoticeToAndroidRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void PushNoticeToAndroidRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
std::string PushNoticeToAndroidRequest::getTarget() const {
return target_;
}
long PushNoticeToAndroidRequest::getAppKey()const
{
return appKey_;
void PushNoticeToAndroidRequest::setTarget(const std::string &target) {
target_ = target;
setParameter(std::string("Target"), target);
}
void PushNoticeToAndroidRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long PushNoticeToAndroidRequest::getAppKey() const {
return appKey_;
}
std::string PushNoticeToAndroidRequest::getTargetValue()const
{
return targetValue_;
void PushNoticeToAndroidRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}
void PushNoticeToAndroidRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
std::string PushNoticeToAndroidRequest::getTargetValue() const {
return targetValue_;
}
void PushNoticeToAndroidRequest::setTargetValue(const std::string &targetValue) {
targetValue_ = targetValue;
setParameter(std::string("TargetValue"), targetValue);
}

View File

@@ -1,128 +1,108 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
PushNoticeToiOSRequest::~PushNoticeToiOSRequest()
{}
std::string PushNoticeToiOSRequest::getExtParameters()const
{
return extParameters_;
*/
#include <alibabacloud/push/model/PushNoticeToiOSRequest.h>
using AlibabaCloud::Push::Model::PushNoticeToiOSRequest;
PushNoticeToiOSRequest::PushNoticeToiOSRequest()
: RpcServiceRequest("push", "2016-08-01", "PushNoticeToiOS") {
setMethod(HttpRequest::Method::Post);
}
void PushNoticeToiOSRequest::setExtParameters(const std::string& extParameters)
{
extParameters_ = extParameters;
setParameter("ExtParameters", extParameters);
PushNoticeToiOSRequest::~PushNoticeToiOSRequest() {}
std::string PushNoticeToiOSRequest::getExtParameters() const {
return extParameters_;
}
std::string PushNoticeToiOSRequest::getApnsEnv()const
{
return apnsEnv_;
void PushNoticeToiOSRequest::setExtParameters(const std::string &extParameters) {
extParameters_ = extParameters;
setParameter(std::string("ExtParameters"), extParameters);
}
void PushNoticeToiOSRequest::setApnsEnv(const std::string& apnsEnv)
{
apnsEnv_ = apnsEnv;
setParameter("ApnsEnv", apnsEnv);
std::string PushNoticeToiOSRequest::getApnsEnv() const {
return apnsEnv_;
}
std::string PushNoticeToiOSRequest::getTitle()const
{
return title_;
void PushNoticeToiOSRequest::setApnsEnv(const std::string &apnsEnv) {
apnsEnv_ = apnsEnv;
setParameter(std::string("ApnsEnv"), apnsEnv);
}
void PushNoticeToiOSRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
std::string PushNoticeToiOSRequest::getTitle() const {
return title_;
}
std::string PushNoticeToiOSRequest::getBody()const
{
return body_;
void PushNoticeToiOSRequest::setTitle(const std::string &title) {
title_ = title;
setParameter(std::string("Title"), title);
}
void PushNoticeToiOSRequest::setBody(const std::string& body)
{
body_ = body;
setParameter("Body", body);
std::string PushNoticeToiOSRequest::getBody() const {
return body_;
}
std::string PushNoticeToiOSRequest::getJobKey()const
{
return jobKey_;
void PushNoticeToiOSRequest::setBody(const std::string &body) {
body_ = body;
setParameter(std::string("Body"), body);
}
void PushNoticeToiOSRequest::setJobKey(const std::string& jobKey)
{
jobKey_ = jobKey;
setParameter("JobKey", jobKey);
std::string PushNoticeToiOSRequest::getJobKey() const {
return jobKey_;
}
std::string PushNoticeToiOSRequest::getAccessKeyId()const
{
return accessKeyId_;
void PushNoticeToiOSRequest::setJobKey(const std::string &jobKey) {
jobKey_ = jobKey;
setParameter(std::string("JobKey"), jobKey);
}
void PushNoticeToiOSRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string PushNoticeToiOSRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string PushNoticeToiOSRequest::getTarget()const
{
return target_;
void PushNoticeToiOSRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void PushNoticeToiOSRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
std::string PushNoticeToiOSRequest::getTarget() const {
return target_;
}
long PushNoticeToiOSRequest::getAppKey()const
{
return appKey_;
void PushNoticeToiOSRequest::setTarget(const std::string &target) {
target_ = target;
setParameter(std::string("Target"), target);
}
void PushNoticeToiOSRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long PushNoticeToiOSRequest::getAppKey() const {
return appKey_;
}
std::string PushNoticeToiOSRequest::getTargetValue()const
{
return targetValue_;
void PushNoticeToiOSRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}
void PushNoticeToiOSRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
std::string PushNoticeToiOSRequest::getTargetValue() const {
return targetValue_;
}
void PushNoticeToiOSRequest::setTargetValue(const std::string &targetValue) {
targetValue_ = targetValue;
setParameter(std::string("TargetValue"), targetValue);
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,62 +1,54 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
QueryAliasesRequest::~QueryAliasesRequest()
{}
std::string QueryAliasesRequest::getDeviceId()const
{
return deviceId_;
*/
#include <alibabacloud/push/model/QueryAliasesRequest.h>
using AlibabaCloud::Push::Model::QueryAliasesRequest;
QueryAliasesRequest::QueryAliasesRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryAliases") {
setMethod(HttpRequest::Method::Post);
}
void QueryAliasesRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
QueryAliasesRequest::~QueryAliasesRequest() {}
std::string QueryAliasesRequest::getDeviceId() const {
return deviceId_;
}
std::string QueryAliasesRequest::getAccessKeyId()const
{
return accessKeyId_;
void QueryAliasesRequest::setDeviceId(const std::string &deviceId) {
deviceId_ = deviceId;
setParameter(std::string("DeviceId"), deviceId);
}
void QueryAliasesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string QueryAliasesRequest::getAccessKeyId() const {
return accessKeyId_;
}
long QueryAliasesRequest::getAppKey()const
{
return appKey_;
void QueryAliasesRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryAliasesRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryAliasesRequest::getAppKey() const {
return appKey_;
}
void QueryAliasesRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,73 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/push/model/QueryDeviceCountRequest.h>
using AlibabaCloud::Push::Model::QueryDeviceCountRequest;
QueryDeviceCountRequest::QueryDeviceCountRequest() :
RpcServiceRequest("push", "2016-08-01", "QueryDeviceCount")
{
setMethod(HttpRequest::Method::Post);
}
QueryDeviceCountRequest::~QueryDeviceCountRequest()
{}
std::string QueryDeviceCountRequest::getAccessKeyId()const
{
return accessKeyId_;
*/
#include <alibabacloud/push/model/QueryDeviceCountRequest.h>
using AlibabaCloud::Push::Model::QueryDeviceCountRequest;
QueryDeviceCountRequest::QueryDeviceCountRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryDeviceCount") {
setMethod(HttpRequest::Method::Post);
}
void QueryDeviceCountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
QueryDeviceCountRequest::~QueryDeviceCountRequest() {}
std::string QueryDeviceCountRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string QueryDeviceCountRequest::getTarget()const
{
return target_;
void QueryDeviceCountRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryDeviceCountRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
std::string QueryDeviceCountRequest::getTarget() const {
return target_;
}
long QueryDeviceCountRequest::getAppKey()const
{
return appKey_;
void QueryDeviceCountRequest::setTarget(const std::string &target) {
target_ = target;
setParameter(std::string("Target"), target);
}
void QueryDeviceCountRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryDeviceCountRequest::getAppKey() const {
return appKey_;
}
std::string QueryDeviceCountRequest::getTargetValue()const
{
return targetValue_;
void QueryDeviceCountRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}
void QueryDeviceCountRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
std::string QueryDeviceCountRequest::getTargetValue() const {
return targetValue_;
}
void QueryDeviceCountRequest::setTargetValue(const std::string &targetValue) {
targetValue_ = targetValue;
setParameter(std::string("TargetValue"), targetValue);
}

View File

@@ -1,62 +1,54 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
QueryDeviceInfoRequest::~QueryDeviceInfoRequest()
{}
std::string QueryDeviceInfoRequest::getDeviceId()const
{
return deviceId_;
*/
#include <alibabacloud/push/model/QueryDeviceInfoRequest.h>
using AlibabaCloud::Push::Model::QueryDeviceInfoRequest;
QueryDeviceInfoRequest::QueryDeviceInfoRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryDeviceInfo") {
setMethod(HttpRequest::Method::Post);
}
void QueryDeviceInfoRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
QueryDeviceInfoRequest::~QueryDeviceInfoRequest() {}
std::string QueryDeviceInfoRequest::getDeviceId() const {
return deviceId_;
}
std::string QueryDeviceInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
void QueryDeviceInfoRequest::setDeviceId(const std::string &deviceId) {
deviceId_ = deviceId;
setParameter(std::string("DeviceId"), deviceId);
}
void QueryDeviceInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string QueryDeviceInfoRequest::getAccessKeyId() const {
return accessKeyId_;
}
long QueryDeviceInfoRequest::getAppKey()const
{
return appKey_;
void QueryDeviceInfoRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryDeviceInfoRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryDeviceInfoRequest::getAppKey() const {
return appKey_;
}
void QueryDeviceInfoRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -40,26 +40,26 @@ void QueryDeviceInfoResult::parse(const std::string &payload)
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";
if(!deviceInfoNode["DeviceType"].isNull())
deviceInfo_.deviceType = deviceInfoNode["DeviceType"].asString();
if(!deviceInfoNode["DeviceId"].isNull())
deviceInfo_.deviceId = deviceInfoNode["DeviceId"].asString();
if(!deviceInfoNode["Online"].isNull())
deviceInfo_.online = deviceInfoNode["Online"].asString() == "true";
if(!deviceInfoNode["Tags"].isNull())
deviceInfo_.tags = deviceInfoNode["Tags"].asString();
if(!deviceInfoNode["DeviceToken"].isNull())
deviceInfo_.deviceToken = deviceInfoNode["DeviceToken"].asString();
if(!deviceInfoNode["Alias"].isNull())
deviceInfo_.alias = deviceInfoNode["Alias"].asString();
}

View File

@@ -1,95 +1,81 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
QueryDeviceStatRequest::~QueryDeviceStatRequest()
{}
std::string QueryDeviceStatRequest::getEndTime()const
{
return endTime_;
*/
#include <alibabacloud/push/model/QueryDeviceStatRequest.h>
using AlibabaCloud::Push::Model::QueryDeviceStatRequest;
QueryDeviceStatRequest::QueryDeviceStatRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryDeviceStat") {
setMethod(HttpRequest::Method::Post);
}
void QueryDeviceStatRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
QueryDeviceStatRequest::~QueryDeviceStatRequest() {}
std::string QueryDeviceStatRequest::getEndTime() const {
return endTime_;
}
std::string QueryDeviceStatRequest::getStartTime()const
{
return startTime_;
void QueryDeviceStatRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
void QueryDeviceStatRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
std::string QueryDeviceStatRequest::getStartTime() const {
return startTime_;
}
std::string QueryDeviceStatRequest::getDeviceType()const
{
return deviceType_;
void QueryDeviceStatRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
void QueryDeviceStatRequest::setDeviceType(const std::string& deviceType)
{
deviceType_ = deviceType;
setParameter("DeviceType", deviceType);
std::string QueryDeviceStatRequest::getDeviceType() const {
return deviceType_;
}
std::string QueryDeviceStatRequest::getAccessKeyId()const
{
return accessKeyId_;
void QueryDeviceStatRequest::setDeviceType(const std::string &deviceType) {
deviceType_ = deviceType;
setParameter(std::string("DeviceType"), deviceType);
}
void QueryDeviceStatRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string QueryDeviceStatRequest::getAccessKeyId() const {
return accessKeyId_;
}
long QueryDeviceStatRequest::getAppKey()const
{
return appKey_;
void QueryDeviceStatRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryDeviceStatRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryDeviceStatRequest::getAppKey() const {
return appKey_;
}
std::string QueryDeviceStatRequest::getQueryType()const
{
return queryType_;
void QueryDeviceStatRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}
void QueryDeviceStatRequest::setQueryType(const std::string& queryType)
{
queryType_ = queryType;
setParameter("QueryType", queryType);
std::string QueryDeviceStatRequest::getQueryType() const {
return queryType_;
}
void QueryDeviceStatRequest::setQueryType(const std::string &queryType) {
queryType_ = queryType;
setParameter(std::string("QueryType"), queryType);
}

View File

@@ -45,10 +45,10 @@ void QueryDeviceStatResult::parse(const std::string &payload)
AppDeviceStat appDeviceStatsObject;
if(!valueAppDeviceStatsAppDeviceStat["Time"].isNull())
appDeviceStatsObject.time = valueAppDeviceStatsAppDeviceStat["Time"].asString();
if(!valueAppDeviceStatsAppDeviceStat["Count"].isNull())
appDeviceStatsObject.count = std::stol(valueAppDeviceStatsAppDeviceStat["Count"].asString());
if(!valueAppDeviceStatsAppDeviceStat["DeviceType"].isNull())
appDeviceStatsObject.deviceType = valueAppDeviceStatsAppDeviceStat["DeviceType"].asString();
if(!valueAppDeviceStatsAppDeviceStat["Count"].isNull())
appDeviceStatsObject.count = std::stol(valueAppDeviceStatsAppDeviceStat["Count"].asString());
appDeviceStats_.push_back(appDeviceStatsObject);
}

View File

@@ -1,62 +1,54 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
QueryDevicesByAccountRequest::~QueryDevicesByAccountRequest()
{}
std::string QueryDevicesByAccountRequest::getAccessKeyId()const
{
return accessKeyId_;
*/
#include <alibabacloud/push/model/QueryDevicesByAccountRequest.h>
using AlibabaCloud::Push::Model::QueryDevicesByAccountRequest;
QueryDevicesByAccountRequest::QueryDevicesByAccountRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryDevicesByAccount") {
setMethod(HttpRequest::Method::Post);
}
void QueryDevicesByAccountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
QueryDevicesByAccountRequest::~QueryDevicesByAccountRequest() {}
std::string QueryDevicesByAccountRequest::getAccessKeyId() const {
return accessKeyId_;
}
long QueryDevicesByAccountRequest::getAppKey()const
{
return appKey_;
void QueryDevicesByAccountRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryDevicesByAccountRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryDevicesByAccountRequest::getAppKey() const {
return appKey_;
}
std::string QueryDevicesByAccountRequest::getAccount()const
{
return account_;
void QueryDevicesByAccountRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}
void QueryDevicesByAccountRequest::setAccount(const std::string& account)
{
account_ = account;
setParameter("Account", account);
std::string QueryDevicesByAccountRequest::getAccount() const {
return account_;
}
void QueryDevicesByAccountRequest::setAccount(const std::string &account) {
account_ = account;
setParameter(std::string("Account"), account);
}

View File

@@ -1,62 +1,54 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
QueryDevicesByAliasRequest::~QueryDevicesByAliasRequest()
{}
std::string QueryDevicesByAliasRequest::getAccessKeyId()const
{
return accessKeyId_;
*/
#include <alibabacloud/push/model/QueryDevicesByAliasRequest.h>
using AlibabaCloud::Push::Model::QueryDevicesByAliasRequest;
QueryDevicesByAliasRequest::QueryDevicesByAliasRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryDevicesByAlias") {
setMethod(HttpRequest::Method::Post);
}
void QueryDevicesByAliasRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
QueryDevicesByAliasRequest::~QueryDevicesByAliasRequest() {}
std::string QueryDevicesByAliasRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string QueryDevicesByAliasRequest::getAlias()const
{
return alias_;
void QueryDevicesByAliasRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryDevicesByAliasRequest::setAlias(const std::string& alias)
{
alias_ = alias;
setParameter("Alias", alias);
std::string QueryDevicesByAliasRequest::getAlias() const {
return alias_;
}
long QueryDevicesByAliasRequest::getAppKey()const
{
return appKey_;
void QueryDevicesByAliasRequest::setAlias(const std::string &alias) {
alias_ = alias;
setParameter(std::string("Alias"), alias);
}
void QueryDevicesByAliasRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryDevicesByAliasRequest::getAppKey() const {
return appKey_;
}
void QueryDevicesByAliasRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,150 +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/QueryPushRecordsRequest.h>
using AlibabaCloud::Push::Model::QueryPushRecordsRequest;
QueryPushRecordsRequest::QueryPushRecordsRequest() :
RpcServiceRequest("push", "2016-08-01", "QueryPushRecords")
{
setMethod(HttpRequest::Method::Post);
}
QueryPushRecordsRequest::~QueryPushRecordsRequest()
{}
std::string QueryPushRecordsRequest::getStartTime()const
{
return startTime_;
*/
#include <alibabacloud/push/model/QueryPushRecordsRequest.h>
using AlibabaCloud::Push::Model::QueryPushRecordsRequest;
QueryPushRecordsRequest::QueryPushRecordsRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryPushRecords") {
setMethod(HttpRequest::Method::Post);
}
void QueryPushRecordsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
QueryPushRecordsRequest::~QueryPushRecordsRequest() {}
std::string QueryPushRecordsRequest::getStartTime() const {
return startTime_;
}
std::string QueryPushRecordsRequest::getSource()const
{
return source_;
void QueryPushRecordsRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
void QueryPushRecordsRequest::setSource(const std::string& source)
{
source_ = source;
setParameter("Source", source);
std::string QueryPushRecordsRequest::getSource() const {
return source_;
}
std::string QueryPushRecordsRequest::getAccessKeyId()const
{
return accessKeyId_;
void QueryPushRecordsRequest::setSource(const std::string &source) {
source_ = source;
setParameter(std::string("Source"), source);
}
void QueryPushRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string QueryPushRecordsRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string QueryPushRecordsRequest::getNextToken()const
{
return nextToken_;
void QueryPushRecordsRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryPushRecordsRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
std::string QueryPushRecordsRequest::getNextToken() const {
return nextToken_;
}
int QueryPushRecordsRequest::getPageSize()const
{
return pageSize_;
void QueryPushRecordsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void QueryPushRecordsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
int QueryPushRecordsRequest::getPageSize() const {
return pageSize_;
}
std::string QueryPushRecordsRequest::getKeyword()const
{
return keyword_;
void QueryPushRecordsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
void QueryPushRecordsRequest::setKeyword(const std::string& keyword)
{
keyword_ = keyword;
setParameter("Keyword", keyword);
std::string QueryPushRecordsRequest::getKeyword() const {
return keyword_;
}
std::string QueryPushRecordsRequest::getEndTime()const
{
return endTime_;
void QueryPushRecordsRequest::setKeyword(const std::string &keyword) {
keyword_ = keyword;
setParameter(std::string("Keyword"), keyword);
}
void QueryPushRecordsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
std::string QueryPushRecordsRequest::getEndTime() const {
return endTime_;
}
std::string QueryPushRecordsRequest::getTarget()const
{
return target_;
void QueryPushRecordsRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
void QueryPushRecordsRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
std::string QueryPushRecordsRequest::getTarget() const {
return target_;
}
long QueryPushRecordsRequest::getAppKey()const
{
return appKey_;
void QueryPushRecordsRequest::setTarget(const std::string &target) {
target_ = target;
setParameter(std::string("Target"), target);
}
void QueryPushRecordsRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryPushRecordsRequest::getAppKey() const {
return appKey_;
}
int QueryPushRecordsRequest::getPage()const
{
return page_;
void QueryPushRecordsRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}
void QueryPushRecordsRequest::setPage(int page)
{
page_ = page;
setParameter("Page", std::to_string(page));
int QueryPushRecordsRequest::getPage() const {
return page_;
}
std::string QueryPushRecordsRequest::getPushType()const
{
return pushType_;
void QueryPushRecordsRequest::setPage(int page) {
page_ = page;
setParameter(std::string("Page"), std::to_string(page));
}
void QueryPushRecordsRequest::setPushType(const std::string& pushType)
{
pushType_ = pushType;
setParameter("PushType", pushType);
std::string QueryPushRecordsRequest::getPushType() const {
return pushType_;
}
void QueryPushRecordsRequest::setPushType(const std::string &pushType) {
pushType_ = pushType;
setParameter(std::string("PushType"), pushType);
}

View File

@@ -43,36 +43,36 @@ void QueryPushRecordsResult::parse(const std::string &payload)
for (auto valuePushInfosPushInfo : allPushInfosNode)
{
PushInfo pushInfosObject;
if(!valuePushInfosPushInfo["AppKey"].isNull())
pushInfosObject.appKey = std::stol(valuePushInfosPushInfo["AppKey"].asString());
if(!valuePushInfosPushInfo["Status"].isNull())
pushInfosObject.status = valuePushInfosPushInfo["Status"].asString();
if(!valuePushInfosPushInfo["MessageId"].isNull())
pushInfosObject.messageId = valuePushInfosPushInfo["MessageId"].asString();
if(!valuePushInfosPushInfo["PushType"].isNull())
pushInfosObject.pushType = valuePushInfosPushInfo["PushType"].asString();
if(!valuePushInfosPushInfo["AppKey"].isNull())
pushInfosObject.appKey = std::stol(valuePushInfosPushInfo["AppKey"].asString());
if(!valuePushInfosPushInfo["DeviceType"].isNull())
pushInfosObject.deviceType = valuePushInfosPushInfo["DeviceType"].asString();
if(!valuePushInfosPushInfo["Target"].isNull())
pushInfosObject.target = valuePushInfosPushInfo["Target"].asString();
if(!valuePushInfosPushInfo["PushType"].isNull())
pushInfosObject.pushType = valuePushInfosPushInfo["PushType"].asString();
if(!valuePushInfosPushInfo["Body"].isNull())
pushInfosObject.body = valuePushInfosPushInfo["Body"].asString();
if(!valuePushInfosPushInfo["Title"].isNull())
pushInfosObject.title = valuePushInfosPushInfo["Title"].asString();
if(!valuePushInfosPushInfo["Source"].isNull())
pushInfosObject.source = valuePushInfosPushInfo["Source"].asString();
if(!valuePushInfosPushInfo["PushTime"].isNull())
pushInfosObject.pushTime = valuePushInfosPushInfo["PushTime"].asString();
if(!valuePushInfosPushInfo["Title"].isNull())
pushInfosObject.title = valuePushInfosPushInfo["Title"].asString();
if(!valuePushInfosPushInfo["Body"].isNull())
pushInfosObject.body = valuePushInfosPushInfo["Body"].asString();
if(!valuePushInfosPushInfo["Status"].isNull())
pushInfosObject.status = valuePushInfosPushInfo["Status"].asString();
if(!valuePushInfosPushInfo["Target"].isNull())
pushInfosObject.target = valuePushInfosPushInfo["Target"].asString();
pushInfos_.push_back(pushInfosObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Page"].isNull())
page_ = std::stoi(value["Page"].asString());
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
if(!value["Page"].isNull())
page_ = std::stoi(value["Page"].asString());
}

View File

@@ -1,84 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/push/model/QueryPushStatByAppRequest.h>
using AlibabaCloud::Push::Model::QueryPushStatByAppRequest;
QueryPushStatByAppRequest::QueryPushStatByAppRequest() :
RpcServiceRequest("push", "2016-08-01", "QueryPushStatByApp")
{
setMethod(HttpRequest::Method::Post);
}
QueryPushStatByAppRequest::~QueryPushStatByAppRequest()
{}
std::string QueryPushStatByAppRequest::getEndTime()const
{
return endTime_;
*/
#include <alibabacloud/push/model/QueryPushStatByAppRequest.h>
using AlibabaCloud::Push::Model::QueryPushStatByAppRequest;
QueryPushStatByAppRequest::QueryPushStatByAppRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryPushStatByApp") {
setMethod(HttpRequest::Method::Post);
}
void QueryPushStatByAppRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
QueryPushStatByAppRequest::~QueryPushStatByAppRequest() {}
std::string QueryPushStatByAppRequest::getEndTime() const {
return endTime_;
}
std::string QueryPushStatByAppRequest::getStartTime()const
{
return startTime_;
void QueryPushStatByAppRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
void QueryPushStatByAppRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
std::string QueryPushStatByAppRequest::getStartTime() const {
return startTime_;
}
std::string QueryPushStatByAppRequest::getAccessKeyId()const
{
return accessKeyId_;
void QueryPushStatByAppRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
void QueryPushStatByAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string QueryPushStatByAppRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string QueryPushStatByAppRequest::getGranularity()const
{
return granularity_;
void QueryPushStatByAppRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryPushStatByAppRequest::setGranularity(const std::string& granularity)
{
granularity_ = granularity;
setParameter("Granularity", granularity);
std::string QueryPushStatByAppRequest::getGranularity() const {
return granularity_;
}
long QueryPushStatByAppRequest::getAppKey()const
{
return appKey_;
void QueryPushStatByAppRequest::setGranularity(const std::string &granularity) {
granularity_ = granularity;
setParameter(std::string("Granularity"), granularity);
}
void QueryPushStatByAppRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryPushStatByAppRequest::getAppKey() const {
return appKey_;
}
void QueryPushStatByAppRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -45,26 +45,26 @@ void QueryPushStatByAppResult::parse(const std::string &payload)
AppPushStat appPushStatsObject;
if(!valueAppPushStatsAppPushStat["Time"].isNull())
appPushStatsObject.time = valueAppPushStatsAppPushStat["Time"].asString();
if(!valueAppPushStatsAppPushStat["AcceptCount"].isNull())
appPushStatsObject.acceptCount = std::stol(valueAppPushStatsAppPushStat["AcceptCount"].asString());
if(!valueAppPushStatsAppPushStat["SentCount"].isNull())
appPushStatsObject.sentCount = std::stol(valueAppPushStatsAppPushStat["SentCount"].asString());
if(!valueAppPushStatsAppPushStat["ReceivedCount"].isNull())
appPushStatsObject.receivedCount = std::stol(valueAppPushStatsAppPushStat["ReceivedCount"].asString());
if(!valueAppPushStatsAppPushStat["OpenedCount"].isNull())
appPushStatsObject.openedCount = std::stol(valueAppPushStatsAppPushStat["OpenedCount"].asString());
if(!valueAppPushStatsAppPushStat["DeletedCount"].isNull())
appPushStatsObject.deletedCount = std::stol(valueAppPushStatsAppPushStat["DeletedCount"].asString());
if(!valueAppPushStatsAppPushStat["SmsSentCount"].isNull())
appPushStatsObject.smsSentCount = std::stol(valueAppPushStatsAppPushStat["SmsSentCount"].asString());
if(!valueAppPushStatsAppPushStat["SmsSkipCount"].isNull())
appPushStatsObject.smsSkipCount = std::stol(valueAppPushStatsAppPushStat["SmsSkipCount"].asString());
if(!valueAppPushStatsAppPushStat["SmsFailedCount"].isNull())
appPushStatsObject.smsFailedCount = std::stol(valueAppPushStatsAppPushStat["SmsFailedCount"].asString());
if(!valueAppPushStatsAppPushStat["OpenedCount"].isNull())
appPushStatsObject.openedCount = std::stol(valueAppPushStatsAppPushStat["OpenedCount"].asString());
if(!valueAppPushStatsAppPushStat["SmsReceiveSuccessCount"].isNull())
appPushStatsObject.smsReceiveSuccessCount = std::stol(valueAppPushStatsAppPushStat["SmsReceiveSuccessCount"].asString());
if(!valueAppPushStatsAppPushStat["SmsSkipCount"].isNull())
appPushStatsObject.smsSkipCount = std::stol(valueAppPushStatsAppPushStat["SmsSkipCount"].asString());
if(!valueAppPushStatsAppPushStat["SmsReceiveFailedCount"].isNull())
appPushStatsObject.smsReceiveFailedCount = std::stol(valueAppPushStatsAppPushStat["SmsReceiveFailedCount"].asString());
if(!valueAppPushStatsAppPushStat["SmsFailedCount"].isNull())
appPushStatsObject.smsFailedCount = std::stol(valueAppPushStatsAppPushStat["SmsFailedCount"].asString());
if(!valueAppPushStatsAppPushStat["ReceivedCount"].isNull())
appPushStatsObject.receivedCount = std::stol(valueAppPushStatsAppPushStat["ReceivedCount"].asString());
if(!valueAppPushStatsAppPushStat["SentCount"].isNull())
appPushStatsObject.sentCount = std::stol(valueAppPushStatsAppPushStat["SentCount"].asString());
if(!valueAppPushStatsAppPushStat["SmsSentCount"].isNull())
appPushStatsObject.smsSentCount = std::stol(valueAppPushStatsAppPushStat["SmsSentCount"].asString());
if(!valueAppPushStatsAppPushStat["AcceptCount"].isNull())
appPushStatsObject.acceptCount = std::stol(valueAppPushStatsAppPushStat["AcceptCount"].asString());
appPushStats_.push_back(appPushStatsObject);
}

View File

@@ -1,62 +1,54 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
QueryPushStatByMsgRequest::~QueryPushStatByMsgRequest()
{}
long QueryPushStatByMsgRequest::getMessageId()const
{
return messageId_;
*/
#include <alibabacloud/push/model/QueryPushStatByMsgRequest.h>
using AlibabaCloud::Push::Model::QueryPushStatByMsgRequest;
QueryPushStatByMsgRequest::QueryPushStatByMsgRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryPushStatByMsg") {
setMethod(HttpRequest::Method::Post);
}
void QueryPushStatByMsgRequest::setMessageId(long messageId)
{
messageId_ = messageId;
setParameter("MessageId", std::to_string(messageId));
QueryPushStatByMsgRequest::~QueryPushStatByMsgRequest() {}
long QueryPushStatByMsgRequest::getMessageId() const {
return messageId_;
}
std::string QueryPushStatByMsgRequest::getAccessKeyId()const
{
return accessKeyId_;
void QueryPushStatByMsgRequest::setMessageId(long messageId) {
messageId_ = messageId;
setParameter(std::string("MessageId"), std::to_string(messageId));
}
void QueryPushStatByMsgRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string QueryPushStatByMsgRequest::getAccessKeyId() const {
return accessKeyId_;
}
long QueryPushStatByMsgRequest::getAppKey()const
{
return appKey_;
void QueryPushStatByMsgRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryPushStatByMsgRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryPushStatByMsgRequest::getAppKey() const {
return appKey_;
}
void QueryPushStatByMsgRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -45,26 +45,26 @@ void QueryPushStatByMsgResult::parse(const std::string &payload)
PushStat pushStatsObject;
if(!valuePushStatsPushStat["MessageId"].isNull())
pushStatsObject.messageId = valuePushStatsPushStat["MessageId"].asString();
if(!valuePushStatsPushStat["AcceptCount"].isNull())
pushStatsObject.acceptCount = std::stol(valuePushStatsPushStat["AcceptCount"].asString());
if(!valuePushStatsPushStat["SentCount"].isNull())
pushStatsObject.sentCount = std::stol(valuePushStatsPushStat["SentCount"].asString());
if(!valuePushStatsPushStat["ReceivedCount"].isNull())
pushStatsObject.receivedCount = std::stol(valuePushStatsPushStat["ReceivedCount"].asString());
if(!valuePushStatsPushStat["OpenedCount"].isNull())
pushStatsObject.openedCount = std::stol(valuePushStatsPushStat["OpenedCount"].asString());
if(!valuePushStatsPushStat["DeletedCount"].isNull())
pushStatsObject.deletedCount = std::stol(valuePushStatsPushStat["DeletedCount"].asString());
if(!valuePushStatsPushStat["SmsSentCount"].isNull())
pushStatsObject.smsSentCount = std::stol(valuePushStatsPushStat["SmsSentCount"].asString());
if(!valuePushStatsPushStat["SmsSkipCount"].isNull())
pushStatsObject.smsSkipCount = std::stol(valuePushStatsPushStat["SmsSkipCount"].asString());
if(!valuePushStatsPushStat["SmsFailedCount"].isNull())
pushStatsObject.smsFailedCount = std::stol(valuePushStatsPushStat["SmsFailedCount"].asString());
if(!valuePushStatsPushStat["OpenedCount"].isNull())
pushStatsObject.openedCount = std::stol(valuePushStatsPushStat["OpenedCount"].asString());
if(!valuePushStatsPushStat["SmsReceiveSuccessCount"].isNull())
pushStatsObject.smsReceiveSuccessCount = std::stol(valuePushStatsPushStat["SmsReceiveSuccessCount"].asString());
if(!valuePushStatsPushStat["SmsSkipCount"].isNull())
pushStatsObject.smsSkipCount = std::stol(valuePushStatsPushStat["SmsSkipCount"].asString());
if(!valuePushStatsPushStat["SmsReceiveFailedCount"].isNull())
pushStatsObject.smsReceiveFailedCount = std::stol(valuePushStatsPushStat["SmsReceiveFailedCount"].asString());
if(!valuePushStatsPushStat["SmsFailedCount"].isNull())
pushStatsObject.smsFailedCount = std::stol(valuePushStatsPushStat["SmsFailedCount"].asString());
if(!valuePushStatsPushStat["ReceivedCount"].isNull())
pushStatsObject.receivedCount = std::stol(valuePushStatsPushStat["ReceivedCount"].asString());
if(!valuePushStatsPushStat["SentCount"].isNull())
pushStatsObject.sentCount = std::stol(valuePushStatsPushStat["SentCount"].asString());
if(!valuePushStatsPushStat["SmsSentCount"].isNull())
pushStatsObject.smsSentCount = std::stol(valuePushStatsPushStat["SmsSentCount"].asString());
if(!valuePushStatsPushStat["AcceptCount"].isNull())
pushStatsObject.acceptCount = std::stol(valuePushStatsPushStat["AcceptCount"].asString());
pushStats_.push_back(pushStatsObject);
}

View File

@@ -1,73 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/push/model/QueryTagsRequest.h>
using AlibabaCloud::Push::Model::QueryTagsRequest;
QueryTagsRequest::QueryTagsRequest() :
RpcServiceRequest("push", "2016-08-01", "QueryTags")
{
setMethod(HttpRequest::Method::Post);
}
QueryTagsRequest::~QueryTagsRequest()
{}
std::string QueryTagsRequest::getKeyType()const
{
return keyType_;
*/
#include <alibabacloud/push/model/QueryTagsRequest.h>
using AlibabaCloud::Push::Model::QueryTagsRequest;
QueryTagsRequest::QueryTagsRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryTags") {
setMethod(HttpRequest::Method::Post);
}
void QueryTagsRequest::setKeyType(const std::string& keyType)
{
keyType_ = keyType;
setParameter("KeyType", keyType);
QueryTagsRequest::~QueryTagsRequest() {}
std::string QueryTagsRequest::getKeyType() const {
return keyType_;
}
std::string QueryTagsRequest::getAccessKeyId()const
{
return accessKeyId_;
void QueryTagsRequest::setKeyType(const std::string &keyType) {
keyType_ = keyType;
setParameter(std::string("KeyType"), keyType);
}
void QueryTagsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string QueryTagsRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string QueryTagsRequest::getClientKey()const
{
return clientKey_;
void QueryTagsRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryTagsRequest::setClientKey(const std::string& clientKey)
{
clientKey_ = clientKey;
setParameter("ClientKey", clientKey);
std::string QueryTagsRequest::getClientKey() const {
return clientKey_;
}
long QueryTagsRequest::getAppKey()const
{
return appKey_;
void QueryTagsRequest::setClientKey(const std::string &clientKey) {
clientKey_ = clientKey;
setParameter(std::string("ClientKey"), clientKey);
}
void QueryTagsRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryTagsRequest::getAppKey() const {
return appKey_;
}
void QueryTagsRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,84 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/push/model/QueryUniqueDeviceStatRequest.h>
using AlibabaCloud::Push::Model::QueryUniqueDeviceStatRequest;
QueryUniqueDeviceStatRequest::QueryUniqueDeviceStatRequest() :
RpcServiceRequest("push", "2016-08-01", "QueryUniqueDeviceStat")
{
setMethod(HttpRequest::Method::Post);
}
QueryUniqueDeviceStatRequest::~QueryUniqueDeviceStatRequest()
{}
std::string QueryUniqueDeviceStatRequest::getEndTime()const
{
return endTime_;
*/
#include <alibabacloud/push/model/QueryUniqueDeviceStatRequest.h>
using AlibabaCloud::Push::Model::QueryUniqueDeviceStatRequest;
QueryUniqueDeviceStatRequest::QueryUniqueDeviceStatRequest()
: RpcServiceRequest("push", "2016-08-01", "QueryUniqueDeviceStat") {
setMethod(HttpRequest::Method::Post);
}
void QueryUniqueDeviceStatRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
QueryUniqueDeviceStatRequest::~QueryUniqueDeviceStatRequest() {}
std::string QueryUniqueDeviceStatRequest::getEndTime() const {
return endTime_;
}
std::string QueryUniqueDeviceStatRequest::getStartTime()const
{
return startTime_;
void QueryUniqueDeviceStatRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
void QueryUniqueDeviceStatRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
std::string QueryUniqueDeviceStatRequest::getStartTime() const {
return startTime_;
}
std::string QueryUniqueDeviceStatRequest::getAccessKeyId()const
{
return accessKeyId_;
void QueryUniqueDeviceStatRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
void QueryUniqueDeviceStatRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string QueryUniqueDeviceStatRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string QueryUniqueDeviceStatRequest::getGranularity()const
{
return granularity_;
void QueryUniqueDeviceStatRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void QueryUniqueDeviceStatRequest::setGranularity(const std::string& granularity)
{
granularity_ = granularity;
setParameter("Granularity", granularity);
std::string QueryUniqueDeviceStatRequest::getGranularity() const {
return granularity_;
}
long QueryUniqueDeviceStatRequest::getAppKey()const
{
return appKey_;
void QueryUniqueDeviceStatRequest::setGranularity(const std::string &granularity) {
granularity_ = granularity;
setParameter(std::string("Granularity"), granularity);
}
void QueryUniqueDeviceStatRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long QueryUniqueDeviceStatRequest::getAppKey() const {
return appKey_;
}
void QueryUniqueDeviceStatRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,62 +1,54 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
RemoveTagRequest::~RemoveTagRequest()
{}
std::string RemoveTagRequest::getAccessKeyId()const
{
return accessKeyId_;
*/
#include <alibabacloud/push/model/RemoveTagRequest.h>
using AlibabaCloud::Push::Model::RemoveTagRequest;
RemoveTagRequest::RemoveTagRequest()
: RpcServiceRequest("push", "2016-08-01", "RemoveTag") {
setMethod(HttpRequest::Method::Post);
}
void RemoveTagRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
RemoveTagRequest::~RemoveTagRequest() {}
std::string RemoveTagRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string RemoveTagRequest::getTagName()const
{
return tagName_;
void RemoveTagRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void RemoveTagRequest::setTagName(const std::string& tagName)
{
tagName_ = tagName;
setParameter("TagName", tagName);
std::string RemoveTagRequest::getTagName() const {
return tagName_;
}
long RemoveTagRequest::getAppKey()const
{
return appKey_;
void RemoveTagRequest::setTagName(const std::string &tagName) {
tagName_ = tagName;
setParameter(std::string("TagName"), tagName);
}
void RemoveTagRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long RemoveTagRequest::getAppKey() const {
return appKey_;
}
void RemoveTagRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,84 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/push/model/UnbindAliasRequest.h>
using AlibabaCloud::Push::Model::UnbindAliasRequest;
UnbindAliasRequest::UnbindAliasRequest() :
RpcServiceRequest("push", "2016-08-01", "UnbindAlias")
{
setMethod(HttpRequest::Method::Post);
}
UnbindAliasRequest::~UnbindAliasRequest()
{}
std::string UnbindAliasRequest::getDeviceId()const
{
return deviceId_;
*/
#include <alibabacloud/push/model/UnbindAliasRequest.h>
using AlibabaCloud::Push::Model::UnbindAliasRequest;
UnbindAliasRequest::UnbindAliasRequest()
: RpcServiceRequest("push", "2016-08-01", "UnbindAlias") {
setMethod(HttpRequest::Method::Post);
}
void UnbindAliasRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
UnbindAliasRequest::~UnbindAliasRequest() {}
std::string UnbindAliasRequest::getDeviceId() const {
return deviceId_;
}
std::string UnbindAliasRequest::getAccessKeyId()const
{
return accessKeyId_;
void UnbindAliasRequest::setDeviceId(const std::string &deviceId) {
deviceId_ = deviceId;
setParameter(std::string("DeviceId"), deviceId);
}
void UnbindAliasRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string UnbindAliasRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string UnbindAliasRequest::getAliasName()const
{
return aliasName_;
void UnbindAliasRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void UnbindAliasRequest::setAliasName(const std::string& aliasName)
{
aliasName_ = aliasName;
setParameter("AliasName", aliasName);
std::string UnbindAliasRequest::getAliasName() const {
return aliasName_;
}
long UnbindAliasRequest::getAppKey()const
{
return appKey_;
void UnbindAliasRequest::setAliasName(const std::string &aliasName) {
aliasName_ = aliasName;
setParameter(std::string("AliasName"), aliasName);
}
void UnbindAliasRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long UnbindAliasRequest::getAppKey() const {
return appKey_;
}
bool UnbindAliasRequest::getUnbindAll()const
{
return unbindAll_;
void UnbindAliasRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}
void UnbindAliasRequest::setUnbindAll(bool unbindAll)
{
unbindAll_ = unbindAll;
setParameter("UnbindAll", unbindAll ? "true" : "false");
bool UnbindAliasRequest::getUnbindAll() const {
return unbindAll_;
}
void UnbindAliasRequest::setUnbindAll(bool unbindAll) {
unbindAll_ = unbindAll;
setParameter(std::string("UnbindAll"), unbindAll ? "true" : "false");
}

View File

@@ -1,62 +1,54 @@
/*
* 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")
{
setMethod(HttpRequest::Method::Post);
}
UnbindPhoneRequest::~UnbindPhoneRequest()
{}
std::string UnbindPhoneRequest::getDeviceId()const
{
return deviceId_;
*/
#include <alibabacloud/push/model/UnbindPhoneRequest.h>
using AlibabaCloud::Push::Model::UnbindPhoneRequest;
UnbindPhoneRequest::UnbindPhoneRequest()
: RpcServiceRequest("push", "2016-08-01", "UnbindPhone") {
setMethod(HttpRequest::Method::Post);
}
void UnbindPhoneRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
UnbindPhoneRequest::~UnbindPhoneRequest() {}
std::string UnbindPhoneRequest::getDeviceId() const {
return deviceId_;
}
std::string UnbindPhoneRequest::getAccessKeyId()const
{
return accessKeyId_;
void UnbindPhoneRequest::setDeviceId(const std::string &deviceId) {
deviceId_ = deviceId;
setParameter(std::string("DeviceId"), deviceId);
}
void UnbindPhoneRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string UnbindPhoneRequest::getAccessKeyId() const {
return accessKeyId_;
}
long UnbindPhoneRequest::getAppKey()const
{
return appKey_;
void UnbindPhoneRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void UnbindPhoneRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long UnbindPhoneRequest::getAppKey() const {
return appKey_;
}
void UnbindPhoneRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}

View File

@@ -1,84 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/push/model/UnbindTagRequest.h>
using AlibabaCloud::Push::Model::UnbindTagRequest;
UnbindTagRequest::UnbindTagRequest() :
RpcServiceRequest("push", "2016-08-01", "UnbindTag")
{
setMethod(HttpRequest::Method::Post);
}
UnbindTagRequest::~UnbindTagRequest()
{}
std::string UnbindTagRequest::getKeyType()const
{
return keyType_;
*/
#include <alibabacloud/push/model/UnbindTagRequest.h>
using AlibabaCloud::Push::Model::UnbindTagRequest;
UnbindTagRequest::UnbindTagRequest()
: RpcServiceRequest("push", "2016-08-01", "UnbindTag") {
setMethod(HttpRequest::Method::Post);
}
void UnbindTagRequest::setKeyType(const std::string& keyType)
{
keyType_ = keyType;
setParameter("KeyType", keyType);
UnbindTagRequest::~UnbindTagRequest() {}
std::string UnbindTagRequest::getKeyType() const {
return keyType_;
}
std::string UnbindTagRequest::getAccessKeyId()const
{
return accessKeyId_;
void UnbindTagRequest::setKeyType(const std::string &keyType) {
keyType_ = keyType;
setParameter(std::string("KeyType"), keyType);
}
void UnbindTagRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string UnbindTagRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string UnbindTagRequest::getTagName()const
{
return tagName_;
void UnbindTagRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void UnbindTagRequest::setTagName(const std::string& tagName)
{
tagName_ = tagName;
setParameter("TagName", tagName);
std::string UnbindTagRequest::getTagName() const {
return tagName_;
}
std::string UnbindTagRequest::getClientKey()const
{
return clientKey_;
void UnbindTagRequest::setTagName(const std::string &tagName) {
tagName_ = tagName;
setParameter(std::string("TagName"), tagName);
}
void UnbindTagRequest::setClientKey(const std::string& clientKey)
{
clientKey_ = clientKey;
setParameter("ClientKey", clientKey);
std::string UnbindTagRequest::getClientKey() const {
return clientKey_;
}
long UnbindTagRequest::getAppKey()const
{
return appKey_;
void UnbindTagRequest::setClientKey(const std::string &clientKey) {
clientKey_ = clientKey;
setParameter(std::string("ClientKey"), clientKey);
}
void UnbindTagRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
long UnbindTagRequest::getAppKey() const {
return appKey_;
}
void UnbindTagRequest::setAppKey(long appKey) {
appKey_ = appKey;
setParameter(std::string("AppKey"), std::to_string(appKey));
}