Parcourir la source

Supported AndroidNotificationXiaomiChannel for Push and MassPush.

sdk-team il y a 6 ans
Parent
commit
03a2cd3731

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-05-28 Version: 1.36.440
+- Supported AndroidNotificationXiaomiChannel for Push and MassPush.
+
 2020-05-27 Version: 1.36.439
 2020-05-27 Version: 1.36.439
 - Added cn-heyuan endpoint url.
 - Added cn-heyuan endpoint url.
 - Added cn-wulanchabu endpoint url.
 - Added cn-wulanchabu endpoint url.

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.439
+1.36.440

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

@@ -55,6 +55,7 @@ namespace AlibabaCloud
 					std::string expireTime;
 					std::string expireTime;
 					std::string androidPopupBody;
 					std::string androidPopupBody;
 					std::string iOSNotificationCategory;
 					std::string iOSNotificationCategory;
+					std::string androidNotificationXiaomiChannel;
 					bool storeOffline;
 					bool storeOffline;
 					bool iOSSilentNotification;
 					bool iOSSilentNotification;
 					std::string jobKey;
 					std::string jobKey;

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

@@ -67,6 +67,8 @@ namespace AlibabaCloud
 				void setExpireTime(const std::string& expireTime);
 				void setExpireTime(const std::string& expireTime);
 				std::string getIOSNotificationCategory()const;
 				std::string getIOSNotificationCategory()const;
 				void setIOSNotificationCategory(const std::string& iOSNotificationCategory);
 				void setIOSNotificationCategory(const std::string& iOSNotificationCategory);
+				std::string getAndroidNotificationXiaomiChannel()const;
+				void setAndroidNotificationXiaomiChannel(const std::string& androidNotificationXiaomiChannel);
 				bool getStoreOffline()const;
 				bool getStoreOffline()const;
 				void setStoreOffline(bool storeOffline);
 				void setStoreOffline(bool storeOffline);
 				std::string getSmsParams()const;
 				std::string getSmsParams()const;
@@ -143,6 +145,7 @@ namespace AlibabaCloud
 				int androidNotificationBarPriority_;
 				int androidNotificationBarPriority_;
 				std::string expireTime_;
 				std::string expireTime_;
 				std::string iOSNotificationCategory_;
 				std::string iOSNotificationCategory_;
+				std::string androidNotificationXiaomiChannel_;
 				bool storeOffline_;
 				bool storeOffline_;
 				std::string smsParams_;
 				std::string smsParams_;
 				std::string jobKey_;
 				std::string jobKey_;

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

@@ -71,6 +71,7 @@ void MassPushRequest::setPushTask(const std::vector<PushTask>& pushTask)
 		setParameter(pushTaskObjStr + ".ExpireTime", pushTaskObj.expireTime);
 		setParameter(pushTaskObjStr + ".ExpireTime", pushTaskObj.expireTime);
 		setParameter(pushTaskObjStr + ".AndroidPopupBody", pushTaskObj.androidPopupBody);
 		setParameter(pushTaskObjStr + ".AndroidPopupBody", pushTaskObj.androidPopupBody);
 		setParameter(pushTaskObjStr + ".IOSNotificationCategory", pushTaskObj.iOSNotificationCategory);
 		setParameter(pushTaskObjStr + ".IOSNotificationCategory", pushTaskObj.iOSNotificationCategory);
+		setParameter(pushTaskObjStr + ".AndroidNotificationXiaomiChannel", pushTaskObj.androidNotificationXiaomiChannel);
 		setParameter(pushTaskObjStr + ".StoreOffline", pushTaskObj.storeOffline ? "true" : "false");
 		setParameter(pushTaskObjStr + ".StoreOffline", pushTaskObj.storeOffline ? "true" : "false");
 		setParameter(pushTaskObjStr + ".IOSSilentNotification", pushTaskObj.iOSSilentNotification ? "true" : "false");
 		setParameter(pushTaskObjStr + ".IOSSilentNotification", pushTaskObj.iOSSilentNotification ? "true" : "false");
 		setParameter(pushTaskObjStr + ".JobKey", pushTaskObj.jobKey);
 		setParameter(pushTaskObjStr + ".JobKey", pushTaskObj.jobKey);

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

@@ -203,6 +203,17 @@ void PushRequest::setIOSNotificationCategory(const std::string& iOSNotificationC
 	setParameter("IOSNotificationCategory", iOSNotificationCategory);
 	setParameter("IOSNotificationCategory", iOSNotificationCategory);
 }
 }
 
 
+std::string PushRequest::getAndroidNotificationXiaomiChannel()const
+{
+	return androidNotificationXiaomiChannel_;
+}
+
+void PushRequest::setAndroidNotificationXiaomiChannel(const std::string& androidNotificationXiaomiChannel)
+{
+	androidNotificationXiaomiChannel_ = androidNotificationXiaomiChannel;
+	setParameter("AndroidNotificationXiaomiChannel", androidNotificationXiaomiChannel);
+}
+
 bool PushRequest::getStoreOffline()const
 bool PushRequest::getStoreOffline()const
 {
 {
 	return storeOffline_;
 	return storeOffline_;