Supported AndroidNotificationXiaomiChannel for Push and MassPush.

This commit is contained in:
sdk-team
2020-05-28 14:52:08 +08:00
parent 83df0154da
commit 03a2cd3731
6 changed files with 20 additions and 1 deletions

View File

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

View File

@@ -1 +1 @@
1.36.439
1.36.440

View File

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

View File

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

View File

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

View File

@@ -203,6 +203,17 @@ void PushRequest::setIOSNotificationCategory(const std::string& iOSNotificationC
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
{
return storeOffline_;