| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522 |
- /*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #include <alibabacloud/push/model/PushRequest.h>
- using AlibabaCloud::Push::Model::PushRequest;
- PushRequest::PushRequest() :
- RpcServiceRequest("push", "2016-08-01", "Push")
- {}
- PushRequest::~PushRequest()
- {}
- int PushRequest::getAndroidNotificationBarType()const
- {
- return androidNotificationBarType_;
- }
- void PushRequest::setAndroidNotificationBarType(int androidNotificationBarType)
- {
- androidNotificationBarType_ = androidNotificationBarType;
- setParameter("AndroidNotificationBarType", std::to_string(androidNotificationBarType));
- }
- int PushRequest::getSmsSendPolicy()const
- {
- return smsSendPolicy_;
- }
- void PushRequest::setSmsSendPolicy(int smsSendPolicy)
- {
- smsSendPolicy_ = smsSendPolicy;
- setParameter("SmsSendPolicy", std::to_string(smsSendPolicy));
- }
- std::string PushRequest::getAndroidExtParameters()const
- {
- return androidExtParameters_;
- }
- void PushRequest::setAndroidExtParameters(const std::string& androidExtParameters)
- {
- androidExtParameters_ = androidExtParameters;
- setParameter("AndroidExtParameters", androidExtParameters);
- }
- int PushRequest::getIOSBadge()const
- {
- return iOSBadge_;
- }
- void PushRequest::setIOSBadge(int iOSBadge)
- {
- iOSBadge_ = iOSBadge;
- setParameter("IOSBadge", std::to_string(iOSBadge));
- }
- bool PushRequest::getIOSBadgeAutoIncrement()const
- {
- return iOSBadgeAutoIncrement_;
- }
- void PushRequest::setIOSBadgeAutoIncrement(bool iOSBadgeAutoIncrement)
- {
- iOSBadgeAutoIncrement_ = iOSBadgeAutoIncrement;
- setParameter("IOSBadgeAutoIncrement", std::to_string(iOSBadgeAutoIncrement));
- }
- std::string PushRequest::getAndroidOpenType()const
- {
- return androidOpenType_;
- }
- void PushRequest::setAndroidOpenType(const std::string& androidOpenType)
- {
- androidOpenType_ = androidOpenType;
- setParameter("AndroidOpenType", androidOpenType);
- }
- std::string PushRequest::getTitle()const
- {
- return title_;
- }
- void PushRequest::setTitle(const std::string& title)
- {
- title_ = title;
- setParameter("Title", title);
- }
- std::string PushRequest::getBody()const
- {
- return body_;
- }
- void PushRequest::setBody(const std::string& body)
- {
- body_ = body;
- setParameter("Body", body);
- }
- std::string PushRequest::getDeviceType()const
- {
- return deviceType_;
- }
- void PushRequest::setDeviceType(const std::string& deviceType)
- {
- deviceType_ = deviceType;
- setParameter("DeviceType", deviceType);
- }
- std::string PushRequest::getPushTime()const
- {
- return pushTime_;
- }
- void PushRequest::setPushTime(const std::string& pushTime)
- {
- pushTime_ = pushTime;
- setParameter("PushTime", pushTime);
- }
- std::string PushRequest::getAccessKeyId()const
- {
- return accessKeyId_;
- }
- void PushRequest::setAccessKeyId(const std::string& accessKeyId)
- {
- accessKeyId_ = accessKeyId;
- setParameter("AccessKeyId", accessKeyId);
- }
- int PushRequest::getSmsDelaySecs()const
- {
- return smsDelaySecs_;
- }
- void PushRequest::setSmsDelaySecs(int smsDelaySecs)
- {
- smsDelaySecs_ = smsDelaySecs;
- setParameter("SmsDelaySecs", std::to_string(smsDelaySecs));
- }
- int PushRequest::getSendSpeed()const
- {
- return sendSpeed_;
- }
- void PushRequest::setSendSpeed(int sendSpeed)
- {
- sendSpeed_ = sendSpeed;
- setParameter("SendSpeed", std::to_string(sendSpeed));
- }
- std::string PushRequest::getAndroidPopupActivity()const
- {
- return androidPopupActivity_;
- }
- void PushRequest::setAndroidPopupActivity(const std::string& androidPopupActivity)
- {
- androidPopupActivity_ = androidPopupActivity;
- setParameter("AndroidPopupActivity", androidPopupActivity);
- }
- std::string PushRequest::getIOSRemindBody()const
- {
- return iOSRemindBody_;
- }
- void PushRequest::setIOSRemindBody(const std::string& iOSRemindBody)
- {
- iOSRemindBody_ = iOSRemindBody;
- setParameter("IOSRemindBody", iOSRemindBody);
- }
- std::string PushRequest::getIOSExtParameters()const
- {
- return iOSExtParameters_;
- }
- void PushRequest::setIOSExtParameters(const std::string& iOSExtParameters)
- {
- iOSExtParameters_ = iOSExtParameters;
- setParameter("IOSExtParameters", iOSExtParameters);
- }
- std::string PushRequest::getAndroidNotifyType()const
- {
- return androidNotifyType_;
- }
- void PushRequest::setAndroidNotifyType(const std::string& androidNotifyType)
- {
- androidNotifyType_ = androidNotifyType;
- setParameter("AndroidNotifyType", androidNotifyType);
- }
- std::string PushRequest::getAndroidPopupTitle()const
- {
- return androidPopupTitle_;
- }
- void PushRequest::setAndroidPopupTitle(const std::string& androidPopupTitle)
- {
- androidPopupTitle_ = androidPopupTitle;
- setParameter("AndroidPopupTitle", androidPopupTitle);
- }
- std::string PushRequest::getIOSMusic()const
- {
- return iOSMusic_;
- }
- void PushRequest::setIOSMusic(const std::string& iOSMusic)
- {
- iOSMusic_ = iOSMusic;
- setParameter("IOSMusic", iOSMusic);
- }
- std::string PushRequest::getIOSApnsEnv()const
- {
- return iOSApnsEnv_;
- }
- void PushRequest::setIOSApnsEnv(const std::string& iOSApnsEnv)
- {
- iOSApnsEnv_ = iOSApnsEnv;
- setParameter("IOSApnsEnv", iOSApnsEnv);
- }
- bool PushRequest::getIOSMutableContent()const
- {
- return iOSMutableContent_;
- }
- void PushRequest::setIOSMutableContent(bool iOSMutableContent)
- {
- iOSMutableContent_ = iOSMutableContent;
- setParameter("IOSMutableContent", std::to_string(iOSMutableContent));
- }
- int PushRequest::getAndroidNotificationBarPriority()const
- {
- return androidNotificationBarPriority_;
- }
- void PushRequest::setAndroidNotificationBarPriority(int androidNotificationBarPriority)
- {
- androidNotificationBarPriority_ = androidNotificationBarPriority;
- setParameter("AndroidNotificationBarPriority", std::to_string(androidNotificationBarPriority));
- }
- std::string PushRequest::getExpireTime()const
- {
- return expireTime_;
- }
- void PushRequest::setExpireTime(const std::string& expireTime)
- {
- expireTime_ = expireTime;
- setParameter("ExpireTime", expireTime);
- }
- std::string PushRequest::getSmsTemplateName()const
- {
- return smsTemplateName_;
- }
- void PushRequest::setSmsTemplateName(const std::string& smsTemplateName)
- {
- smsTemplateName_ = smsTemplateName;
- setParameter("SmsTemplateName", smsTemplateName);
- }
- std::string PushRequest::getAndroidPopupBody()const
- {
- return androidPopupBody_;
- }
- void PushRequest::setAndroidPopupBody(const std::string& androidPopupBody)
- {
- androidPopupBody_ = androidPopupBody;
- setParameter("AndroidPopupBody", androidPopupBody);
- }
- std::string PushRequest::getIOSNotificationCategory()const
- {
- return iOSNotificationCategory_;
- }
- void PushRequest::setIOSNotificationCategory(const std::string& iOSNotificationCategory)
- {
- iOSNotificationCategory_ = iOSNotificationCategory;
- setParameter("IOSNotificationCategory", iOSNotificationCategory);
- }
- bool PushRequest::getStoreOffline()const
- {
- return storeOffline_;
- }
- void PushRequest::setStoreOffline(bool storeOffline)
- {
- storeOffline_ = storeOffline;
- setParameter("StoreOffline", std::to_string(storeOffline));
- }
- bool PushRequest::getIOSSilentNotification()const
- {
- return iOSSilentNotification_;
- }
- void PushRequest::setIOSSilentNotification(bool iOSSilentNotification)
- {
- iOSSilentNotification_ = iOSSilentNotification;
- setParameter("IOSSilentNotification", std::to_string(iOSSilentNotification));
- }
- std::string PushRequest::getSmsParams()const
- {
- return smsParams_;
- }
- void PushRequest::setSmsParams(const std::string& smsParams)
- {
- smsParams_ = smsParams;
- setParameter("SmsParams", smsParams);
- }
- std::string PushRequest::getJobKey()const
- {
- return jobKey_;
- }
- void PushRequest::setJobKey(const std::string& jobKey)
- {
- jobKey_ = jobKey;
- setParameter("JobKey", jobKey);
- }
- std::string PushRequest::getTarget()const
- {
- return target_;
- }
- void PushRequest::setTarget(const std::string& target)
- {
- target_ = target;
- setParameter("Target", target);
- }
- std::string PushRequest::getAndroidOpenUrl()const
- {
- return androidOpenUrl_;
- }
- void PushRequest::setAndroidOpenUrl(const std::string& androidOpenUrl)
- {
- androidOpenUrl_ = androidOpenUrl;
- setParameter("AndroidOpenUrl", androidOpenUrl);
- }
- std::string PushRequest::getAndroidNotificationChannel()const
- {
- return androidNotificationChannel_;
- }
- void PushRequest::setAndroidNotificationChannel(const std::string& androidNotificationChannel)
- {
- androidNotificationChannel_ = androidNotificationChannel;
- setParameter("AndroidNotificationChannel", androidNotificationChannel);
- }
- bool PushRequest::getAndroidRemind()const
- {
- return androidRemind_;
- }
- void PushRequest::setAndroidRemind(bool androidRemind)
- {
- androidRemind_ = androidRemind;
- setParameter("AndroidRemind", std::to_string(androidRemind));
- }
- std::string PushRequest::getAndroidActivity()const
- {
- return androidActivity_;
- }
- void PushRequest::setAndroidActivity(const std::string& androidActivity)
- {
- androidActivity_ = androidActivity;
- setParameter("AndroidActivity", androidActivity);
- }
- std::string PushRequest::getAndroidXiaoMiNotifyBody()const
- {
- return androidXiaoMiNotifyBody_;
- }
- void PushRequest::setAndroidXiaoMiNotifyBody(const std::string& androidXiaoMiNotifyBody)
- {
- androidXiaoMiNotifyBody_ = androidXiaoMiNotifyBody;
- setParameter("AndroidXiaoMiNotifyBody", androidXiaoMiNotifyBody);
- }
- std::string PushRequest::getIOSSubtitle()const
- {
- return iOSSubtitle_;
- }
- void PushRequest::setIOSSubtitle(const std::string& iOSSubtitle)
- {
- iOSSubtitle_ = iOSSubtitle;
- setParameter("IOSSubtitle", iOSSubtitle);
- }
- std::string PushRequest::getSmsSignName()const
- {
- return smsSignName_;
- }
- void PushRequest::setSmsSignName(const std::string& smsSignName)
- {
- smsSignName_ = smsSignName;
- setParameter("SmsSignName", smsSignName);
- }
- bool PushRequest::getIOSRemind()const
- {
- return iOSRemind_;
- }
- void PushRequest::setIOSRemind(bool iOSRemind)
- {
- iOSRemind_ = iOSRemind;
- setParameter("IOSRemind", std::to_string(iOSRemind));
- }
- long PushRequest::getAppKey()const
- {
- return appKey_;
- }
- void PushRequest::setAppKey(long appKey)
- {
- appKey_ = appKey;
- setParameter("AppKey", std::to_string(appKey));
- }
- std::string PushRequest::getTargetValue()const
- {
- return targetValue_;
- }
- void PushRequest::setTargetValue(const std::string& targetValue)
- {
- targetValue_ = targetValue;
- setParameter("TargetValue", targetValue);
- }
- std::string PushRequest::getAndroidMusic()const
- {
- return androidMusic_;
- }
- void PushRequest::setAndroidMusic(const std::string& androidMusic)
- {
- androidMusic_ = androidMusic;
- setParameter("AndroidMusic", androidMusic);
- }
- std::string PushRequest::getAndroidXiaoMiActivity()const
- {
- return androidXiaoMiActivity_;
- }
- void PushRequest::setAndroidXiaoMiActivity(const std::string& androidXiaoMiActivity)
- {
- androidXiaoMiActivity_ = androidXiaoMiActivity;
- setParameter("AndroidXiaoMiActivity", androidXiaoMiActivity);
- }
- std::string PushRequest::getAndroidXiaoMiNotifyTitle()const
- {
- return androidXiaoMiNotifyTitle_;
- }
- void PushRequest::setAndroidXiaoMiNotifyTitle(const std::string& androidXiaoMiNotifyTitle)
- {
- androidXiaoMiNotifyTitle_ = androidXiaoMiNotifyTitle;
- setParameter("AndroidXiaoMiNotifyTitle", androidXiaoMiNotifyTitle);
- }
- std::string PushRequest::getPushType()const
- {
- return pushType_;
- }
- void PushRequest::setPushType(const std::string& pushType)
- {
- pushType_ = pushType;
- setParameter("PushType", pushType);
- }
|