Supported AndroidNotificationXiaomiChannel for Push and MassPush.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user