Supported AndroidNotificationNotifyId for Push and MassPush.
This commit is contained in:
@@ -85,10 +85,12 @@ void MassPushRequest::setPushTask(const std::vector<PushTask>& pushTask)
|
||||
setParameter(pushTaskObjStr + ".AndroidXiaoMiNotifyBody", pushTaskObj.androidXiaoMiNotifyBody);
|
||||
setParameter(pushTaskObjStr + ".IOSSubtitle", pushTaskObj.iOSSubtitle);
|
||||
setParameter(pushTaskObjStr + ".IOSRemind", pushTaskObj.iOSRemind ? "true" : "false");
|
||||
setParameter(pushTaskObjStr + ".AndroidNotificationNotifyId", std::to_string(pushTaskObj.androidNotificationNotifyId));
|
||||
setParameter(pushTaskObjStr + ".TargetValue", pushTaskObj.targetValue);
|
||||
setParameter(pushTaskObjStr + ".AndroidMusic", pushTaskObj.androidMusic);
|
||||
setParameter(pushTaskObjStr + ".AndroidXiaoMiActivity", pushTaskObj.androidXiaoMiActivity);
|
||||
setParameter(pushTaskObjStr + ".AndroidXiaoMiNotifyTitle", pushTaskObj.androidXiaoMiNotifyTitle);
|
||||
setParameter(pushTaskObjStr + ".IOSNotificationCollapseId", pushTaskObj.iOSNotificationCollapseId);
|
||||
setParameter(pushTaskObjStr + ".PushType", pushTaskObj.pushType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -324,6 +324,17 @@ void PushRequest::setAndroidMusic(const std::string& androidMusic)
|
||||
setParameter("AndroidMusic", androidMusic);
|
||||
}
|
||||
|
||||
std::string PushRequest::getIOSNotificationCollapseId()const
|
||||
{
|
||||
return iOSNotificationCollapseId_;
|
||||
}
|
||||
|
||||
void PushRequest::setIOSNotificationCollapseId(const std::string& iOSNotificationCollapseId)
|
||||
{
|
||||
iOSNotificationCollapseId_ = iOSNotificationCollapseId;
|
||||
setParameter("IOSNotificationCollapseId", iOSNotificationCollapseId);
|
||||
}
|
||||
|
||||
std::string PushRequest::getPushType()const
|
||||
{
|
||||
return pushType_;
|
||||
@@ -511,6 +522,17 @@ void PushRequest::setSmsSignName(const std::string& smsSignName)
|
||||
setParameter("SmsSignName", smsSignName);
|
||||
}
|
||||
|
||||
int PushRequest::getAndroidNotificationNotifyId()const
|
||||
{
|
||||
return androidNotificationNotifyId_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationNotifyId(int androidNotificationNotifyId)
|
||||
{
|
||||
androidNotificationNotifyId_ = androidNotificationNotifyId;
|
||||
setParameter("AndroidNotificationNotifyId", std::to_string(androidNotificationNotifyId));
|
||||
}
|
||||
|
||||
long PushRequest::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
|
||||
Reference in New Issue
Block a user