Supported query push records.
This commit is contained in:
@@ -68,6 +68,8 @@
|
||||
#include "model/QueryDevicesByAliasResult.h"
|
||||
#include "model/QueryPushListRequest.h"
|
||||
#include "model/QueryPushListResult.h"
|
||||
#include "model/QueryPushRecordsRequest.h"
|
||||
#include "model/QueryPushRecordsResult.h"
|
||||
#include "model/QueryPushStatByAppRequest.h"
|
||||
#include "model/QueryPushStatByAppResult.h"
|
||||
#include "model/QueryPushStatByMsgRequest.h"
|
||||
@@ -162,6 +164,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
typedef Outcome<Error, Model::QueryPushStatByAppResult> QueryPushStatByAppOutcome;
|
||||
typedef std::future<QueryPushStatByAppOutcome> QueryPushStatByAppOutcomeCallable;
|
||||
typedef std::function<void(const PushClient*, const Model::QueryPushStatByAppRequest&, const QueryPushStatByAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPushStatByAppAsyncHandler;
|
||||
@@ -260,6 +265,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
QueryPushStatByAppOutcome queryPushStatByApp(const Model::QueryPushStatByAppRequest &request)const;
|
||||
void queryPushStatByAppAsync(const Model::QueryPushStatByAppRequest& request, const QueryPushStatByAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPushStatByAppOutcomeCallable queryPushStatByAppCallable(const Model::QueryPushStatByAppRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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_QUERYPUSHRECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHRECORDSREQUEST_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 QueryPushRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryPushRecordsRequest();
|
||||
~QueryPushRecordsRequest();
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getSource()const;
|
||||
void setSource(const std::string& source);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getKeyword()const;
|
||||
void setKeyword(const std::string& keyword);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getTarget()const;
|
||||
void setTarget(const std::string& target);
|
||||
long getAppKey()const;
|
||||
void setAppKey(long appKey);
|
||||
std::string getPushType()const;
|
||||
void setPushType(const std::string& pushType);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
std::string source_;
|
||||
std::string accessKeyId_;
|
||||
std::string nextToken_;
|
||||
int pageSize_;
|
||||
std::string keyword_;
|
||||
std::string endTime_;
|
||||
std::string target_;
|
||||
long appKey_;
|
||||
std::string pushType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHRECORDSREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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_QUERYPUSHRECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHRECORDSRESULT_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 QueryPushRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PushInfo
|
||||
{
|
||||
std::string status;
|
||||
std::string pushType;
|
||||
std::string deviceType;
|
||||
std::string target;
|
||||
std::string pushTime;
|
||||
long appKey;
|
||||
std::string title;
|
||||
std::string body;
|
||||
std::string source;
|
||||
long messageId;
|
||||
};
|
||||
|
||||
|
||||
QueryPushRecordsResult();
|
||||
explicit QueryPushRecordsResult(const std::string &payload);
|
||||
~QueryPushRecordsResult();
|
||||
std::vector<PushInfo> getPushInfos()const;
|
||||
std::string getNextToken()const;
|
||||
int getPageSize()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PushInfo> pushInfos_;
|
||||
std::string nextToken_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHRECORDSRESULT_H_
|
||||
Reference in New Issue
Block a user