Przeglądaj źródła

Supported AndroidNotificationHuaweiChannel for Push and MassPush.

sdk-team 6 lat temu
rodzic
commit
60ea8efd1a

+ 3 - 0
CHANGELOG

@@ -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.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.628
+1.36.629

+ 1 - 0
push/include/alibabacloud/push/model/MassPushRequest.h

@@ -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;

+ 3 - 0
push/include/alibabacloud/push/model/PushRequest.h

@@ -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_;

+ 1 - 0
push/src/model/MassPushRequest.cc

@@ -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);

+ 11 - 0
push/src/model/PushRequest.cc

@@ -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_;