Compare commits

..

1 Commits

Author SHA1 Message Date
sdk-team
60ea8efd1a Supported AndroidNotificationHuaweiChannel for Push and MassPush. 2020-09-02 10:33:02 +08:00
6 changed files with 20 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2020-09-02 Version: 1.36.629
- Supported AndroidNotificationHuaweiChannel for Push and MassPush.
2020-09-02 Version: 1.36.628
- Supported AndroidNotificationHuaweiChannel for Push and MassPush.

View File

@@ -1 +1 @@
1.36.628
1.36.629

View File

@@ -43,6 +43,7 @@ namespace AlibabaCloud
std::string deviceType;
std::string pushTime;
int sendSpeed;
std::string androidNotificationHuaweiChannel;
std::string androidPopupActivity;
std::string iOSRemindBody;
std::string iOSExtParameters;

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
void setPushTime(const std::string& pushTime);
int getSendSpeed()const;
void setSendSpeed(int sendSpeed);
std::string getAndroidNotificationHuaweiChannel()const;
void setAndroidNotificationHuaweiChannel(const std::string& androidNotificationHuaweiChannel);
std::string getAndroidPopupActivity()const;
void setAndroidPopupActivity(const std::string& androidPopupActivity);
std::string getIOSRemindBody()const;
@@ -137,6 +139,7 @@ namespace AlibabaCloud
std::string deviceType_;
std::string pushTime_;
int sendSpeed_;
std::string androidNotificationHuaweiChannel_;
std::string androidPopupActivity_;
std::string iOSRemindBody_;
std::string androidNotifyType_;

View File

@@ -59,6 +59,7 @@ void MassPushRequest::setPushTask(const std::vector<PushTask>& pushTask)
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 + ".IOSExtParameters", pushTaskObj.iOSExtParameters);

View File

@@ -93,6 +93,17 @@ void PushRequest::setSendSpeed(int sendSpeed)
setParameter("SendSpeed", std::to_string(sendSpeed));
}
std::string PushRequest::getAndroidNotificationHuaweiChannel()const
{
return androidNotificationHuaweiChannel_;
}
void PushRequest::setAndroidNotificationHuaweiChannel(const std::string& androidNotificationHuaweiChannel)
{
androidNotificationHuaweiChannel_ = androidNotificationHuaweiChannel;
setParameter("AndroidNotificationHuaweiChannel", androidNotificationHuaweiChannel);
}
std::string PushRequest::getAndroidPopupActivity()const
{
return androidPopupActivity_;