Support Android badge.
This commit is contained in:
@@ -25,15 +25,6 @@ CheckCertificateRequest::CheckCertificateRequest()
|
||||
|
||||
CheckCertificateRequest::~CheckCertificateRequest() {}
|
||||
|
||||
std::string CheckCertificateRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckCertificateRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
long CheckCertificateRequest::getAppKey() const {
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
@@ -50,6 +50,8 @@ void MassPushRequest::setPushTask(const std::vector<MassPushRequest::PushTask> &
|
||||
setBodyParameter(pushTaskObjStr + ".SendSpeed", std::to_string(pushTaskObj.sendSpeed));
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidNotificationHuaweiChannel", pushTaskObj.androidNotificationHuaweiChannel);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidPopupActivity", pushTaskObj.androidPopupActivity);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyNotifyId", std::to_string(pushTaskObj.harmonyNotifyId));
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyRenderStyle", pushTaskObj.harmonyRenderStyle);
|
||||
setBodyParameter(pushTaskObjStr + ".iOSRemindBody", pushTaskObj.iOSRemindBody);
|
||||
setBodyParameter(pushTaskObjStr + ".Trim", pushTaskObj.trim ? "true" : "false");
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidMessageVivoCategory", pushTaskObj.androidMessageVivoCategory);
|
||||
@@ -63,51 +65,71 @@ void MassPushRequest::setPushTask(const std::vector<MassPushRequest::PushTask> &
|
||||
setBodyParameter(pushTaskObjStr + ".ExpireTime", pushTaskObj.expireTime);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidImageUrl", pushTaskObj.androidImageUrl);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidHonorTargetUserType", std::to_string(pushTaskObj.androidHonorTargetUserType));
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyRemindBody", pushTaskObj.harmonyRemindBody);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidNotificationVivoChannel", pushTaskObj.androidNotificationVivoChannel);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidVivoReceiptId", pushTaskObj.androidVivoReceiptId);
|
||||
setBodyParameter(pushTaskObjStr + ".iOSNotificationCategory", pushTaskObj.iOSNotificationCategory);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidNotificationXiaomiChannel", pushTaskObj.androidNotificationXiaomiChannel);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyAction", pushTaskObj.harmonyAction);
|
||||
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 + ".HarmonyReceiptId", pushTaskObj.harmonyReceiptId);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidOpenUrl", pushTaskObj.androidOpenUrl);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidBadgeSetNum", std::to_string(pushTaskObj.androidBadgeSetNum));
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidXiaoMiNotifyBody", pushTaskObj.androidXiaoMiNotifyBody);
|
||||
setBodyParameter(pushTaskObjStr + ".iOSSubtitle", pushTaskObj.iOSSubtitle);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidXiaomiBigPictureUrl", pushTaskObj.androidXiaomiBigPictureUrl);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyCategory", pushTaskObj.harmonyCategory);
|
||||
setBodyParameter(pushTaskObjStr + ".iOSRemind", pushTaskObj.iOSRemind ? "true" : "false");
|
||||
setBodyParameter(pushTaskObjStr + ".iOSNotificationThreadId", pushTaskObj.iOSNotificationThreadId);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidHuaweiTargetUserType", std::to_string(pushTaskObj.androidHuaweiTargetUserType));
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyRemind", pushTaskObj.harmonyRemind ? "true" : "false");
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidMusic", pushTaskObj.androidMusic);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyExtensionPush", pushTaskObj.harmonyExtensionPush ? "true" : "false");
|
||||
setBodyParameter(pushTaskObjStr + ".iOSNotificationCollapseId", pushTaskObj.iOSNotificationCollapseId);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidMessageHuaweiUrgency", pushTaskObj.androidMessageHuaweiUrgency);
|
||||
setBodyParameter(pushTaskObjStr + ".PushType", pushTaskObj.pushType);
|
||||
setBodyParameter(pushTaskObjStr + ".iOSInterruptionLevel", pushTaskObj.iOSInterruptionLevel);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyExtensionExtraData", pushTaskObj.harmonyExtensionExtraData);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidExtParameters", pushTaskObj.androidExtParameters);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyImageUrl", pushTaskObj.harmonyImageUrl);
|
||||
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 + ".HarmonyRemindTitle", pushTaskObj.harmonyRemindTitle);
|
||||
setBodyParameter(pushTaskObjStr + ".Title", pushTaskObj.title);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidBadgeClass", pushTaskObj.androidBadgeClass);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyBadgeAddNum", std::to_string(pushTaskObj.harmonyBadgeAddNum));
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyTestMessage", pushTaskObj.harmonyTestMessage ? "true" : "false");
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidRenderStyle", pushTaskObj.androidRenderStyle);
|
||||
setBodyParameter(pushTaskObjStr + ".iOSExtParameters", pushTaskObj.iOSExtParameters);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidBadgeAddNum", std::to_string(pushTaskObj.androidBadgeAddNum));
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidHuaweiReceiptId", pushTaskObj.androidHuaweiReceiptId);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidNotificationHonorChannel", pushTaskObj.androidNotificationHonorChannel);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidXiaomiImageUrl", pushTaskObj.androidXiaomiImageUrl);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidTargetUserType", std::to_string(pushTaskObj.androidTargetUserType));
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyUri", pushTaskObj.harmonyUri);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidPopupBody", pushTaskObj.androidPopupBody);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyExtParameters", pushTaskObj.harmonyExtParameters);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidBigPictureUrl", pushTaskObj.androidBigPictureUrl);
|
||||
setBodyParameter(pushTaskObjStr + ".iOSSilentNotification", pushTaskObj.iOSSilentNotification ? "true" : "false");
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidNotificationGroup", pushTaskObj.androidNotificationGroup);
|
||||
setBodyParameter(pushTaskObjStr + ".SendChannels", pushTaskObj.sendChannels);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyActionType", pushTaskObj.harmonyActionType);
|
||||
setBodyParameter(pushTaskObjStr + ".Target", pushTaskObj.target);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyNotificationSlotType", pushTaskObj.harmonyNotificationSlotType);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidBigTitle", pushTaskObj.androidBigTitle);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidNotificationChannel", pushTaskObj.androidNotificationChannel);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidRemind", pushTaskObj.androidRemind ? "true" : "false");
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyInboxContent", pushTaskObj.harmonyInboxContent);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidActivity", pushTaskObj.androidActivity);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidNotificationNotifyId", std::to_string(pushTaskObj.androidNotificationNotifyId));
|
||||
setBodyParameter(pushTaskObjStr + ".TargetValue", pushTaskObj.targetValue);
|
||||
setBodyParameter(pushTaskObjStr + ".HarmonyBadgeSetNum", std::to_string(pushTaskObj.harmonyBadgeSetNum));
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidXiaoMiNotifyTitle", pushTaskObj.androidXiaoMiNotifyTitle);
|
||||
setBodyParameter(pushTaskObjStr + ".AndroidXiaoMiActivity", pushTaskObj.androidXiaoMiActivity);
|
||||
}
|
||||
|
||||
@@ -25,15 +25,6 @@ PushMessageToAndroidRequest::PushMessageToAndroidRequest()
|
||||
|
||||
PushMessageToAndroidRequest::~PushMessageToAndroidRequest() {}
|
||||
|
||||
bool PushMessageToAndroidRequest::getStoreOffline() const {
|
||||
return storeOffline_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setStoreOffline(bool storeOffline) {
|
||||
storeOffline_ = storeOffline;
|
||||
setParameter(std::string("StoreOffline"), storeOffline ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
@@ -52,15 +43,6 @@ void PushMessageToAndroidRequest::setBody(const std::string &body) {
|
||||
setParameter(std::string("Body"), body);
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -70,6 +52,24 @@ void PushMessageToAndroidRequest::setAccessKeyId(const std::string &accessKeyId)
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool PushMessageToAndroidRequest::getStoreOffline() const {
|
||||
return storeOffline_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setStoreOffline(bool storeOffline) {
|
||||
storeOffline_ = storeOffline;
|
||||
setParameter(std::string("StoreOffline"), storeOffline ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushMessageToAndroidRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
std::string PushMessageToAndroidRequest::getTarget() const {
|
||||
return target_;
|
||||
}
|
||||
|
||||
@@ -25,15 +25,6 @@ PushMessageToiOSRequest::PushMessageToiOSRequest()
|
||||
|
||||
PushMessageToiOSRequest::~PushMessageToiOSRequest() {}
|
||||
|
||||
bool PushMessageToiOSRequest::getStoreOffline() const {
|
||||
return storeOffline_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setStoreOffline(bool storeOffline) {
|
||||
storeOffline_ = storeOffline;
|
||||
setParameter(std::string("StoreOffline"), storeOffline ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
@@ -52,15 +43,6 @@ void PushMessageToiOSRequest::setBody(const std::string &body) {
|
||||
setParameter(std::string("Body"), body);
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -70,6 +52,24 @@ void PushMessageToiOSRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool PushMessageToiOSRequest::getStoreOffline() const {
|
||||
return storeOffline_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setStoreOffline(bool storeOffline) {
|
||||
storeOffline_ = storeOffline;
|
||||
setParameter(std::string("StoreOffline"), storeOffline ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushMessageToiOSRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
std::string PushMessageToiOSRequest::getTarget() const {
|
||||
return target_;
|
||||
}
|
||||
|
||||
@@ -25,24 +25,6 @@ PushNoticeToAndroidRequest::PushNoticeToAndroidRequest()
|
||||
|
||||
PushNoticeToAndroidRequest::~PushNoticeToAndroidRequest() {}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getExtParameters() const {
|
||||
return extParameters_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setExtParameters(const std::string &extParameters) {
|
||||
extParameters_ = extParameters;
|
||||
setParameter(std::string("ExtParameters"), extParameters);
|
||||
}
|
||||
|
||||
bool PushNoticeToAndroidRequest::getStoreOffline() const {
|
||||
return storeOffline_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setStoreOffline(bool storeOffline) {
|
||||
storeOffline_ = storeOffline;
|
||||
setParameter(std::string("StoreOffline"), storeOffline ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
@@ -61,15 +43,6 @@ void PushNoticeToAndroidRequest::setBody(const std::string &body) {
|
||||
setParameter(std::string("Body"), body);
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -79,6 +52,33 @@ void PushNoticeToAndroidRequest::setAccessKeyId(const std::string &accessKeyId)
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getExtParameters() const {
|
||||
return extParameters_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setExtParameters(const std::string &extParameters) {
|
||||
extParameters_ = extParameters;
|
||||
setParameter(std::string("ExtParameters"), extParameters);
|
||||
}
|
||||
|
||||
bool PushNoticeToAndroidRequest::getStoreOffline() const {
|
||||
return storeOffline_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setStoreOffline(bool storeOffline) {
|
||||
storeOffline_ = storeOffline;
|
||||
setParameter(std::string("StoreOffline"), storeOffline ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushNoticeToAndroidRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
std::string PushNoticeToAndroidRequest::getTarget() const {
|
||||
return target_;
|
||||
}
|
||||
|
||||
@@ -25,24 +25,6 @@ PushNoticeToiOSRequest::PushNoticeToiOSRequest()
|
||||
|
||||
PushNoticeToiOSRequest::~PushNoticeToiOSRequest() {}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getExtParameters() const {
|
||||
return extParameters_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setExtParameters(const std::string &extParameters) {
|
||||
extParameters_ = extParameters;
|
||||
setParameter(std::string("ExtParameters"), extParameters);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getApnsEnv() const {
|
||||
return apnsEnv_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setApnsEnv(const std::string &apnsEnv) {
|
||||
apnsEnv_ = apnsEnv;
|
||||
setParameter(std::string("ApnsEnv"), apnsEnv);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
@@ -61,15 +43,6 @@ void PushNoticeToiOSRequest::setBody(const std::string &body) {
|
||||
setParameter(std::string("Body"), body);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -79,6 +52,33 @@ void PushNoticeToiOSRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getExtParameters() const {
|
||||
return extParameters_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setExtParameters(const std::string &extParameters) {
|
||||
extParameters_ = extParameters;
|
||||
setParameter(std::string("ExtParameters"), extParameters);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getApnsEnv() const {
|
||||
return apnsEnv_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setApnsEnv(const std::string &apnsEnv) {
|
||||
apnsEnv_ = apnsEnv;
|
||||
setParameter(std::string("ApnsEnv"), apnsEnv);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushNoticeToiOSRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
std::string PushNoticeToiOSRequest::getTarget() const {
|
||||
return target_;
|
||||
}
|
||||
|
||||
@@ -34,24 +34,6 @@ void PushRequest::setAndroidNotificationBarType(int androidNotificationBarType)
|
||||
setParameter(std::string("AndroidNotificationBarType"), std::to_string(androidNotificationBarType));
|
||||
}
|
||||
|
||||
int PushRequest::getSmsSendPolicy() const {
|
||||
return smsSendPolicy_;
|
||||
}
|
||||
|
||||
void PushRequest::setSmsSendPolicy(int smsSendPolicy) {
|
||||
smsSendPolicy_ = smsSendPolicy;
|
||||
setParameter(std::string("SmsSendPolicy"), std::to_string(smsSendPolicy));
|
||||
}
|
||||
|
||||
std::string PushRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void PushRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setParameter(std::string("Body"), body);
|
||||
}
|
||||
|
||||
std::string PushRequest::getDeviceType() const {
|
||||
return deviceType_;
|
||||
}
|
||||
@@ -79,24 +61,6 @@ void PushRequest::setSendSpeed(int sendSpeed) {
|
||||
setParameter(std::string("SendSpeed"), std::to_string(sendSpeed));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationHuaweiChannel() const {
|
||||
return androidNotificationHuaweiChannel_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationHuaweiChannel(const std::string &androidNotificationHuaweiChannel) {
|
||||
androidNotificationHuaweiChannel_ = androidNotificationHuaweiChannel;
|
||||
setParameter(std::string("AndroidNotificationHuaweiChannel"), androidNotificationHuaweiChannel);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidPopupActivity() const {
|
||||
return androidPopupActivity_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidPopupActivity(const std::string &androidPopupActivity) {
|
||||
androidPopupActivity_ = androidPopupActivity;
|
||||
setParameter(std::string("AndroidPopupActivity"), androidPopupActivity);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSRemindBody() const {
|
||||
return iOSRemindBody_;
|
||||
}
|
||||
@@ -115,24 +79,6 @@ void PushRequest::setTrim(bool trim) {
|
||||
setParameter(std::string("Trim"), trim ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidMessageVivoCategory() const {
|
||||
return androidMessageVivoCategory_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidMessageVivoCategory(const std::string &androidMessageVivoCategory) {
|
||||
androidMessageVivoCategory_ = androidMessageVivoCategory;
|
||||
setParameter(std::string("AndroidMessageVivoCategory"), androidMessageVivoCategory);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotifyType() const {
|
||||
return androidNotifyType_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotifyType(const std::string &androidNotifyType) {
|
||||
androidNotifyType_ = androidNotifyType;
|
||||
setParameter(std::string("AndroidNotifyType"), androidNotifyType);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidPopupTitle() const {
|
||||
return androidPopupTitle_;
|
||||
}
|
||||
@@ -142,24 +88,6 @@ void PushRequest::setAndroidPopupTitle(const std::string &androidPopupTitle) {
|
||||
setParameter(std::string("AndroidPopupTitle"), androidPopupTitle);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidMessageHuaweiCategory() const {
|
||||
return androidMessageHuaweiCategory_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidMessageHuaweiCategory(const std::string &androidMessageHuaweiCategory) {
|
||||
androidMessageHuaweiCategory_ = androidMessageHuaweiCategory;
|
||||
setParameter(std::string("AndroidMessageHuaweiCategory"), androidMessageHuaweiCategory);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSMusic() const {
|
||||
return iOSMusic_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSMusic(const std::string &iOSMusic) {
|
||||
iOSMusic_ = iOSMusic;
|
||||
setParameter(std::string("iOSMusic"), iOSMusic);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSApnsEnv() const {
|
||||
return iOSApnsEnv_;
|
||||
}
|
||||
@@ -169,15 +97,6 @@ void PushRequest::setIOSApnsEnv(const std::string &iOSApnsEnv) {
|
||||
setParameter(std::string("iOSApnsEnv"), iOSApnsEnv);
|
||||
}
|
||||
|
||||
bool PushRequest::getIOSMutableContent() const {
|
||||
return iOSMutableContent_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSMutableContent(bool iOSMutableContent) {
|
||||
iOSMutableContent_ = iOSMutableContent;
|
||||
setParameter(std::string("iOSMutableContent"), iOSMutableContent ? "true" : "false");
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidNotificationBarPriority() const {
|
||||
return androidNotificationBarPriority_;
|
||||
}
|
||||
@@ -205,24 +124,6 @@ void PushRequest::setAndroidImageUrl(const std::string &androidImageUrl) {
|
||||
setParameter(std::string("AndroidImageUrl"), androidImageUrl);
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidHonorTargetUserType() const {
|
||||
return androidHonorTargetUserType_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidHonorTargetUserType(int androidHonorTargetUserType) {
|
||||
androidHonorTargetUserType_ = androidHonorTargetUserType;
|
||||
setParameter(std::string("AndroidHonorTargetUserType"), std::to_string(androidHonorTargetUserType));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationVivoChannel() const {
|
||||
return androidNotificationVivoChannel_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationVivoChannel(const std::string &androidNotificationVivoChannel) {
|
||||
androidNotificationVivoChannel_ = androidNotificationVivoChannel;
|
||||
setParameter(std::string("AndroidNotificationVivoChannel"), androidNotificationVivoChannel);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidVivoReceiptId() const {
|
||||
return androidVivoReceiptId_;
|
||||
}
|
||||
@@ -241,96 +142,6 @@ void PushRequest::setIOSNotificationCategory(const std::string &iOSNotificationC
|
||||
setParameter(std::string("iOSNotificationCategory"), iOSNotificationCategory);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationXiaomiChannel() const {
|
||||
return androidNotificationXiaomiChannel_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationXiaomiChannel(const std::string &androidNotificationXiaomiChannel) {
|
||||
androidNotificationXiaomiChannel_ = androidNotificationXiaomiChannel;
|
||||
setParameter(std::string("AndroidNotificationXiaomiChannel"), androidNotificationXiaomiChannel);
|
||||
}
|
||||
|
||||
bool PushRequest::getStoreOffline() const {
|
||||
return storeOffline_;
|
||||
}
|
||||
|
||||
void PushRequest::setStoreOffline(bool storeOffline) {
|
||||
storeOffline_ = storeOffline;
|
||||
setParameter(std::string("StoreOffline"), storeOffline ? "true" : "false");
|
||||
}
|
||||
|
||||
double PushRequest::getIOSRelevanceScore() const {
|
||||
return iOSRelevanceScore_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSRelevanceScore(double iOSRelevanceScore) {
|
||||
iOSRelevanceScore_ = iOSRelevanceScore;
|
||||
setParameter(std::string("iOSRelevanceScore"), std::to_string(iOSRelevanceScore));
|
||||
}
|
||||
|
||||
std::string PushRequest::getSmsParams() const {
|
||||
return smsParams_;
|
||||
}
|
||||
|
||||
void PushRequest::setSmsParams(const std::string &smsParams) {
|
||||
smsParams_ = smsParams;
|
||||
setParameter(std::string("SmsParams"), smsParams);
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidVivoPushMode() const {
|
||||
return androidVivoPushMode_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidVivoPushMode(int androidVivoPushMode) {
|
||||
androidVivoPushMode_ = androidVivoPushMode;
|
||||
setParameter(std::string("AndroidVivoPushMode"), std::to_string(androidVivoPushMode));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidInboxBody() const {
|
||||
return androidInboxBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidInboxBody(const std::string &androidInboxBody) {
|
||||
androidInboxBody_ = androidInboxBody;
|
||||
setParameter(std::string("AndroidInboxBody"), androidInboxBody);
|
||||
}
|
||||
|
||||
std::string PushRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidOpenUrl() const {
|
||||
return androidOpenUrl_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidOpenUrl(const std::string &androidOpenUrl) {
|
||||
androidOpenUrl_ = androidOpenUrl;
|
||||
setParameter(std::string("AndroidOpenUrl"), androidOpenUrl);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidXiaoMiNotifyBody() const {
|
||||
return androidXiaoMiNotifyBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidXiaoMiNotifyBody(const std::string &androidXiaoMiNotifyBody) {
|
||||
androidXiaoMiNotifyBody_ = androidXiaoMiNotifyBody;
|
||||
setParameter(std::string("AndroidXiaoMiNotifyBody"), androidXiaoMiNotifyBody);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSSubtitle() const {
|
||||
return iOSSubtitle_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSSubtitle(const std::string &iOSSubtitle) {
|
||||
iOSSubtitle_ = iOSSubtitle;
|
||||
setParameter(std::string("iOSSubtitle"), iOSSubtitle);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidXiaomiBigPictureUrl() const {
|
||||
return androidXiaomiBigPictureUrl_;
|
||||
}
|
||||
@@ -340,6 +151,15 @@ void PushRequest::setAndroidXiaomiBigPictureUrl(const std::string &androidXiaomi
|
||||
setParameter(std::string("AndroidXiaomiBigPictureUrl"), androidXiaomiBigPictureUrl);
|
||||
}
|
||||
|
||||
std::string PushRequest::getHarmonyCategory() const {
|
||||
return harmonyCategory_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyCategory(const std::string &harmonyCategory) {
|
||||
harmonyCategory_ = harmonyCategory;
|
||||
setParameter(std::string("HarmonyCategory"), harmonyCategory);
|
||||
}
|
||||
|
||||
bool PushRequest::getIOSRemind() const {
|
||||
return iOSRemind_;
|
||||
}
|
||||
@@ -367,24 +187,6 @@ void PushRequest::setAndroidHuaweiTargetUserType(int androidHuaweiTargetUserType
|
||||
setParameter(std::string("AndroidHuaweiTargetUserType"), std::to_string(androidHuaweiTargetUserType));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidMusic() const {
|
||||
return androidMusic_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidMusic(const std::string &androidMusic) {
|
||||
androidMusic_ = androidMusic;
|
||||
setParameter(std::string("AndroidMusic"), androidMusic);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSNotificationCollapseId() const {
|
||||
return iOSNotificationCollapseId_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSNotificationCollapseId(const std::string &iOSNotificationCollapseId) {
|
||||
iOSNotificationCollapseId_ = iOSNotificationCollapseId;
|
||||
setParameter(std::string("iOSNotificationCollapseId"), iOSNotificationCollapseId);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidMessageHuaweiUrgency() const {
|
||||
return androidMessageHuaweiUrgency_;
|
||||
}
|
||||
@@ -394,15 +196,6 @@ void PushRequest::setAndroidMessageHuaweiUrgency(const std::string &androidMessa
|
||||
setParameter(std::string("AndroidMessageHuaweiUrgency"), androidMessageHuaweiUrgency);
|
||||
}
|
||||
|
||||
std::string PushRequest::getPushType() const {
|
||||
return pushType_;
|
||||
}
|
||||
|
||||
void PushRequest::setPushType(const std::string &pushType) {
|
||||
pushType_ = pushType;
|
||||
setParameter(std::string("PushType"), pushType);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSInterruptionLevel() const {
|
||||
return iOSInterruptionLevel_;
|
||||
}
|
||||
@@ -430,15 +223,6 @@ void PushRequest::setIOSBadge(int iOSBadge) {
|
||||
setParameter(std::string("iOSBadge"), std::to_string(iOSBadge));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidBigBody() const {
|
||||
return androidBigBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidBigBody(const std::string &androidBigBody) {
|
||||
androidBigBody_ = androidBigBody;
|
||||
setParameter(std::string("AndroidBigBody"), androidBigBody);
|
||||
}
|
||||
|
||||
bool PushRequest::getIOSBadgeAutoIncrement() const {
|
||||
return iOSBadgeAutoIncrement_;
|
||||
}
|
||||
@@ -457,22 +241,22 @@ void PushRequest::setAndroidOpenType(const std::string &androidOpenType) {
|
||||
setParameter(std::string("AndroidOpenType"), androidOpenType);
|
||||
}
|
||||
|
||||
std::string PushRequest::getTitle() const {
|
||||
return title_;
|
||||
std::string PushRequest::getHarmonyRemindTitle() const {
|
||||
return harmonyRemindTitle_;
|
||||
}
|
||||
|
||||
void PushRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
void PushRequest::setHarmonyRemindTitle(const std::string &harmonyRemindTitle) {
|
||||
harmonyRemindTitle_ = harmonyRemindTitle;
|
||||
setParameter(std::string("HarmonyRemindTitle"), harmonyRemindTitle);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
std::string PushRequest::getAndroidBadgeClass() const {
|
||||
return androidBadgeClass_;
|
||||
}
|
||||
|
||||
void PushRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
void PushRequest::setAndroidBadgeClass(const std::string &androidBadgeClass) {
|
||||
androidBadgeClass_ = androidBadgeClass;
|
||||
setParameter(std::string("AndroidBadgeClass"), androidBadgeClass);
|
||||
}
|
||||
|
||||
int PushRequest::getSmsDelaySecs() const {
|
||||
@@ -502,24 +286,6 @@ void PushRequest::setIOSExtParameters(const std::string &iOSExtParameters) {
|
||||
setParameter(std::string("iOSExtParameters"), iOSExtParameters);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidHuaweiReceiptId() const {
|
||||
return androidHuaweiReceiptId_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidHuaweiReceiptId(const std::string &androidHuaweiReceiptId) {
|
||||
androidHuaweiReceiptId_ = androidHuaweiReceiptId;
|
||||
setParameter(std::string("AndroidHuaweiReceiptId"), androidHuaweiReceiptId);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationHonorChannel() const {
|
||||
return androidNotificationHonorChannel_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationHonorChannel(const std::string &androidNotificationHonorChannel) {
|
||||
androidNotificationHonorChannel_ = androidNotificationHonorChannel;
|
||||
setParameter(std::string("AndroidNotificationHonorChannel"), androidNotificationHonorChannel);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidXiaomiImageUrl() const {
|
||||
return androidXiaomiImageUrl_;
|
||||
}
|
||||
@@ -529,15 +295,6 @@ void PushRequest::setAndroidXiaomiImageUrl(const std::string &androidXiaomiImage
|
||||
setParameter(std::string("AndroidXiaomiImageUrl"), androidXiaomiImageUrl);
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidTargetUserType() const {
|
||||
return androidTargetUserType_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidTargetUserType(int androidTargetUserType) {
|
||||
androidTargetUserType_ = androidTargetUserType;
|
||||
setParameter(std::string("AndroidTargetUserType"), std::to_string(androidTargetUserType));
|
||||
}
|
||||
|
||||
std::string PushRequest::getSmsTemplateName() const {
|
||||
return smsTemplateName_;
|
||||
}
|
||||
@@ -547,13 +304,22 @@ void PushRequest::setSmsTemplateName(const std::string &smsTemplateName) {
|
||||
setParameter(std::string("SmsTemplateName"), smsTemplateName);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidPopupBody() const {
|
||||
return androidPopupBody_;
|
||||
std::string PushRequest::getHarmonyUri() const {
|
||||
return harmonyUri_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidPopupBody(const std::string &androidPopupBody) {
|
||||
androidPopupBody_ = androidPopupBody;
|
||||
setParameter(std::string("AndroidPopupBody"), androidPopupBody);
|
||||
void PushRequest::setHarmonyUri(const std::string &harmonyUri) {
|
||||
harmonyUri_ = harmonyUri;
|
||||
setParameter(std::string("HarmonyUri"), harmonyUri);
|
||||
}
|
||||
|
||||
std::string PushRequest::getHarmonyExtParameters() const {
|
||||
return harmonyExtParameters_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyExtParameters(const std::string &harmonyExtParameters) {
|
||||
harmonyExtParameters_ = harmonyExtParameters;
|
||||
setParameter(std::string("HarmonyExtParameters"), harmonyExtParameters);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidBigPictureUrl() const {
|
||||
@@ -574,31 +340,13 @@ void PushRequest::setIOSSilentNotification(bool iOSSilentNotification) {
|
||||
setParameter(std::string("iOSSilentNotification"), iOSSilentNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationGroup() const {
|
||||
return androidNotificationGroup_;
|
||||
std::string PushRequest::getHarmonyNotificationSlotType() const {
|
||||
return harmonyNotificationSlotType_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationGroup(const std::string &androidNotificationGroup) {
|
||||
androidNotificationGroup_ = androidNotificationGroup;
|
||||
setParameter(std::string("AndroidNotificationGroup"), androidNotificationGroup);
|
||||
}
|
||||
|
||||
std::string PushRequest::getSendChannels() const {
|
||||
return sendChannels_;
|
||||
}
|
||||
|
||||
void PushRequest::setSendChannels(const std::string &sendChannels) {
|
||||
sendChannels_ = sendChannels;
|
||||
setParameter(std::string("SendChannels"), sendChannels);
|
||||
}
|
||||
|
||||
std::string PushRequest::getTarget() const {
|
||||
return target_;
|
||||
}
|
||||
|
||||
void PushRequest::setTarget(const std::string &target) {
|
||||
target_ = target;
|
||||
setParameter(std::string("Target"), target);
|
||||
void PushRequest::setHarmonyNotificationSlotType(const std::string &harmonyNotificationSlotType) {
|
||||
harmonyNotificationSlotType_ = harmonyNotificationSlotType;
|
||||
setParameter(std::string("HarmonyNotificationSlotType"), harmonyNotificationSlotType);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidBigTitle() const {
|
||||
@@ -673,6 +421,15 @@ void PushRequest::setTargetValue(const std::string &targetValue) {
|
||||
setParameter(std::string("TargetValue"), targetValue);
|
||||
}
|
||||
|
||||
int PushRequest::getHarmonyBadgeSetNum() const {
|
||||
return harmonyBadgeSetNum_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyBadgeSetNum(int harmonyBadgeSetNum) {
|
||||
harmonyBadgeSetNum_ = harmonyBadgeSetNum;
|
||||
setParameter(std::string("HarmonyBadgeSetNum"), std::to_string(harmonyBadgeSetNum));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidXiaoMiNotifyTitle() const {
|
||||
return androidXiaoMiNotifyTitle_;
|
||||
}
|
||||
@@ -682,6 +439,447 @@ void PushRequest::setAndroidXiaoMiNotifyTitle(const std::string &androidXiaoMiNo
|
||||
setParameter(std::string("AndroidXiaoMiNotifyTitle"), androidXiaoMiNotifyTitle);
|
||||
}
|
||||
|
||||
int PushRequest::getSmsSendPolicy() const {
|
||||
return smsSendPolicy_;
|
||||
}
|
||||
|
||||
void PushRequest::setSmsSendPolicy(int smsSendPolicy) {
|
||||
smsSendPolicy_ = smsSendPolicy;
|
||||
setParameter(std::string("SmsSendPolicy"), std::to_string(smsSendPolicy));
|
||||
}
|
||||
|
||||
std::string PushRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void PushRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setParameter(std::string("Body"), body);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationHuaweiChannel() const {
|
||||
return androidNotificationHuaweiChannel_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationHuaweiChannel(const std::string &androidNotificationHuaweiChannel) {
|
||||
androidNotificationHuaweiChannel_ = androidNotificationHuaweiChannel;
|
||||
setParameter(std::string("AndroidNotificationHuaweiChannel"), androidNotificationHuaweiChannel);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidPopupActivity() const {
|
||||
return androidPopupActivity_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidPopupActivity(const std::string &androidPopupActivity) {
|
||||
androidPopupActivity_ = androidPopupActivity;
|
||||
setParameter(std::string("AndroidPopupActivity"), androidPopupActivity);
|
||||
}
|
||||
|
||||
int PushRequest::getHarmonyNotifyId() const {
|
||||
return harmonyNotifyId_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyNotifyId(int harmonyNotifyId) {
|
||||
harmonyNotifyId_ = harmonyNotifyId;
|
||||
setParameter(std::string("HarmonyNotifyId"), std::to_string(harmonyNotifyId));
|
||||
}
|
||||
|
||||
std::string PushRequest::getHarmonyRenderStyle() const {
|
||||
return harmonyRenderStyle_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyRenderStyle(const std::string &harmonyRenderStyle) {
|
||||
harmonyRenderStyle_ = harmonyRenderStyle;
|
||||
setParameter(std::string("HarmonyRenderStyle"), harmonyRenderStyle);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidMessageVivoCategory() const {
|
||||
return androidMessageVivoCategory_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidMessageVivoCategory(const std::string &androidMessageVivoCategory) {
|
||||
androidMessageVivoCategory_ = androidMessageVivoCategory;
|
||||
setParameter(std::string("AndroidMessageVivoCategory"), androidMessageVivoCategory);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotifyType() const {
|
||||
return androidNotifyType_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotifyType(const std::string &androidNotifyType) {
|
||||
androidNotifyType_ = androidNotifyType;
|
||||
setParameter(std::string("AndroidNotifyType"), androidNotifyType);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidMessageHuaweiCategory() const {
|
||||
return androidMessageHuaweiCategory_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidMessageHuaweiCategory(const std::string &androidMessageHuaweiCategory) {
|
||||
androidMessageHuaweiCategory_ = androidMessageHuaweiCategory;
|
||||
setParameter(std::string("AndroidMessageHuaweiCategory"), androidMessageHuaweiCategory);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSMusic() const {
|
||||
return iOSMusic_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSMusic(const std::string &iOSMusic) {
|
||||
iOSMusic_ = iOSMusic;
|
||||
setParameter(std::string("iOSMusic"), iOSMusic);
|
||||
}
|
||||
|
||||
bool PushRequest::getIOSMutableContent() const {
|
||||
return iOSMutableContent_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSMutableContent(bool iOSMutableContent) {
|
||||
iOSMutableContent_ = iOSMutableContent;
|
||||
setParameter(std::string("iOSMutableContent"), iOSMutableContent ? "true" : "false");
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidHonorTargetUserType() const {
|
||||
return androidHonorTargetUserType_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidHonorTargetUserType(int androidHonorTargetUserType) {
|
||||
androidHonorTargetUserType_ = androidHonorTargetUserType;
|
||||
setParameter(std::string("AndroidHonorTargetUserType"), std::to_string(androidHonorTargetUserType));
|
||||
}
|
||||
|
||||
std::string PushRequest::getHarmonyRemindBody() const {
|
||||
return harmonyRemindBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyRemindBody(const std::string &harmonyRemindBody) {
|
||||
harmonyRemindBody_ = harmonyRemindBody;
|
||||
setParameter(std::string("HarmonyRemindBody"), harmonyRemindBody);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationVivoChannel() const {
|
||||
return androidNotificationVivoChannel_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationVivoChannel(const std::string &androidNotificationVivoChannel) {
|
||||
androidNotificationVivoChannel_ = androidNotificationVivoChannel;
|
||||
setParameter(std::string("AndroidNotificationVivoChannel"), androidNotificationVivoChannel);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationXiaomiChannel() const {
|
||||
return androidNotificationXiaomiChannel_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationXiaomiChannel(const std::string &androidNotificationXiaomiChannel) {
|
||||
androidNotificationXiaomiChannel_ = androidNotificationXiaomiChannel;
|
||||
setParameter(std::string("AndroidNotificationXiaomiChannel"), androidNotificationXiaomiChannel);
|
||||
}
|
||||
|
||||
std::string PushRequest::getHarmonyAction() const {
|
||||
return harmonyAction_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyAction(const std::string &harmonyAction) {
|
||||
harmonyAction_ = harmonyAction;
|
||||
setParameter(std::string("HarmonyAction"), harmonyAction);
|
||||
}
|
||||
|
||||
bool PushRequest::getStoreOffline() const {
|
||||
return storeOffline_;
|
||||
}
|
||||
|
||||
void PushRequest::setStoreOffline(bool storeOffline) {
|
||||
storeOffline_ = storeOffline;
|
||||
setParameter(std::string("StoreOffline"), storeOffline ? "true" : "false");
|
||||
}
|
||||
|
||||
double PushRequest::getIOSRelevanceScore() const {
|
||||
return iOSRelevanceScore_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSRelevanceScore(double iOSRelevanceScore) {
|
||||
iOSRelevanceScore_ = iOSRelevanceScore;
|
||||
setParameter(std::string("iOSRelevanceScore"), std::to_string(iOSRelevanceScore));
|
||||
}
|
||||
|
||||
std::string PushRequest::getSmsParams() const {
|
||||
return smsParams_;
|
||||
}
|
||||
|
||||
void PushRequest::setSmsParams(const std::string &smsParams) {
|
||||
smsParams_ = smsParams;
|
||||
setParameter(std::string("SmsParams"), smsParams);
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidVivoPushMode() const {
|
||||
return androidVivoPushMode_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidVivoPushMode(int androidVivoPushMode) {
|
||||
androidVivoPushMode_ = androidVivoPushMode;
|
||||
setParameter(std::string("AndroidVivoPushMode"), std::to_string(androidVivoPushMode));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidInboxBody() const {
|
||||
return androidInboxBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidInboxBody(const std::string &androidInboxBody) {
|
||||
androidInboxBody_ = androidInboxBody;
|
||||
setParameter(std::string("AndroidInboxBody"), androidInboxBody);
|
||||
}
|
||||
|
||||
std::string PushRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
void PushRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
std::string PushRequest::getHarmonyReceiptId() const {
|
||||
return harmonyReceiptId_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyReceiptId(const std::string &harmonyReceiptId) {
|
||||
harmonyReceiptId_ = harmonyReceiptId;
|
||||
setParameter(std::string("HarmonyReceiptId"), harmonyReceiptId);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidOpenUrl() const {
|
||||
return androidOpenUrl_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidOpenUrl(const std::string &androidOpenUrl) {
|
||||
androidOpenUrl_ = androidOpenUrl;
|
||||
setParameter(std::string("AndroidOpenUrl"), androidOpenUrl);
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidBadgeSetNum() const {
|
||||
return androidBadgeSetNum_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidBadgeSetNum(int androidBadgeSetNum) {
|
||||
androidBadgeSetNum_ = androidBadgeSetNum;
|
||||
setParameter(std::string("AndroidBadgeSetNum"), std::to_string(androidBadgeSetNum));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidXiaoMiNotifyBody() const {
|
||||
return androidXiaoMiNotifyBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidXiaoMiNotifyBody(const std::string &androidXiaoMiNotifyBody) {
|
||||
androidXiaoMiNotifyBody_ = androidXiaoMiNotifyBody;
|
||||
setParameter(std::string("AndroidXiaoMiNotifyBody"), androidXiaoMiNotifyBody);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSSubtitle() const {
|
||||
return iOSSubtitle_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSSubtitle(const std::string &iOSSubtitle) {
|
||||
iOSSubtitle_ = iOSSubtitle;
|
||||
setParameter(std::string("iOSSubtitle"), iOSSubtitle);
|
||||
}
|
||||
|
||||
bool PushRequest::getHarmonyRemind() const {
|
||||
return harmonyRemind_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyRemind(bool harmonyRemind) {
|
||||
harmonyRemind_ = harmonyRemind;
|
||||
setParameter(std::string("HarmonyRemind"), harmonyRemind ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidMusic() const {
|
||||
return androidMusic_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidMusic(const std::string &androidMusic) {
|
||||
androidMusic_ = androidMusic;
|
||||
setParameter(std::string("AndroidMusic"), androidMusic);
|
||||
}
|
||||
|
||||
bool PushRequest::getHarmonyExtensionPush() const {
|
||||
return harmonyExtensionPush_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyExtensionPush(bool harmonyExtensionPush) {
|
||||
harmonyExtensionPush_ = harmonyExtensionPush;
|
||||
setParameter(std::string("HarmonyExtensionPush"), harmonyExtensionPush ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSNotificationCollapseId() const {
|
||||
return iOSNotificationCollapseId_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSNotificationCollapseId(const std::string &iOSNotificationCollapseId) {
|
||||
iOSNotificationCollapseId_ = iOSNotificationCollapseId;
|
||||
setParameter(std::string("iOSNotificationCollapseId"), iOSNotificationCollapseId);
|
||||
}
|
||||
|
||||
std::string PushRequest::getPushType() const {
|
||||
return pushType_;
|
||||
}
|
||||
|
||||
void PushRequest::setPushType(const std::string &pushType) {
|
||||
pushType_ = pushType;
|
||||
setParameter(std::string("PushType"), pushType);
|
||||
}
|
||||
|
||||
std::string PushRequest::getHarmonyExtensionExtraData() const {
|
||||
return harmonyExtensionExtraData_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyExtensionExtraData(const std::string &harmonyExtensionExtraData) {
|
||||
harmonyExtensionExtraData_ = harmonyExtensionExtraData;
|
||||
setParameter(std::string("HarmonyExtensionExtraData"), harmonyExtensionExtraData);
|
||||
}
|
||||
|
||||
std::string PushRequest::getHarmonyImageUrl() const {
|
||||
return harmonyImageUrl_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyImageUrl(const std::string &harmonyImageUrl) {
|
||||
harmonyImageUrl_ = harmonyImageUrl;
|
||||
setParameter(std::string("HarmonyImageUrl"), harmonyImageUrl);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidBigBody() const {
|
||||
return androidBigBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidBigBody(const std::string &androidBigBody) {
|
||||
androidBigBody_ = androidBigBody;
|
||||
setParameter(std::string("AndroidBigBody"), androidBigBody);
|
||||
}
|
||||
|
||||
std::string PushRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void PushRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void PushRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
int PushRequest::getHarmonyBadgeAddNum() const {
|
||||
return harmonyBadgeAddNum_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyBadgeAddNum(int harmonyBadgeAddNum) {
|
||||
harmonyBadgeAddNum_ = harmonyBadgeAddNum;
|
||||
setParameter(std::string("HarmonyBadgeAddNum"), std::to_string(harmonyBadgeAddNum));
|
||||
}
|
||||
|
||||
bool PushRequest::getHarmonyTestMessage() const {
|
||||
return harmonyTestMessage_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyTestMessage(bool harmonyTestMessage) {
|
||||
harmonyTestMessage_ = harmonyTestMessage;
|
||||
setParameter(std::string("HarmonyTestMessage"), harmonyTestMessage ? "true" : "false");
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidBadgeAddNum() const {
|
||||
return androidBadgeAddNum_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidBadgeAddNum(int androidBadgeAddNum) {
|
||||
androidBadgeAddNum_ = androidBadgeAddNum;
|
||||
setParameter(std::string("AndroidBadgeAddNum"), std::to_string(androidBadgeAddNum));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidHuaweiReceiptId() const {
|
||||
return androidHuaweiReceiptId_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidHuaweiReceiptId(const std::string &androidHuaweiReceiptId) {
|
||||
androidHuaweiReceiptId_ = androidHuaweiReceiptId;
|
||||
setParameter(std::string("AndroidHuaweiReceiptId"), androidHuaweiReceiptId);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationHonorChannel() const {
|
||||
return androidNotificationHonorChannel_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationHonorChannel(const std::string &androidNotificationHonorChannel) {
|
||||
androidNotificationHonorChannel_ = androidNotificationHonorChannel;
|
||||
setParameter(std::string("AndroidNotificationHonorChannel"), androidNotificationHonorChannel);
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidTargetUserType() const {
|
||||
return androidTargetUserType_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidTargetUserType(int androidTargetUserType) {
|
||||
androidTargetUserType_ = androidTargetUserType;
|
||||
setParameter(std::string("AndroidTargetUserType"), std::to_string(androidTargetUserType));
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidPopupBody() const {
|
||||
return androidPopupBody_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidPopupBody(const std::string &androidPopupBody) {
|
||||
androidPopupBody_ = androidPopupBody;
|
||||
setParameter(std::string("AndroidPopupBody"), androidPopupBody);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationGroup() const {
|
||||
return androidNotificationGroup_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationGroup(const std::string &androidNotificationGroup) {
|
||||
androidNotificationGroup_ = androidNotificationGroup;
|
||||
setParameter(std::string("AndroidNotificationGroup"), androidNotificationGroup);
|
||||
}
|
||||
|
||||
std::string PushRequest::getSendChannels() const {
|
||||
return sendChannels_;
|
||||
}
|
||||
|
||||
void PushRequest::setSendChannels(const std::string &sendChannels) {
|
||||
sendChannels_ = sendChannels;
|
||||
setParameter(std::string("SendChannels"), sendChannels);
|
||||
}
|
||||
|
||||
std::string PushRequest::getHarmonyActionType() const {
|
||||
return harmonyActionType_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyActionType(const std::string &harmonyActionType) {
|
||||
harmonyActionType_ = harmonyActionType;
|
||||
setParameter(std::string("HarmonyActionType"), harmonyActionType);
|
||||
}
|
||||
|
||||
std::string PushRequest::getTarget() const {
|
||||
return target_;
|
||||
}
|
||||
|
||||
void PushRequest::setTarget(const std::string &target) {
|
||||
target_ = target;
|
||||
setParameter(std::string("Target"), target);
|
||||
}
|
||||
|
||||
std::string PushRequest::getHarmonyInboxContent() const {
|
||||
return harmonyInboxContent_;
|
||||
}
|
||||
|
||||
void PushRequest::setHarmonyInboxContent(const std::string &harmonyInboxContent) {
|
||||
harmonyInboxContent_ = harmonyInboxContent;
|
||||
setParameter(std::string("HarmonyInboxContent"), harmonyInboxContent);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidXiaoMiActivity() const {
|
||||
return androidXiaoMiActivity_;
|
||||
}
|
||||
|
||||
@@ -43,15 +43,6 @@ void QueryPushRecordsRequest::setSource(const std::string &source) {
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
std::string QueryPushRecordsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryPushRecordsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryPushRecordsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user