Supported AndroidNotificationGroup for Push and MassPush.
This commit is contained in:
@@ -58,8 +58,6 @@
|
||||
#include "model/PushNoticeToiOSResult.h"
|
||||
#include "model/QueryAliasesRequest.h"
|
||||
#include "model/QueryAliasesResult.h"
|
||||
#include "model/QueryDeviceCountRequest.h"
|
||||
#include "model/QueryDeviceCountResult.h"
|
||||
#include "model/QueryDeviceInfoRequest.h"
|
||||
#include "model/QueryDeviceInfoResult.h"
|
||||
#include "model/QueryDeviceStatRequest.h"
|
||||
@@ -149,9 +147,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryAliasesResult> QueryAliasesOutcome;
|
||||
typedef std::future<QueryAliasesOutcome> QueryAliasesOutcomeCallable;
|
||||
typedef std::function<void(const PushClient*, const Model::QueryAliasesRequest&, const QueryAliasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAliasesAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDeviceCountResult> QueryDeviceCountOutcome;
|
||||
typedef std::future<QueryDeviceCountOutcome> QueryDeviceCountOutcomeCallable;
|
||||
typedef std::function<void(const PushClient*, const Model::QueryDeviceCountRequest&, const QueryDeviceCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDeviceInfoResult> QueryDeviceInfoOutcome;
|
||||
typedef std::future<QueryDeviceInfoOutcome> QueryDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const PushClient*, const Model::QueryDeviceInfoRequest&, const QueryDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceInfoAsyncHandler;
|
||||
@@ -250,9 +245,6 @@ namespace AlibabaCloud
|
||||
QueryAliasesOutcome queryAliases(const Model::QueryAliasesRequest &request)const;
|
||||
void queryAliasesAsync(const Model::QueryAliasesRequest& request, const QueryAliasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAliasesOutcomeCallable queryAliasesCallable(const Model::QueryAliasesRequest& request) const;
|
||||
QueryDeviceCountOutcome queryDeviceCount(const Model::QueryDeviceCountRequest &request)const;
|
||||
void queryDeviceCountAsync(const Model::QueryDeviceCountRequest& request, const QueryDeviceCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDeviceCountOutcomeCallable queryDeviceCountCallable(const Model::QueryDeviceCountRequest& request) const;
|
||||
QueryDeviceInfoOutcome queryDeviceInfo(const Model::QueryDeviceInfoRequest &request)const;
|
||||
void queryDeviceInfoAsync(const Model::QueryDeviceInfoRequest& request, const QueryDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDeviceInfoOutcomeCallable queryDeviceInfoCallable(const Model::QueryDeviceInfoRequest& request) const;
|
||||
|
||||
@@ -74,10 +74,12 @@ public:
|
||||
std::string title;
|
||||
std::string androidRenderStyle;
|
||||
std::string iOSExtParameters;
|
||||
std::string androidNotificationHonorChannel;
|
||||
std::string androidXiaomiImageUrl;
|
||||
std::string androidPopupBody;
|
||||
std::string androidBigPictureUrl;
|
||||
bool iOSSilentNotification;
|
||||
std::string androidNotificationGroup;
|
||||
std::string sendChannels;
|
||||
std::string target;
|
||||
std::string androidBigTitle;
|
||||
|
||||
@@ -76,10 +76,10 @@ public:
|
||||
void setAndroidNotificationXiaomiChannel(const std::string &androidNotificationXiaomiChannel);
|
||||
bool getStoreOffline() const;
|
||||
void setStoreOffline(bool storeOffline);
|
||||
std::string getSmsParams() const;
|
||||
void setSmsParams(const std::string &smsParams);
|
||||
double getIOSRelevanceScore() const;
|
||||
void setIOSRelevanceScore(double iOSRelevanceScore);
|
||||
std::string getSmsParams() const;
|
||||
void setSmsParams(const std::string &smsParams);
|
||||
int getAndroidVivoPushMode() const;
|
||||
void setAndroidVivoPushMode(int androidVivoPushMode);
|
||||
std::string getAndroidInboxBody() const;
|
||||
@@ -128,6 +128,8 @@ public:
|
||||
void setAndroidRenderStyle(int androidRenderStyle);
|
||||
std::string getIOSExtParameters() const;
|
||||
void setIOSExtParameters(const std::string &iOSExtParameters);
|
||||
std::string getAndroidNotificationHonorChannel() const;
|
||||
void setAndroidNotificationHonorChannel(const std::string &androidNotificationHonorChannel);
|
||||
std::string getAndroidXiaomiImageUrl() const;
|
||||
void setAndroidXiaomiImageUrl(const std::string &androidXiaomiImageUrl);
|
||||
std::string getSmsTemplateName() const;
|
||||
@@ -138,6 +140,8 @@ public:
|
||||
void setAndroidBigPictureUrl(const std::string &androidBigPictureUrl);
|
||||
bool getIOSSilentNotification() const;
|
||||
void setIOSSilentNotification(bool iOSSilentNotification);
|
||||
std::string getAndroidNotificationGroup() const;
|
||||
void setAndroidNotificationGroup(const std::string &androidNotificationGroup);
|
||||
std::string getSendChannels() const;
|
||||
void setSendChannels(const std::string &sendChannels);
|
||||
std::string getTarget() const;
|
||||
@@ -158,10 +162,10 @@ public:
|
||||
void setAppKey(long appKey);
|
||||
std::string getTargetValue() const;
|
||||
void setTargetValue(const std::string &targetValue);
|
||||
std::string getAndroidXiaoMiActivity() const;
|
||||
void setAndroidXiaoMiActivity(const std::string &androidXiaoMiActivity);
|
||||
std::string getAndroidXiaoMiNotifyTitle() const;
|
||||
void setAndroidXiaoMiNotifyTitle(const std::string &androidXiaoMiNotifyTitle);
|
||||
std::string getAndroidXiaoMiActivity() const;
|
||||
void setAndroidXiaoMiActivity(const std::string &androidXiaoMiActivity);
|
||||
|
||||
private:
|
||||
int androidNotificationBarType_;
|
||||
@@ -187,8 +191,8 @@ private:
|
||||
std::string iOSNotificationCategory_;
|
||||
std::string androidNotificationXiaomiChannel_;
|
||||
bool storeOffline_;
|
||||
std::string smsParams_;
|
||||
double iOSRelevanceScore_;
|
||||
std::string smsParams_;
|
||||
int androidVivoPushMode_;
|
||||
std::string androidInboxBody_;
|
||||
std::string jobKey_;
|
||||
@@ -213,11 +217,13 @@ private:
|
||||
int smsDelaySecs_;
|
||||
int androidRenderStyle_;
|
||||
std::string iOSExtParameters_;
|
||||
std::string androidNotificationHonorChannel_;
|
||||
std::string androidXiaomiImageUrl_;
|
||||
std::string smsTemplateName_;
|
||||
std::string androidPopupBody_;
|
||||
std::string androidBigPictureUrl_;
|
||||
bool iOSSilentNotification_;
|
||||
std::string androidNotificationGroup_;
|
||||
std::string sendChannels_;
|
||||
std::string target_;
|
||||
std::string androidBigTitle_;
|
||||
@@ -228,8 +234,8 @@ private:
|
||||
int androidNotificationNotifyId_;
|
||||
long appKey_;
|
||||
std::string targetValue_;
|
||||
std::string androidXiaoMiActivity_;
|
||||
std::string androidXiaoMiNotifyTitle_;
|
||||
std::string androidXiaoMiActivity_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Push
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PUSH_MODEL_QUERYDEVICECOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_QUERYDEVICECOUNTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/push/PushExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Push {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_PUSH_EXPORT QueryDeviceCountRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryDeviceCountRequest();
|
||||
~QueryDeviceCountRequest();
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getTarget() const;
|
||||
void setTarget(const std::string &target);
|
||||
long getAppKey() const;
|
||||
void setAppKey(long appKey);
|
||||
std::string getTargetValue() const;
|
||||
void setTargetValue(const std::string &targetValue);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
std::string target_;
|
||||
long appKey_;
|
||||
std::string targetValue_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Push
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICECOUNTREQUEST_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PUSH_MODEL_QUERYDEVICECOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_QUERYDEVICECOUNTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/push/PushExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Push
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PUSH_EXPORT QueryDeviceCountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
QueryDeviceCountResult();
|
||||
explicit QueryDeviceCountResult(const std::string &payload);
|
||||
~QueryDeviceCountResult();
|
||||
long getDeviceCount()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long deviceCount_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICECOUNTRESULT_H_
|
||||
Reference in New Issue
Block a user