Supported AndroidNotificationHuaweiChannel for Push and MassPush.

This commit is contained in:
sdk-team
2020-09-02 10:14:43 +08:00
parent dbb5d5f56d
commit 20e471c41f
13 changed files with 300 additions and 1 deletions

View File

@@ -56,6 +56,8 @@
#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"
@@ -142,6 +144,9 @@ 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;
@@ -237,6 +242,9 @@ 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;

View File

@@ -53,6 +53,7 @@ namespace AlibabaCloud
bool iOSMutableContent;
int androidNotificationBarPriority;
std::string expireTime;
std::string androidNotificationVivoChannel;
std::string androidPopupBody;
std::string iOSNotificationCategory;
std::string androidNotificationXiaomiChannel;

View File

@@ -65,6 +65,8 @@ namespace AlibabaCloud
void setAndroidNotificationBarPriority(int androidNotificationBarPriority);
std::string getExpireTime()const;
void setExpireTime(const std::string& expireTime);
std::string getAndroidNotificationVivoChannel()const;
void setAndroidNotificationVivoChannel(const std::string& androidNotificationVivoChannel);
std::string getIOSNotificationCategory()const;
void setIOSNotificationCategory(const std::string& iOSNotificationCategory);
std::string getAndroidNotificationXiaomiChannel()const;
@@ -144,6 +146,7 @@ namespace AlibabaCloud
bool iOSMutableContent_;
int androidNotificationBarPriority_;
std::string expireTime_;
std::string androidNotificationVivoChannel_;
std::string iOSNotificationCategory_;
std::string androidNotificationXiaomiChannel_;
bool storeOffline_;

View File

@@ -0,0 +1,57 @@
/*
* 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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/push/PushExport.h>
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_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICECOUNTREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* 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_