Fixed bugs for MassPush API.
This commit is contained in:
@@ -38,8 +38,6 @@
|
||||
#include "model/CompleteContinuouslyPushResult.h"
|
||||
#include "model/ContinuouslyPushRequest.h"
|
||||
#include "model/ContinuouslyPushResult.h"
|
||||
#include "model/ListPushRecordsRequest.h"
|
||||
#include "model/ListPushRecordsResult.h"
|
||||
#include "model/ListSummaryAppsRequest.h"
|
||||
#include "model/ListSummaryAppsResult.h"
|
||||
#include "model/ListTagsRequest.h"
|
||||
@@ -66,8 +64,6 @@
|
||||
#include "model/QueryDevicesByAccountResult.h"
|
||||
#include "model/QueryDevicesByAliasRequest.h"
|
||||
#include "model/QueryDevicesByAliasResult.h"
|
||||
#include "model/QueryPushListRequest.h"
|
||||
#include "model/QueryPushListResult.h"
|
||||
#include "model/QueryPushRecordsRequest.h"
|
||||
#include "model/QueryPushRecordsResult.h"
|
||||
#include "model/QueryPushStatByAppRequest.h"
|
||||
@@ -119,9 +115,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ContinuouslyPushResult> ContinuouslyPushOutcome;
|
||||
typedef std::future<ContinuouslyPushOutcome> ContinuouslyPushOutcomeCallable;
|
||||
typedef std::function<void(const PushClient*, const Model::ContinuouslyPushRequest&, const ContinuouslyPushOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ContinuouslyPushAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPushRecordsResult> ListPushRecordsOutcome;
|
||||
typedef std::future<ListPushRecordsOutcome> ListPushRecordsOutcomeCallable;
|
||||
typedef std::function<void(const PushClient*, const Model::ListPushRecordsRequest&, const ListPushRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPushRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSummaryAppsResult> ListSummaryAppsOutcome;
|
||||
typedef std::future<ListSummaryAppsOutcome> ListSummaryAppsOutcomeCallable;
|
||||
typedef std::function<void(const PushClient*, const Model::ListSummaryAppsRequest&, const ListSummaryAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSummaryAppsAsyncHandler;
|
||||
@@ -161,9 +154,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryDevicesByAliasResult> QueryDevicesByAliasOutcome;
|
||||
typedef std::future<QueryDevicesByAliasOutcome> QueryDevicesByAliasOutcomeCallable;
|
||||
typedef std::function<void(const PushClient*, const Model::QueryDevicesByAliasRequest&, const QueryDevicesByAliasOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDevicesByAliasAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryPushListResult> QueryPushListOutcome;
|
||||
typedef std::future<QueryPushListOutcome> QueryPushListOutcomeCallable;
|
||||
typedef std::function<void(const PushClient*, const Model::QueryPushListRequest&, const QueryPushListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPushListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryPushRecordsResult> QueryPushRecordsOutcome;
|
||||
typedef std::future<QueryPushRecordsOutcome> QueryPushRecordsOutcomeCallable;
|
||||
typedef std::function<void(const PushClient*, const Model::QueryPushRecordsRequest&, const QueryPushRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPushRecordsAsyncHandler;
|
||||
@@ -220,9 +210,6 @@ namespace AlibabaCloud
|
||||
ContinuouslyPushOutcome continuouslyPush(const Model::ContinuouslyPushRequest &request)const;
|
||||
void continuouslyPushAsync(const Model::ContinuouslyPushRequest& request, const ContinuouslyPushAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ContinuouslyPushOutcomeCallable continuouslyPushCallable(const Model::ContinuouslyPushRequest& request) const;
|
||||
ListPushRecordsOutcome listPushRecords(const Model::ListPushRecordsRequest &request)const;
|
||||
void listPushRecordsAsync(const Model::ListPushRecordsRequest& request, const ListPushRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPushRecordsOutcomeCallable listPushRecordsCallable(const Model::ListPushRecordsRequest& request) const;
|
||||
ListSummaryAppsOutcome listSummaryApps(const Model::ListSummaryAppsRequest &request)const;
|
||||
void listSummaryAppsAsync(const Model::ListSummaryAppsRequest& request, const ListSummaryAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSummaryAppsOutcomeCallable listSummaryAppsCallable(const Model::ListSummaryAppsRequest& request) const;
|
||||
@@ -262,9 +249,6 @@ namespace AlibabaCloud
|
||||
QueryDevicesByAliasOutcome queryDevicesByAlias(const Model::QueryDevicesByAliasRequest &request)const;
|
||||
void queryDevicesByAliasAsync(const Model::QueryDevicesByAliasRequest& request, const QueryDevicesByAliasAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDevicesByAliasOutcomeCallable queryDevicesByAliasCallable(const Model::QueryDevicesByAliasRequest& request) const;
|
||||
QueryPushListOutcome queryPushList(const Model::QueryPushListRequest &request)const;
|
||||
void queryPushListAsync(const Model::QueryPushListRequest& request, const QueryPushListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPushListOutcomeCallable queryPushListCallable(const Model::QueryPushListRequest& request) const;
|
||||
QueryPushRecordsOutcome queryPushRecords(const Model::QueryPushRecordsRequest &request)const;
|
||||
void queryPushRecordsAsync(const Model::QueryPushRecordsRequest& request, const QueryPushRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPushRecordsOutcomeCallable queryPushRecordsCallable(const Model::QueryPushRecordsRequest& request) const;
|
||||
|
||||
@@ -1,66 +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_LISTPUSHRECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSREQUEST_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 ListPushRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListPushRecordsRequest();
|
||||
~ListPushRecordsRequest();
|
||||
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getAppKey()const;
|
||||
void setAppKey(long appKey);
|
||||
int getPage()const;
|
||||
void setPage(int page);
|
||||
std::string getPushType()const;
|
||||
void setPushType(const std::string& pushType);
|
||||
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string accessKeyId_;
|
||||
int pageSize_;
|
||||
long appKey_;
|
||||
int page_;
|
||||
std::string pushType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSREQUEST_H_
|
||||
@@ -1,68 +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_LISTPUSHRECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_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 ListPushRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PushMessageInfo
|
||||
{
|
||||
std::string deviceType;
|
||||
std::string type;
|
||||
std::string pushTime;
|
||||
long appKey;
|
||||
std::string title;
|
||||
std::string body;
|
||||
std::string appName;
|
||||
std::string messageId;
|
||||
};
|
||||
|
||||
|
||||
ListPushRecordsResult();
|
||||
explicit ListPushRecordsResult(const std::string &payload);
|
||||
~ListPushRecordsResult();
|
||||
int getPageSize()const;
|
||||
int getTotal()const;
|
||||
int getPage()const;
|
||||
std::vector<PushMessageInfo> getPushMessageInfos()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int total_;
|
||||
int page_;
|
||||
std::vector<PushMessageInfo> pushMessageInfos_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_H_
|
||||
@@ -1,66 +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_QUERYPUSHLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTREQUEST_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 QueryPushListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryPushListRequest();
|
||||
~QueryPushListRequest();
|
||||
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getAppKey()const;
|
||||
void setAppKey(long appKey);
|
||||
int getPage()const;
|
||||
void setPage(int page);
|
||||
std::string getPushType()const;
|
||||
void setPushType(const std::string& pushType);
|
||||
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string accessKeyId_;
|
||||
int pageSize_;
|
||||
long appKey_;
|
||||
int page_;
|
||||
std::string pushType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTREQUEST_H_
|
||||
@@ -1,68 +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_QUERYPUSHLISTRESULT_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_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 QueryPushListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PushMessageInfo
|
||||
{
|
||||
std::string deviceType;
|
||||
std::string type;
|
||||
std::string pushTime;
|
||||
long appKey;
|
||||
std::string title;
|
||||
std::string body;
|
||||
std::string appName;
|
||||
std::string messageId;
|
||||
};
|
||||
|
||||
|
||||
QueryPushListResult();
|
||||
explicit QueryPushListResult(const std::string &payload);
|
||||
~QueryPushListResult();
|
||||
int getPageSize()const;
|
||||
int getPage()const;
|
||||
std::vector<PushMessageInfo> getPushMessageInfos()const;
|
||||
bool getHasNext()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int page_;
|
||||
std::vector<PushMessageInfo> pushMessageInfos_;
|
||||
bool hasNext_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
Reference in New Issue
Block a user