Supported AndroidNotificationNotifyId for Push and MassPush.

This commit is contained in:
sdk-team
2020-10-16 08:29:54 +00:00
parent e72934f959
commit 38438abdfb
5 changed files with 36 additions and 0 deletions

View File

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

View File

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