Compare commits

..

1 Commits

Author SHA1 Message Date
haowei.yao
c3ff60fd73 由释一发起的PUSH SDK自动发布, BUILD_ID=490, 版本号:1.3.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-23 11:38:17 +08:00
119 changed files with 9031 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2018-03-23 Version: 1.3.0
1, Add 'QueryDevicesByAccount' and 'QueryDevicesByAlias' Api.
2, Remove 'QueryPushDetail' Api.
2018-03-20 Version: 1.2.16
1, add FetchAlbumTagPhotos
2, CreatePhoto add optional param TakenAt

View File

@@ -64,4 +64,5 @@ add_subdirectory(aegis)
add_subdirectory(ehpc)
add_subdirectory(cs)
add_subdirectory(ccc)
add_subdirectory(teslamaxcompute)
add_subdirectory(teslamaxcompute)
add_subdirectory(push)

View File

@@ -1 +1 @@
1.2.16
1.3.0

194
push/CMakeLists.txt Normal file
View File

@@ -0,0 +1,194 @@
#
# 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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(push_public_header
include/alibabacloud/push/PushClient.h
include/alibabacloud/push/PushExport.h )
set(push_public_header_model
include/alibabacloud/push/model/UnbindTagRequest.h
include/alibabacloud/push/model/UnbindTagResult.h
include/alibabacloud/push/model/QueryDeviceStatRequest.h
include/alibabacloud/push/model/QueryDeviceStatResult.h
include/alibabacloud/push/model/QueryPushStatByAppRequest.h
include/alibabacloud/push/model/QueryPushStatByAppResult.h
include/alibabacloud/push/model/CheckDeviceRequest.h
include/alibabacloud/push/model/CheckDeviceResult.h
include/alibabacloud/push/model/ListPushRecordsRequest.h
include/alibabacloud/push/model/ListPushRecordsResult.h
include/alibabacloud/push/model/QueryDevicesByAliasRequest.h
include/alibabacloud/push/model/QueryDevicesByAliasResult.h
include/alibabacloud/push/model/PushRequest.h
include/alibabacloud/push/model/PushResult.h
include/alibabacloud/push/model/QueryTagsRequest.h
include/alibabacloud/push/model/QueryTagsResult.h
include/alibabacloud/push/model/UnbindAliasRequest.h
include/alibabacloud/push/model/UnbindAliasResult.h
include/alibabacloud/push/model/QueryDeviceInfoRequest.h
include/alibabacloud/push/model/QueryDeviceInfoResult.h
include/alibabacloud/push/model/QueryPushStatByMsgRequest.h
include/alibabacloud/push/model/QueryPushStatByMsgResult.h
include/alibabacloud/push/model/QueryAliasesRequest.h
include/alibabacloud/push/model/QueryAliasesResult.h
include/alibabacloud/push/model/QueryUniqueDeviceStatRequest.h
include/alibabacloud/push/model/QueryUniqueDeviceStatResult.h
include/alibabacloud/push/model/ListSummaryAppsRequest.h
include/alibabacloud/push/model/ListSummaryAppsResult.h
include/alibabacloud/push/model/PushMessageToAndroidRequest.h
include/alibabacloud/push/model/PushMessageToAndroidResult.h
include/alibabacloud/push/model/QueryDevicesByAccountRequest.h
include/alibabacloud/push/model/QueryDevicesByAccountResult.h
include/alibabacloud/push/model/BindAliasRequest.h
include/alibabacloud/push/model/BindAliasResult.h
include/alibabacloud/push/model/UnbindPhoneRequest.h
include/alibabacloud/push/model/UnbindPhoneResult.h
include/alibabacloud/push/model/PushNoticeToiOSRequest.h
include/alibabacloud/push/model/PushNoticeToiOSResult.h
include/alibabacloud/push/model/CheckDevicesRequest.h
include/alibabacloud/push/model/CheckDevicesResult.h
include/alibabacloud/push/model/CancelPushRequest.h
include/alibabacloud/push/model/CancelPushResult.h
include/alibabacloud/push/model/RemoveTagRequest.h
include/alibabacloud/push/model/RemoveTagResult.h
include/alibabacloud/push/model/ListTagsRequest.h
include/alibabacloud/push/model/ListTagsResult.h
include/alibabacloud/push/model/BindTagRequest.h
include/alibabacloud/push/model/BindTagResult.h
include/alibabacloud/push/model/PushMessageToiOSRequest.h
include/alibabacloud/push/model/PushMessageToiOSResult.h
include/alibabacloud/push/model/BindPhoneRequest.h
include/alibabacloud/push/model/BindPhoneResult.h
include/alibabacloud/push/model/PushNoticeToAndroidRequest.h
include/alibabacloud/push/model/PushNoticeToAndroidResult.h
include/alibabacloud/push/model/QueryPushListRequest.h
include/alibabacloud/push/model/QueryPushListResult.h )
set(push_src
src/PushClient.cc
src/model/UnbindTagRequest.cc
src/model/UnbindTagResult.cc
src/model/QueryDeviceStatRequest.cc
src/model/QueryDeviceStatResult.cc
src/model/QueryPushStatByAppRequest.cc
src/model/QueryPushStatByAppResult.cc
src/model/CheckDeviceRequest.cc
src/model/CheckDeviceResult.cc
src/model/ListPushRecordsRequest.cc
src/model/ListPushRecordsResult.cc
src/model/QueryDevicesByAliasRequest.cc
src/model/QueryDevicesByAliasResult.cc
src/model/PushRequest.cc
src/model/PushResult.cc
src/model/QueryTagsRequest.cc
src/model/QueryTagsResult.cc
src/model/UnbindAliasRequest.cc
src/model/UnbindAliasResult.cc
src/model/QueryDeviceInfoRequest.cc
src/model/QueryDeviceInfoResult.cc
src/model/QueryPushStatByMsgRequest.cc
src/model/QueryPushStatByMsgResult.cc
src/model/QueryAliasesRequest.cc
src/model/QueryAliasesResult.cc
src/model/QueryUniqueDeviceStatRequest.cc
src/model/QueryUniqueDeviceStatResult.cc
src/model/ListSummaryAppsRequest.cc
src/model/ListSummaryAppsResult.cc
src/model/PushMessageToAndroidRequest.cc
src/model/PushMessageToAndroidResult.cc
src/model/QueryDevicesByAccountRequest.cc
src/model/QueryDevicesByAccountResult.cc
src/model/BindAliasRequest.cc
src/model/BindAliasResult.cc
src/model/UnbindPhoneRequest.cc
src/model/UnbindPhoneResult.cc
src/model/PushNoticeToiOSRequest.cc
src/model/PushNoticeToiOSResult.cc
src/model/CheckDevicesRequest.cc
src/model/CheckDevicesResult.cc
src/model/CancelPushRequest.cc
src/model/CancelPushResult.cc
src/model/RemoveTagRequest.cc
src/model/RemoveTagResult.cc
src/model/ListTagsRequest.cc
src/model/ListTagsResult.cc
src/model/BindTagRequest.cc
src/model/BindTagResult.cc
src/model/PushMessageToiOSRequest.cc
src/model/PushMessageToiOSResult.cc
src/model/BindPhoneRequest.cc
src/model/BindPhoneResult.cc
src/model/PushNoticeToAndroidRequest.cc
src/model/PushNoticeToAndroidResult.cc
src/model/QueryPushListRequest.cc
src/model/QueryPushListResult.cc )
add_library(push ${LIB_TYPE}
${push_public_header}
${push_public_header_model}
${push_src})
set_target_properties(push
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}push
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(push
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_PUSH_LIBRARY)
endif()
target_include_directories(push
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(push
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(push
jsoncpp)
target_include_directories(push
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(push
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(push
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(push
PRIVATE /usr/include/jsoncpp)
target_link_libraries(push
jsoncpp)
endif()
install(FILES ${push_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/push)
install(FILES ${push_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/push/model)
install(TARGETS push
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,270 @@
/*
* 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_PUSHCLIENT_H_
#define ALIBABACLOUD_PUSH_PUSHCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "PushExport.h"
#include "model/UnbindTagRequest.h"
#include "model/UnbindTagResult.h"
#include "model/QueryDeviceStatRequest.h"
#include "model/QueryDeviceStatResult.h"
#include "model/QueryPushStatByAppRequest.h"
#include "model/QueryPushStatByAppResult.h"
#include "model/CheckDeviceRequest.h"
#include "model/CheckDeviceResult.h"
#include "model/ListPushRecordsRequest.h"
#include "model/ListPushRecordsResult.h"
#include "model/QueryDevicesByAliasRequest.h"
#include "model/QueryDevicesByAliasResult.h"
#include "model/PushRequest.h"
#include "model/PushResult.h"
#include "model/QueryTagsRequest.h"
#include "model/QueryTagsResult.h"
#include "model/UnbindAliasRequest.h"
#include "model/UnbindAliasResult.h"
#include "model/QueryDeviceInfoRequest.h"
#include "model/QueryDeviceInfoResult.h"
#include "model/QueryPushStatByMsgRequest.h"
#include "model/QueryPushStatByMsgResult.h"
#include "model/QueryAliasesRequest.h"
#include "model/QueryAliasesResult.h"
#include "model/QueryUniqueDeviceStatRequest.h"
#include "model/QueryUniqueDeviceStatResult.h"
#include "model/ListSummaryAppsRequest.h"
#include "model/ListSummaryAppsResult.h"
#include "model/PushMessageToAndroidRequest.h"
#include "model/PushMessageToAndroidResult.h"
#include "model/QueryDevicesByAccountRequest.h"
#include "model/QueryDevicesByAccountResult.h"
#include "model/BindAliasRequest.h"
#include "model/BindAliasResult.h"
#include "model/UnbindPhoneRequest.h"
#include "model/UnbindPhoneResult.h"
#include "model/PushNoticeToiOSRequest.h"
#include "model/PushNoticeToiOSResult.h"
#include "model/CheckDevicesRequest.h"
#include "model/CheckDevicesResult.h"
#include "model/CancelPushRequest.h"
#include "model/CancelPushResult.h"
#include "model/RemoveTagRequest.h"
#include "model/RemoveTagResult.h"
#include "model/ListTagsRequest.h"
#include "model/ListTagsResult.h"
#include "model/BindTagRequest.h"
#include "model/BindTagResult.h"
#include "model/PushMessageToiOSRequest.h"
#include "model/PushMessageToiOSResult.h"
#include "model/BindPhoneRequest.h"
#include "model/BindPhoneResult.h"
#include "model/PushNoticeToAndroidRequest.h"
#include "model/PushNoticeToAndroidResult.h"
#include "model/QueryPushListRequest.h"
#include "model/QueryPushListResult.h"
namespace AlibabaCloud
{
namespace Push
{
class ALIBABACLOUD_PUSH_EXPORT PushClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::UnbindTagResult> UnbindTagOutcome;
typedef std::future<UnbindTagOutcome> UnbindTagOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::UnbindTagRequest&, const UnbindTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindTagAsyncHandler;
typedef Outcome<Error, Model::QueryDeviceStatResult> QueryDeviceStatOutcome;
typedef std::future<QueryDeviceStatOutcome> QueryDeviceStatOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::QueryDeviceStatRequest&, const QueryDeviceStatOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceStatAsyncHandler;
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;
typedef Outcome<Error, Model::CheckDeviceResult> CheckDeviceOutcome;
typedef std::future<CheckDeviceOutcome> CheckDeviceOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::CheckDeviceRequest&, const CheckDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDeviceAsyncHandler;
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::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::PushResult> PushOutcome;
typedef std::future<PushOutcome> PushOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::PushRequest&, const PushOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushAsyncHandler;
typedef Outcome<Error, Model::QueryTagsResult> QueryTagsOutcome;
typedef std::future<QueryTagsOutcome> QueryTagsOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::QueryTagsRequest&, const QueryTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTagsAsyncHandler;
typedef Outcome<Error, Model::UnbindAliasResult> UnbindAliasOutcome;
typedef std::future<UnbindAliasOutcome> UnbindAliasOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::UnbindAliasRequest&, const UnbindAliasOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindAliasAsyncHandler;
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;
typedef Outcome<Error, Model::QueryPushStatByMsgResult> QueryPushStatByMsgOutcome;
typedef std::future<QueryPushStatByMsgOutcome> QueryPushStatByMsgOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::QueryPushStatByMsgRequest&, const QueryPushStatByMsgOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPushStatByMsgAsyncHandler;
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::QueryUniqueDeviceStatResult> QueryUniqueDeviceStatOutcome;
typedef std::future<QueryUniqueDeviceStatOutcome> QueryUniqueDeviceStatOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::QueryUniqueDeviceStatRequest&, const QueryUniqueDeviceStatOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryUniqueDeviceStatAsyncHandler;
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;
typedef Outcome<Error, Model::PushMessageToAndroidResult> PushMessageToAndroidOutcome;
typedef std::future<PushMessageToAndroidOutcome> PushMessageToAndroidOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::PushMessageToAndroidRequest&, const PushMessageToAndroidOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushMessageToAndroidAsyncHandler;
typedef Outcome<Error, Model::QueryDevicesByAccountResult> QueryDevicesByAccountOutcome;
typedef std::future<QueryDevicesByAccountOutcome> QueryDevicesByAccountOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::QueryDevicesByAccountRequest&, const QueryDevicesByAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDevicesByAccountAsyncHandler;
typedef Outcome<Error, Model::BindAliasResult> BindAliasOutcome;
typedef std::future<BindAliasOutcome> BindAliasOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::BindAliasRequest&, const BindAliasOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindAliasAsyncHandler;
typedef Outcome<Error, Model::UnbindPhoneResult> UnbindPhoneOutcome;
typedef std::future<UnbindPhoneOutcome> UnbindPhoneOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::UnbindPhoneRequest&, const UnbindPhoneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindPhoneAsyncHandler;
typedef Outcome<Error, Model::PushNoticeToiOSResult> PushNoticeToiOSOutcome;
typedef std::future<PushNoticeToiOSOutcome> PushNoticeToiOSOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::PushNoticeToiOSRequest&, const PushNoticeToiOSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushNoticeToiOSAsyncHandler;
typedef Outcome<Error, Model::CheckDevicesResult> CheckDevicesOutcome;
typedef std::future<CheckDevicesOutcome> CheckDevicesOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::CheckDevicesRequest&, const CheckDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDevicesAsyncHandler;
typedef Outcome<Error, Model::CancelPushResult> CancelPushOutcome;
typedef std::future<CancelPushOutcome> CancelPushOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::CancelPushRequest&, const CancelPushOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelPushAsyncHandler;
typedef Outcome<Error, Model::RemoveTagResult> RemoveTagOutcome;
typedef std::future<RemoveTagOutcome> RemoveTagOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::RemoveTagRequest&, const RemoveTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveTagAsyncHandler;
typedef Outcome<Error, Model::ListTagsResult> ListTagsOutcome;
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::ListTagsRequest&, const ListTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagsAsyncHandler;
typedef Outcome<Error, Model::BindTagResult> BindTagOutcome;
typedef std::future<BindTagOutcome> BindTagOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::BindTagRequest&, const BindTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindTagAsyncHandler;
typedef Outcome<Error, Model::PushMessageToiOSResult> PushMessageToiOSOutcome;
typedef std::future<PushMessageToiOSOutcome> PushMessageToiOSOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::PushMessageToiOSRequest&, const PushMessageToiOSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushMessageToiOSAsyncHandler;
typedef Outcome<Error, Model::BindPhoneResult> BindPhoneOutcome;
typedef std::future<BindPhoneOutcome> BindPhoneOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::BindPhoneRequest&, const BindPhoneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindPhoneAsyncHandler;
typedef Outcome<Error, Model::PushNoticeToAndroidResult> PushNoticeToAndroidOutcome;
typedef std::future<PushNoticeToAndroidOutcome> PushNoticeToAndroidOutcomeCallable;
typedef std::function<void(const PushClient*, const Model::PushNoticeToAndroidRequest&, const PushNoticeToAndroidOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushNoticeToAndroidAsyncHandler;
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;
PushClient(const Credentials &credentials, const ClientConfiguration &configuration);
PushClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
PushClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~PushClient();
UnbindTagOutcome unbindTag(const Model::UnbindTagRequest &request)const;
void unbindTagAsync(const Model::UnbindTagRequest& request, const UnbindTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnbindTagOutcomeCallable unbindTagCallable(const Model::UnbindTagRequest& request) const;
QueryDeviceStatOutcome queryDeviceStat(const Model::QueryDeviceStatRequest &request)const;
void queryDeviceStatAsync(const Model::QueryDeviceStatRequest& request, const QueryDeviceStatAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDeviceStatOutcomeCallable queryDeviceStatCallable(const Model::QueryDeviceStatRequest& 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;
CheckDeviceOutcome checkDevice(const Model::CheckDeviceRequest &request)const;
void checkDeviceAsync(const Model::CheckDeviceRequest& request, const CheckDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckDeviceOutcomeCallable checkDeviceCallable(const Model::CheckDeviceRequest& 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;
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;
PushOutcome push(const Model::PushRequest &request)const;
void pushAsync(const Model::PushRequest& request, const PushAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PushOutcomeCallable pushCallable(const Model::PushRequest& request) const;
QueryTagsOutcome queryTags(const Model::QueryTagsRequest &request)const;
void queryTagsAsync(const Model::QueryTagsRequest& request, const QueryTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryTagsOutcomeCallable queryTagsCallable(const Model::QueryTagsRequest& request) const;
UnbindAliasOutcome unbindAlias(const Model::UnbindAliasRequest &request)const;
void unbindAliasAsync(const Model::UnbindAliasRequest& request, const UnbindAliasAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnbindAliasOutcomeCallable unbindAliasCallable(const Model::UnbindAliasRequest& 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;
QueryPushStatByMsgOutcome queryPushStatByMsg(const Model::QueryPushStatByMsgRequest &request)const;
void queryPushStatByMsgAsync(const Model::QueryPushStatByMsgRequest& request, const QueryPushStatByMsgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryPushStatByMsgOutcomeCallable queryPushStatByMsgCallable(const Model::QueryPushStatByMsgRequest& request) const;
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;
QueryUniqueDeviceStatOutcome queryUniqueDeviceStat(const Model::QueryUniqueDeviceStatRequest &request)const;
void queryUniqueDeviceStatAsync(const Model::QueryUniqueDeviceStatRequest& request, const QueryUniqueDeviceStatAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryUniqueDeviceStatOutcomeCallable queryUniqueDeviceStatCallable(const Model::QueryUniqueDeviceStatRequest& 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;
PushMessageToAndroidOutcome pushMessageToAndroid(const Model::PushMessageToAndroidRequest &request)const;
void pushMessageToAndroidAsync(const Model::PushMessageToAndroidRequest& request, const PushMessageToAndroidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PushMessageToAndroidOutcomeCallable pushMessageToAndroidCallable(const Model::PushMessageToAndroidRequest& request) const;
QueryDevicesByAccountOutcome queryDevicesByAccount(const Model::QueryDevicesByAccountRequest &request)const;
void queryDevicesByAccountAsync(const Model::QueryDevicesByAccountRequest& request, const QueryDevicesByAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDevicesByAccountOutcomeCallable queryDevicesByAccountCallable(const Model::QueryDevicesByAccountRequest& request) const;
BindAliasOutcome bindAlias(const Model::BindAliasRequest &request)const;
void bindAliasAsync(const Model::BindAliasRequest& request, const BindAliasAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BindAliasOutcomeCallable bindAliasCallable(const Model::BindAliasRequest& request) const;
UnbindPhoneOutcome unbindPhone(const Model::UnbindPhoneRequest &request)const;
void unbindPhoneAsync(const Model::UnbindPhoneRequest& request, const UnbindPhoneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnbindPhoneOutcomeCallable unbindPhoneCallable(const Model::UnbindPhoneRequest& request) const;
PushNoticeToiOSOutcome pushNoticeToiOS(const Model::PushNoticeToiOSRequest &request)const;
void pushNoticeToiOSAsync(const Model::PushNoticeToiOSRequest& request, const PushNoticeToiOSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PushNoticeToiOSOutcomeCallable pushNoticeToiOSCallable(const Model::PushNoticeToiOSRequest& request) const;
CheckDevicesOutcome checkDevices(const Model::CheckDevicesRequest &request)const;
void checkDevicesAsync(const Model::CheckDevicesRequest& request, const CheckDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckDevicesOutcomeCallable checkDevicesCallable(const Model::CheckDevicesRequest& request) const;
CancelPushOutcome cancelPush(const Model::CancelPushRequest &request)const;
void cancelPushAsync(const Model::CancelPushRequest& request, const CancelPushAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CancelPushOutcomeCallable cancelPushCallable(const Model::CancelPushRequest& request) const;
RemoveTagOutcome removeTag(const Model::RemoveTagRequest &request)const;
void removeTagAsync(const Model::RemoveTagRequest& request, const RemoveTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RemoveTagOutcomeCallable removeTagCallable(const Model::RemoveTagRequest& request) const;
ListTagsOutcome listTags(const Model::ListTagsRequest &request)const;
void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const;
BindTagOutcome bindTag(const Model::BindTagRequest &request)const;
void bindTagAsync(const Model::BindTagRequest& request, const BindTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BindTagOutcomeCallable bindTagCallable(const Model::BindTagRequest& request) const;
PushMessageToiOSOutcome pushMessageToiOS(const Model::PushMessageToiOSRequest &request)const;
void pushMessageToiOSAsync(const Model::PushMessageToiOSRequest& request, const PushMessageToiOSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PushMessageToiOSOutcomeCallable pushMessageToiOSCallable(const Model::PushMessageToiOSRequest& request) const;
BindPhoneOutcome bindPhone(const Model::BindPhoneRequest &request)const;
void bindPhoneAsync(const Model::BindPhoneRequest& request, const BindPhoneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BindPhoneOutcomeCallable bindPhoneCallable(const Model::BindPhoneRequest& request) const;
PushNoticeToAndroidOutcome pushNoticeToAndroid(const Model::PushNoticeToAndroidRequest &request)const;
void pushNoticeToAndroidAsync(const Model::PushNoticeToAndroidRequest& request, const PushNoticeToAndroidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PushNoticeToAndroidOutcomeCallable pushNoticeToAndroidCallable(const Model::PushNoticeToAndroidRequest& 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;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_PUSH_PUSHCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* 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_PUSHEXPORT_H_
#define ALIBABACLOUD_PUSH_PUSHEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_PUSH_LIBRARY)
# define ALIBABACLOUD_PUSH_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_PUSH_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_PUSH_EXPORT
#endif
#endif // !ALIBABACLOUD_PUSH_PUSHEXPORT_H_

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_BINDALIASREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_BINDALIASREQUEST_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 BindAliasRequest : public RpcServiceRequest
{
public:
BindAliasRequest();
~BindAliasRequest();
std::string getAliasName()const;
void setAliasName(const std::string& aliasName);
long getAppKey()const;
void setAppKey(long appKey);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string aliasName_;
long appKey_;
std::string deviceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_BINDALIASREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_BINDALIASRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_BINDALIASRESULT_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 BindAliasResult : public ServiceResult
{
public:
BindAliasResult();
explicit BindAliasResult(const std::string &payload);
~BindAliasResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_BINDALIASRESULT_H_

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_BINDPHONEREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_BINDPHONEREQUEST_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 BindPhoneRequest : public RpcServiceRequest
{
public:
BindPhoneRequest();
~BindPhoneRequest();
std::string getPhoneNumber()const;
void setPhoneNumber(const std::string& phoneNumber);
long getAppKey()const;
void setAppKey(long appKey);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string phoneNumber_;
long appKey_;
std::string deviceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_BINDPHONEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_BINDPHONERESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_BINDPHONERESULT_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 BindPhoneResult : public ServiceResult
{
public:
BindPhoneResult();
explicit BindPhoneResult(const std::string &payload);
~BindPhoneResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_BINDPHONERESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* 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_BINDTAGREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_BINDTAGREQUEST_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 BindTagRequest : public RpcServiceRequest
{
public:
BindTagRequest();
~BindTagRequest();
std::string getTagName()const;
void setTagName(const std::string& tagName);
std::string getClientKey()const;
void setClientKey(const std::string& clientKey);
long getAppKey()const;
void setAppKey(long appKey);
std::string getKeyType()const;
void setKeyType(const std::string& keyType);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string tagName_;
std::string clientKey_;
long appKey_;
std::string keyType_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_BINDTAGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_BINDTAGRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_BINDTAGRESULT_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 BindTagResult : public ServiceResult
{
public:
BindTagResult();
explicit BindTagResult(const std::string &payload);
~BindTagResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_BINDTAGRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_CANCELPUSHREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_CANCELPUSHREQUEST_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 CancelPushRequest : public RpcServiceRequest
{
public:
CancelPushRequest();
~CancelPushRequest();
long getMessageId()const;
void setMessageId(long messageId);
long getAppKey()const;
void setAppKey(long appKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long messageId_;
long appKey_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_CANCELPUSHREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_CANCELPUSHRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_CANCELPUSHRESULT_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 CancelPushResult : public ServiceResult
{
public:
CancelPushResult();
explicit CancelPushResult(const std::string &payload);
~CancelPushResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_CANCELPUSHRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_CHECKDEVICEREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_CHECKDEVICEREQUEST_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 CheckDeviceRequest : public RpcServiceRequest
{
public:
CheckDeviceRequest();
~CheckDeviceRequest();
long getAppKey()const;
void setAppKey(long appKey);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long appKey_;
std::string deviceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_CHECKDEVICEREQUEST_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_CHECKDEVICERESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_CHECKDEVICERESULT_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 CheckDeviceResult : public ServiceResult
{
public:
CheckDeviceResult();
explicit CheckDeviceResult(const std::string &payload);
~CheckDeviceResult();
bool getAvailable()const;
protected:
void parse(const std::string &payload);
private:
bool available_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_CHECKDEVICERESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_CHECKDEVICESREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_CHECKDEVICESREQUEST_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 CheckDevicesRequest : public RpcServiceRequest
{
public:
CheckDevicesRequest();
~CheckDevicesRequest();
std::string getDeviceIds()const;
void setDeviceIds(const std::string& deviceIds);
long getAppKey()const;
void setAppKey(long appKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string deviceIds_;
long appKey_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_CHECKDEVICESREQUEST_H_

View File

@@ -0,0 +1,56 @@
/*
* 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_CHECKDEVICESRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_CHECKDEVICESRESULT_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 CheckDevicesResult : public ServiceResult
{
public:
struct DeviceCheckInfo
{
std::string deviceId;
bool available;
};
CheckDevicesResult();
explicit CheckDevicesResult(const std::string &payload);
~CheckDevicesResult();
std::vector<DeviceCheckInfo> getDeviceCheckInfos()const;
protected:
void parse(const std::string &payload);
private:
std::vector<DeviceCheckInfo> deviceCheckInfos_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_CHECKDEVICESRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* 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();
int getPageSize()const;
void setPageSize(int pageSize);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getAppKey()const;
void setAppKey(long appKey);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
int getPage()const;
void setPage(int page);
std::string getPushType()const;
void setPushType(const std::string& pushType);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
int pageSize_;
std::string endTime_;
long appKey_;
std::string startTime_;
int page_;
std::string pushType_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSREQUEST_H_

View File

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

View File

@@ -0,0 +1,48 @@
/*
* 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_LISTSUMMARYAPPSREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_LISTSUMMARYAPPSREQUEST_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 ListSummaryAppsRequest : public RpcServiceRequest
{
public:
ListSummaryAppsRequest();
~ListSummaryAppsRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_LISTSUMMARYAPPSREQUEST_H_

View File

@@ -0,0 +1,56 @@
/*
* 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_LISTSUMMARYAPPSRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_LISTSUMMARYAPPSRESULT_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 ListSummaryAppsResult : public ServiceResult
{
public:
struct SummaryAppInfo
{
long appKey;
std::string appName;
};
ListSummaryAppsResult();
explicit ListSummaryAppsResult(const std::string &payload);
~ListSummaryAppsResult();
std::vector<SummaryAppInfo> getSummaryAppInfos()const;
protected:
void parse(const std::string &payload);
private:
std::vector<SummaryAppInfo> summaryAppInfos_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_LISTSUMMARYAPPSRESULT_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_LISTTAGSREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_LISTTAGSREQUEST_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 ListTagsRequest : public RpcServiceRequest
{
public:
ListTagsRequest();
~ListTagsRequest();
long getAppKey()const;
void setAppKey(long appKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long appKey_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_LISTTAGSREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_LISTTAGSRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_LISTTAGSRESULT_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 ListTagsResult : public ServiceResult
{
public:
struct TagInfo
{
std::string tagName;
};
ListTagsResult();
explicit ListTagsResult(const std::string &payload);
~ListTagsResult();
std::vector<TagInfo> getTagInfos()const;
protected:
void parse(const std::string &payload);
private:
std::vector<TagInfo> tagInfos_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_LISTTAGSRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* 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_PUSHMESSAGETOANDROIDREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_PUSHMESSAGETOANDROIDREQUEST_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 PushMessageToAndroidRequest : public RpcServiceRequest
{
public:
PushMessageToAndroidRequest();
~PushMessageToAndroidRequest();
long getAppKey()const;
void setAppKey(long appKey);
std::string getTargetValue()const;
void setTargetValue(const std::string& targetValue);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getBody()const;
void setBody(const std::string& body);
std::string getJobKey()const;
void setJobKey(const std::string& jobKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTarget()const;
void setTarget(const std::string& target);
private:
long appKey_;
std::string targetValue_;
std::string title_;
std::string body_;
std::string jobKey_;
std::string accessKeyId_;
std::string target_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_PUSHMESSAGETOANDROIDREQUEST_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_PUSHMESSAGETOANDROIDRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_PUSHMESSAGETOANDROIDRESULT_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 PushMessageToAndroidResult : public ServiceResult
{
public:
PushMessageToAndroidResult();
explicit PushMessageToAndroidResult(const std::string &payload);
~PushMessageToAndroidResult();
std::string getMessageId()const;
protected:
void parse(const std::string &payload);
private:
std::string messageId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_PUSHMESSAGETOANDROIDRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* 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_PUSHMESSAGETOIOSREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_PUSHMESSAGETOIOSREQUEST_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 PushMessageToiOSRequest : public RpcServiceRequest
{
public:
PushMessageToiOSRequest();
~PushMessageToiOSRequest();
long getAppKey()const;
void setAppKey(long appKey);
std::string getTargetValue()const;
void setTargetValue(const std::string& targetValue);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getBody()const;
void setBody(const std::string& body);
std::string getJobKey()const;
void setJobKey(const std::string& jobKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTarget()const;
void setTarget(const std::string& target);
private:
long appKey_;
std::string targetValue_;
std::string title_;
std::string body_;
std::string jobKey_;
std::string accessKeyId_;
std::string target_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_PUSHMESSAGETOIOSREQUEST_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_PUSHMESSAGETOIOSRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_PUSHMESSAGETOIOSRESULT_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 PushMessageToiOSResult : public ServiceResult
{
public:
PushMessageToiOSResult();
explicit PushMessageToiOSResult(const std::string &payload);
~PushMessageToiOSResult();
std::string getMessageId()const;
protected:
void parse(const std::string &payload);
private:
std::string messageId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_PUSHMESSAGETOIOSRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* 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_PUSHNOTICETOANDROIDREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_PUSHNOTICETOANDROIDREQUEST_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 PushNoticeToAndroidRequest : public RpcServiceRequest
{
public:
PushNoticeToAndroidRequest();
~PushNoticeToAndroidRequest();
std::string getExtParameters()const;
void setExtParameters(const std::string& extParameters);
long getAppKey()const;
void setAppKey(long appKey);
std::string getTargetValue()const;
void setTargetValue(const std::string& targetValue);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getBody()const;
void setBody(const std::string& body);
std::string getJobKey()const;
void setJobKey(const std::string& jobKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTarget()const;
void setTarget(const std::string& target);
private:
std::string extParameters_;
long appKey_;
std::string targetValue_;
std::string title_;
std::string body_;
std::string jobKey_;
std::string accessKeyId_;
std::string target_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_PUSHNOTICETOANDROIDREQUEST_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_PUSHNOTICETOANDROIDRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_PUSHNOTICETOANDROIDRESULT_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 PushNoticeToAndroidResult : public ServiceResult
{
public:
PushNoticeToAndroidResult();
explicit PushNoticeToAndroidResult(const std::string &payload);
~PushNoticeToAndroidResult();
std::string getMessageId()const;
protected:
void parse(const std::string &payload);
private:
std::string messageId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_PUSHNOTICETOANDROIDRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* 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_PUSHNOTICETOIOSREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_PUSHNOTICETOIOSREQUEST_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 PushNoticeToiOSRequest : public RpcServiceRequest
{
public:
PushNoticeToiOSRequest();
~PushNoticeToiOSRequest();
std::string getExtParameters()const;
void setExtParameters(const std::string& extParameters);
std::string getApnsEnv()const;
void setApnsEnv(const std::string& apnsEnv);
long getAppKey()const;
void setAppKey(long appKey);
std::string getTargetValue()const;
void setTargetValue(const std::string& targetValue);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getBody()const;
void setBody(const std::string& body);
std::string getJobKey()const;
void setJobKey(const std::string& jobKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTarget()const;
void setTarget(const std::string& target);
private:
std::string extParameters_;
std::string apnsEnv_;
long appKey_;
std::string targetValue_;
std::string title_;
std::string body_;
std::string jobKey_;
std::string accessKeyId_;
std::string target_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_PUSHNOTICETOIOSREQUEST_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_PUSHNOTICETOIOSRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_PUSHNOTICETOIOSRESULT_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 PushNoticeToiOSResult : public ServiceResult
{
public:
PushNoticeToiOSResult();
explicit PushNoticeToiOSResult(const std::string &payload);
~PushNoticeToiOSResult();
std::string getMessageId()const;
protected:
void parse(const std::string &payload);
private:
std::string messageId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_PUSHNOTICETOIOSRESULT_H_

View File

@@ -0,0 +1,180 @@
/*
* 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_PUSHREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_PUSHREQUEST_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 PushRequest : public RpcServiceRequest
{
public:
PushRequest();
~PushRequest();
int getAndroidNotificationBarType()const;
void setAndroidNotificationBarType(int androidNotificationBarType);
int getSmsSendPolicy()const;
void setSmsSendPolicy(int smsSendPolicy);
std::string getAndroidExtParameters()const;
void setAndroidExtParameters(const std::string& androidExtParameters);
int getIOSBadge()const;
void setIOSBadge(int iOSBadge);
bool getIOSBadgeAutoIncrement()const;
void setIOSBadgeAutoIncrement(bool iOSBadgeAutoIncrement);
std::string getAndroidOpenType()const;
void setAndroidOpenType(const std::string& androidOpenType);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getBody()const;
void setBody(const std::string& body);
std::string getDeviceType()const;
void setDeviceType(const std::string& deviceType);
std::string getPushTime()const;
void setPushTime(const std::string& pushTime);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getSmsDelaySecs()const;
void setSmsDelaySecs(int smsDelaySecs);
int getSendSpeed()const;
void setSendSpeed(int sendSpeed);
std::string getAndroidPopupActivity()const;
void setAndroidPopupActivity(const std::string& androidPopupActivity);
std::string getIOSRemindBody()const;
void setIOSRemindBody(const std::string& iOSRemindBody);
std::string getIOSExtParameters()const;
void setIOSExtParameters(const std::string& iOSExtParameters);
std::string getAndroidNotifyType()const;
void setAndroidNotifyType(const std::string& androidNotifyType);
std::string getAndroidPopupTitle()const;
void setAndroidPopupTitle(const std::string& androidPopupTitle);
std::string getIOSMusic()const;
void setIOSMusic(const std::string& iOSMusic);
std::string getIOSApnsEnv()const;
void setIOSApnsEnv(const std::string& iOSApnsEnv);
bool getIOSMutableContent()const;
void setIOSMutableContent(bool iOSMutableContent);
int getAndroidNotificationBarPriority()const;
void setAndroidNotificationBarPriority(int androidNotificationBarPriority);
std::string getExpireTime()const;
void setExpireTime(const std::string& expireTime);
std::string getSmsTemplateName()const;
void setSmsTemplateName(const std::string& smsTemplateName);
std::string getAndroidPopupBody()const;
void setAndroidPopupBody(const std::string& androidPopupBody);
std::string getIOSNotificationCategory()const;
void setIOSNotificationCategory(const std::string& iOSNotificationCategory);
bool getStoreOffline()const;
void setStoreOffline(bool storeOffline);
bool getIOSSilentNotification()const;
void setIOSSilentNotification(bool iOSSilentNotification);
std::string getSmsParams()const;
void setSmsParams(const std::string& smsParams);
std::string getJobKey()const;
void setJobKey(const std::string& jobKey);
std::string getTarget()const;
void setTarget(const std::string& target);
std::string getAndroidOpenUrl()const;
void setAndroidOpenUrl(const std::string& androidOpenUrl);
std::string getAndroidNotificationChannel()const;
void setAndroidNotificationChannel(const std::string& androidNotificationChannel);
bool getAndroidRemind()const;
void setAndroidRemind(bool androidRemind);
std::string getAndroidActivity()const;
void setAndroidActivity(const std::string& androidActivity);
std::string getAndroidXiaoMiNotifyBody()const;
void setAndroidXiaoMiNotifyBody(const std::string& androidXiaoMiNotifyBody);
std::string getIOSSubtitle()const;
void setIOSSubtitle(const std::string& iOSSubtitle);
std::string getSmsSignName()const;
void setSmsSignName(const std::string& smsSignName);
bool getIOSRemind()const;
void setIOSRemind(bool iOSRemind);
long getAppKey()const;
void setAppKey(long appKey);
std::string getTargetValue()const;
void setTargetValue(const std::string& targetValue);
std::string getAndroidMusic()const;
void setAndroidMusic(const std::string& androidMusic);
std::string getAndroidXiaoMiActivity()const;
void setAndroidXiaoMiActivity(const std::string& androidXiaoMiActivity);
std::string getAndroidXiaoMiNotifyTitle()const;
void setAndroidXiaoMiNotifyTitle(const std::string& androidXiaoMiNotifyTitle);
std::string getPushType()const;
void setPushType(const std::string& pushType);
private:
int androidNotificationBarType_;
int smsSendPolicy_;
std::string androidExtParameters_;
int iOSBadge_;
bool iOSBadgeAutoIncrement_;
std::string androidOpenType_;
std::string title_;
std::string body_;
std::string deviceType_;
std::string pushTime_;
std::string accessKeyId_;
int smsDelaySecs_;
int sendSpeed_;
std::string androidPopupActivity_;
std::string iOSRemindBody_;
std::string iOSExtParameters_;
std::string androidNotifyType_;
std::string androidPopupTitle_;
std::string iOSMusic_;
std::string iOSApnsEnv_;
bool iOSMutableContent_;
int androidNotificationBarPriority_;
std::string expireTime_;
std::string smsTemplateName_;
std::string androidPopupBody_;
std::string iOSNotificationCategory_;
bool storeOffline_;
bool iOSSilentNotification_;
std::string smsParams_;
std::string jobKey_;
std::string target_;
std::string androidOpenUrl_;
std::string androidNotificationChannel_;
bool androidRemind_;
std::string androidActivity_;
std::string androidXiaoMiNotifyBody_;
std::string iOSSubtitle_;
std::string smsSignName_;
bool iOSRemind_;
long appKey_;
std::string targetValue_;
std::string androidMusic_;
std::string androidXiaoMiActivity_;
std::string androidXiaoMiNotifyTitle_;
std::string pushType_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_PUSHREQUEST_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_PUSHRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_PUSHRESULT_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 PushResult : public ServiceResult
{
public:
PushResult();
explicit PushResult(const std::string &payload);
~PushResult();
std::string getMessageId()const;
protected:
void parse(const std::string &payload);
private:
std::string messageId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_PUSHRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_QUERYALIASESREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYALIASESREQUEST_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 QueryAliasesRequest : public RpcServiceRequest
{
public:
QueryAliasesRequest();
~QueryAliasesRequest();
long getAppKey()const;
void setAppKey(long appKey);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long appKey_;
std::string deviceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYALIASESREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_QUERYALIASESRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYALIASESRESULT_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 QueryAliasesResult : public ServiceResult
{
public:
struct AliasInfo
{
std::string aliasName;
};
QueryAliasesResult();
explicit QueryAliasesResult(const std::string &payload);
~QueryAliasesResult();
std::vector<AliasInfo> getAliasInfos()const;
protected:
void parse(const std::string &payload);
private:
std::vector<AliasInfo> aliasInfos_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYALIASESRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_QUERYDEVICEINFOREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYDEVICEINFOREQUEST_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 QueryDeviceInfoRequest : public RpcServiceRequest
{
public:
QueryDeviceInfoRequest();
~QueryDeviceInfoRequest();
long getAppKey()const;
void setAppKey(long appKey);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long appKey_;
std::string deviceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICEINFOREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* 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_QUERYDEVICEINFORESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYDEVICEINFORESULT_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 QueryDeviceInfoResult : public ServiceResult
{
public:
struct DeviceInfo
{
std::string lastOnlineTime;
std::string deviceType;
std::string account;
std::string deviceId;
std::string deviceToken;
std::string alias;
std::string phoneNumber;
bool online;
std::string tags;
bool pushEnabled;
};
QueryDeviceInfoResult();
explicit QueryDeviceInfoResult(const std::string &payload);
~QueryDeviceInfoResult();
DeviceInfo getDeviceInfo()const;
protected:
void parse(const std::string &payload);
private:
DeviceInfo deviceInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICEINFORESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* 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_QUERYDEVICESTATREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESTATREQUEST_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 QueryDeviceStatRequest : public RpcServiceRequest
{
public:
QueryDeviceStatRequest();
~QueryDeviceStatRequest();
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getAppKey()const;
void setAppKey(long appKey);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getDeviceType()const;
void setDeviceType(const std::string& deviceType);
std::string getQueryType()const;
void setQueryType(const std::string& queryType);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string endTime_;
long appKey_;
std::string startTime_;
std::string deviceType_;
std::string queryType_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESTATREQUEST_H_

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_QUERYDEVICESTATRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESTATRESULT_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 QueryDeviceStatResult : public ServiceResult
{
public:
struct AppDeviceStat
{
std::string deviceType;
std::string time;
long count;
};
QueryDeviceStatResult();
explicit QueryDeviceStatResult(const std::string &payload);
~QueryDeviceStatResult();
std::vector<AppDeviceStat> getAppDeviceStats()const;
protected:
void parse(const std::string &payload);
private:
std::vector<AppDeviceStat> appDeviceStats_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESTATRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_QUERYDEVICESBYACCOUNTREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESBYACCOUNTREQUEST_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 QueryDevicesByAccountRequest : public RpcServiceRequest
{
public:
QueryDevicesByAccountRequest();
~QueryDevicesByAccountRequest();
long getAppKey()const;
void setAppKey(long appKey);
std::string getAccount()const;
void setAccount(const std::string& account);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long appKey_;
std::string account_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESBYACCOUNTREQUEST_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_QUERYDEVICESBYACCOUNTRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESBYACCOUNTRESULT_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 QueryDevicesByAccountResult : public ServiceResult
{
public:
QueryDevicesByAccountResult();
explicit QueryDevicesByAccountResult(const std::string &payload);
~QueryDevicesByAccountResult();
std::vector<std::string> getDeviceIds()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> deviceIds_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESBYACCOUNTRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_QUERYDEVICESBYALIASREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESBYALIASREQUEST_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 QueryDevicesByAliasRequest : public RpcServiceRequest
{
public:
QueryDevicesByAliasRequest();
~QueryDevicesByAliasRequest();
std::string getAlias()const;
void setAlias(const std::string& alias);
long getAppKey()const;
void setAppKey(long appKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string alias_;
long appKey_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESBYALIASREQUEST_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_QUERYDEVICESBYALIASRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESBYALIASRESULT_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 QueryDevicesByAliasResult : public ServiceResult
{
public:
QueryDevicesByAliasResult();
explicit QueryDevicesByAliasResult(const std::string &payload);
~QueryDevicesByAliasResult();
std::vector<std::string> getDeviceIds()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> deviceIds_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESBYALIASRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* 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();
int getPageSize()const;
void setPageSize(int pageSize);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getAppKey()const;
void setAppKey(long appKey);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
int getPage()const;
void setPage(int page);
std::string getPushType()const;
void setPushType(const std::string& pushType);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
int pageSize_;
std::string endTime_;
long appKey_;
std::string startTime_;
int page_;
std::string pushType_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTREQUEST_H_

View File

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

View File

@@ -0,0 +1,60 @@
/*
* 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_QUERYPUSHSTATBYAPPREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHSTATBYAPPREQUEST_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 QueryPushStatByAppRequest : public RpcServiceRequest
{
public:
QueryPushStatByAppRequest();
~QueryPushStatByAppRequest();
std::string getGranularity()const;
void setGranularity(const std::string& granularity);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getAppKey()const;
void setAppKey(long appKey);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string granularity_;
std::string endTime_;
long appKey_;
std::string startTime_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHSTATBYAPPREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* 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_QUERYPUSHSTATBYAPPRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHSTATBYAPPRESULT_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 QueryPushStatByAppResult : public ServiceResult
{
public:
struct AppPushStat
{
long acceptCount;
long openedCount;
long smsSkipCount;
long smsFailedCount;
long smsReceiveFailedCount;
std::string time;
long deletedCount;
long smsReceiveSuccessCount;
long sentCount;
long receivedCount;
long smsSentCount;
};
QueryPushStatByAppResult();
explicit QueryPushStatByAppResult(const std::string &payload);
~QueryPushStatByAppResult();
std::vector<AppPushStat> getAppPushStats()const;
protected:
void parse(const std::string &payload);
private:
std::vector<AppPushStat> appPushStats_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHSTATBYAPPRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_QUERYPUSHSTATBYMSGREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHSTATBYMSGREQUEST_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 QueryPushStatByMsgRequest : public RpcServiceRequest
{
public:
QueryPushStatByMsgRequest();
~QueryPushStatByMsgRequest();
long getMessageId()const;
void setMessageId(long messageId);
long getAppKey()const;
void setAppKey(long appKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long messageId_;
long appKey_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHSTATBYMSGREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* 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_QUERYPUSHSTATBYMSGRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHSTATBYMSGRESULT_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 QueryPushStatByMsgResult : public ServiceResult
{
public:
struct PushStat
{
long acceptCount;
long openedCount;
long smsSkipCount;
long smsFailedCount;
long smsReceiveFailedCount;
long deletedCount;
long smsReceiveSuccessCount;
long sentCount;
long receivedCount;
std::string messageId;
long smsSentCount;
};
QueryPushStatByMsgResult();
explicit QueryPushStatByMsgResult(const std::string &payload);
~QueryPushStatByMsgResult();
std::vector<PushStat> getPushStats()const;
protected:
void parse(const std::string &payload);
private:
std::vector<PushStat> pushStats_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHSTATBYMSGRESULT_H_

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_QUERYTAGSREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYTAGSREQUEST_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 QueryTagsRequest : public RpcServiceRequest
{
public:
QueryTagsRequest();
~QueryTagsRequest();
std::string getClientKey()const;
void setClientKey(const std::string& clientKey);
long getAppKey()const;
void setAppKey(long appKey);
std::string getKeyType()const;
void setKeyType(const std::string& keyType);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string clientKey_;
long appKey_;
std::string keyType_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYTAGSREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_QUERYTAGSRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYTAGSRESULT_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 QueryTagsResult : public ServiceResult
{
public:
struct TagInfo
{
std::string tagName;
};
QueryTagsResult();
explicit QueryTagsResult(const std::string &payload);
~QueryTagsResult();
std::vector<TagInfo> getTagInfos()const;
protected:
void parse(const std::string &payload);
private:
std::vector<TagInfo> tagInfos_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYTAGSRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* 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_QUERYUNIQUEDEVICESTATREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYUNIQUEDEVICESTATREQUEST_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 QueryUniqueDeviceStatRequest : public RpcServiceRequest
{
public:
QueryUniqueDeviceStatRequest();
~QueryUniqueDeviceStatRequest();
std::string getGranularity()const;
void setGranularity(const std::string& granularity);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getAppKey()const;
void setAppKey(long appKey);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string granularity_;
std::string endTime_;
long appKey_;
std::string startTime_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYUNIQUEDEVICESTATREQUEST_H_

View File

@@ -0,0 +1,56 @@
/*
* 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_QUERYUNIQUEDEVICESTATRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_QUERYUNIQUEDEVICESTATRESULT_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 QueryUniqueDeviceStatResult : public ServiceResult
{
public:
struct AppDeviceStat
{
std::string time;
long count;
};
QueryUniqueDeviceStatResult();
explicit QueryUniqueDeviceStatResult(const std::string &payload);
~QueryUniqueDeviceStatResult();
std::vector<AppDeviceStat> getAppDeviceStats()const;
protected:
void parse(const std::string &payload);
private:
std::vector<AppDeviceStat> appDeviceStats_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYUNIQUEDEVICESTATRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_REMOVETAGREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_REMOVETAGREQUEST_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 RemoveTagRequest : public RpcServiceRequest
{
public:
RemoveTagRequest();
~RemoveTagRequest();
std::string getTagName()const;
void setTagName(const std::string& tagName);
long getAppKey()const;
void setAppKey(long appKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string tagName_;
long appKey_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_REMOVETAGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_REMOVETAGRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_REMOVETAGRESULT_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 RemoveTagResult : public ServiceResult
{
public:
RemoveTagResult();
explicit RemoveTagResult(const std::string &payload);
~RemoveTagResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_REMOVETAGRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* 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_UNBINDALIASREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_UNBINDALIASREQUEST_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 UnbindAliasRequest : public RpcServiceRequest
{
public:
UnbindAliasRequest();
~UnbindAliasRequest();
std::string getAliasName()const;
void setAliasName(const std::string& aliasName);
long getAppKey()const;
void setAppKey(long appKey);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
bool getUnbindAll()const;
void setUnbindAll(bool unbindAll);
private:
std::string aliasName_;
long appKey_;
std::string deviceId_;
std::string accessKeyId_;
bool unbindAll_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_UNBINDALIASREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_UNBINDALIASRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_UNBINDALIASRESULT_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 UnbindAliasResult : public ServiceResult
{
public:
UnbindAliasResult();
explicit UnbindAliasResult(const std::string &payload);
~UnbindAliasResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_UNBINDALIASRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_UNBINDPHONEREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_UNBINDPHONEREQUEST_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 UnbindPhoneRequest : public RpcServiceRequest
{
public:
UnbindPhoneRequest();
~UnbindPhoneRequest();
long getAppKey()const;
void setAppKey(long appKey);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long appKey_;
std::string deviceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_UNBINDPHONEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_UNBINDPHONERESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_UNBINDPHONERESULT_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 UnbindPhoneResult : public ServiceResult
{
public:
UnbindPhoneResult();
explicit UnbindPhoneResult(const std::string &payload);
~UnbindPhoneResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_UNBINDPHONERESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* 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_UNBINDTAGREQUEST_H_
#define ALIBABACLOUD_PUSH_MODEL_UNBINDTAGREQUEST_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 UnbindTagRequest : public RpcServiceRequest
{
public:
UnbindTagRequest();
~UnbindTagRequest();
std::string getTagName()const;
void setTagName(const std::string& tagName);
std::string getClientKey()const;
void setClientKey(const std::string& clientKey);
long getAppKey()const;
void setAppKey(long appKey);
std::string getKeyType()const;
void setKeyType(const std::string& keyType);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string tagName_;
std::string clientKey_;
long appKey_;
std::string keyType_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_UNBINDTAGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_UNBINDTAGRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_UNBINDTAGRESULT_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 UnbindTagResult : public ServiceResult
{
public:
UnbindTagResult();
explicit UnbindTagResult(const std::string &payload);
~UnbindTagResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_UNBINDTAGRESULT_H_

1061
push/src/PushClient.cc Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/push/model/BindAliasRequest.h>
using AlibabaCloud::Push::Model::BindAliasRequest;
BindAliasRequest::BindAliasRequest() :
RpcServiceRequest("push", "2016-08-01", "BindAlias")
{}
BindAliasRequest::~BindAliasRequest()
{}
std::string BindAliasRequest::getAliasName()const
{
return aliasName_;
}
void BindAliasRequest::setAliasName(const std::string& aliasName)
{
aliasName_ = aliasName;
setParameter("AliasName", aliasName);
}
long BindAliasRequest::getAppKey()const
{
return appKey_;
}
void BindAliasRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string BindAliasRequest::getDeviceId()const
{
return deviceId_;
}
void BindAliasRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
}
std::string BindAliasRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BindAliasRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/push/model/BindAliasResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
BindAliasResult::BindAliasResult() :
ServiceResult()
{}
BindAliasResult::BindAliasResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindAliasResult::~BindAliasResult()
{}
void BindAliasResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/push/model/BindPhoneRequest.h>
using AlibabaCloud::Push::Model::BindPhoneRequest;
BindPhoneRequest::BindPhoneRequest() :
RpcServiceRequest("push", "2016-08-01", "BindPhone")
{}
BindPhoneRequest::~BindPhoneRequest()
{}
std::string BindPhoneRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void BindPhoneRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
}
long BindPhoneRequest::getAppKey()const
{
return appKey_;
}
void BindPhoneRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string BindPhoneRequest::getDeviceId()const
{
return deviceId_;
}
void BindPhoneRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
}
std::string BindPhoneRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BindPhoneRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/push/model/BindPhoneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
BindPhoneResult::BindPhoneResult() :
ServiceResult()
{}
BindPhoneResult::BindPhoneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindPhoneResult::~BindPhoneResult()
{}
void BindPhoneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/push/model/BindTagRequest.h>
using AlibabaCloud::Push::Model::BindTagRequest;
BindTagRequest::BindTagRequest() :
RpcServiceRequest("push", "2016-08-01", "BindTag")
{}
BindTagRequest::~BindTagRequest()
{}
std::string BindTagRequest::getTagName()const
{
return tagName_;
}
void BindTagRequest::setTagName(const std::string& tagName)
{
tagName_ = tagName;
setParameter("TagName", tagName);
}
std::string BindTagRequest::getClientKey()const
{
return clientKey_;
}
void BindTagRequest::setClientKey(const std::string& clientKey)
{
clientKey_ = clientKey;
setParameter("ClientKey", clientKey);
}
long BindTagRequest::getAppKey()const
{
return appKey_;
}
void BindTagRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string BindTagRequest::getKeyType()const
{
return keyType_;
}
void BindTagRequest::setKeyType(const std::string& keyType)
{
keyType_ = keyType;
setParameter("KeyType", keyType);
}
std::string BindTagRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BindTagRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/push/model/BindTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
BindTagResult::BindTagResult() :
ServiceResult()
{}
BindTagResult::BindTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindTagResult::~BindTagResult()
{}
void BindTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/push/model/CancelPushRequest.h>
using AlibabaCloud::Push::Model::CancelPushRequest;
CancelPushRequest::CancelPushRequest() :
RpcServiceRequest("push", "2016-08-01", "CancelPush")
{}
CancelPushRequest::~CancelPushRequest()
{}
long CancelPushRequest::getMessageId()const
{
return messageId_;
}
void CancelPushRequest::setMessageId(long messageId)
{
messageId_ = messageId;
setParameter("MessageId", std::to_string(messageId));
}
long CancelPushRequest::getAppKey()const
{
return appKey_;
}
void CancelPushRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string CancelPushRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CancelPushRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/push/model/CancelPushResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
CancelPushResult::CancelPushResult() :
ServiceResult()
{}
CancelPushResult::CancelPushResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelPushResult::~CancelPushResult()
{}
void CancelPushResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/push/model/CheckDeviceRequest.h>
using AlibabaCloud::Push::Model::CheckDeviceRequest;
CheckDeviceRequest::CheckDeviceRequest() :
RpcServiceRequest("push", "2016-08-01", "CheckDevice")
{}
CheckDeviceRequest::~CheckDeviceRequest()
{}
long CheckDeviceRequest::getAppKey()const
{
return appKey_;
}
void CheckDeviceRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string CheckDeviceRequest::getDeviceId()const
{
return deviceId_;
}
void CheckDeviceRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
}
std::string CheckDeviceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CheckDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/push/model/CheckDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
CheckDeviceResult::CheckDeviceResult() :
ServiceResult()
{}
CheckDeviceResult::CheckDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckDeviceResult::~CheckDeviceResult()
{}
void CheckDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Available"].isNull())
available_ = value["Available"].asString() == "true";
}
bool CheckDeviceResult::getAvailable()const
{
return available_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/push/model/CheckDevicesRequest.h>
using AlibabaCloud::Push::Model::CheckDevicesRequest;
CheckDevicesRequest::CheckDevicesRequest() :
RpcServiceRequest("push", "2016-08-01", "CheckDevices")
{}
CheckDevicesRequest::~CheckDevicesRequest()
{}
std::string CheckDevicesRequest::getDeviceIds()const
{
return deviceIds_;
}
void CheckDevicesRequest::setDeviceIds(const std::string& deviceIds)
{
deviceIds_ = deviceIds;
setParameter("DeviceIds", deviceIds);
}
long CheckDevicesRequest::getAppKey()const
{
return appKey_;
}
void CheckDevicesRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string CheckDevicesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CheckDevicesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/push/model/CheckDevicesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
CheckDevicesResult::CheckDevicesResult() :
ServiceResult()
{}
CheckDevicesResult::CheckDevicesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckDevicesResult::~CheckDevicesResult()
{}
void CheckDevicesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDeviceCheckInfos = value["DeviceCheckInfos"]["DeviceCheckInfo"];
for (auto value : allDeviceCheckInfos)
{
DeviceCheckInfo deviceCheckInfosObject;
if(!value["DeviceId"].isNull())
deviceCheckInfosObject.deviceId = value["DeviceId"].asString();
if(!value["Available"].isNull())
deviceCheckInfosObject.available = value["Available"].asString() == "true";
deviceCheckInfos_.push_back(deviceCheckInfosObject);
}
}
std::vector<CheckDevicesResult::DeviceCheckInfo> CheckDevicesResult::getDeviceCheckInfos()const
{
return deviceCheckInfos_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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.
*/
#include <alibabacloud/push/model/ListPushRecordsRequest.h>
using AlibabaCloud::Push::Model::ListPushRecordsRequest;
ListPushRecordsRequest::ListPushRecordsRequest() :
RpcServiceRequest("push", "2016-08-01", "ListPushRecords")
{}
ListPushRecordsRequest::~ListPushRecordsRequest()
{}
int ListPushRecordsRequest::getPageSize()const
{
return pageSize_;
}
void ListPushRecordsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListPushRecordsRequest::getEndTime()const
{
return endTime_;
}
void ListPushRecordsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long ListPushRecordsRequest::getAppKey()const
{
return appKey_;
}
void ListPushRecordsRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string ListPushRecordsRequest::getStartTime()const
{
return startTime_;
}
void ListPushRecordsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
int ListPushRecordsRequest::getPage()const
{
return page_;
}
void ListPushRecordsRequest::setPage(int page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}
std::string ListPushRecordsRequest::getPushType()const
{
return pushType_;
}
void ListPushRecordsRequest::setPushType(const std::string& pushType)
{
pushType_ = pushType;
setParameter("PushType", pushType);
}
std::string ListPushRecordsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListPushRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/push/model/ListPushRecordsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
ListPushRecordsResult::ListPushRecordsResult() :
ServiceResult()
{}
ListPushRecordsResult::ListPushRecordsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPushRecordsResult::~ListPushRecordsResult()
{}
void ListPushRecordsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPushMessageInfos = value["PushMessageInfos"]["PushMessageInfo"];
for (auto value : allPushMessageInfos)
{
PushMessageInfo pushMessageInfosObject;
if(!value["AppKey"].isNull())
pushMessageInfosObject.appKey = std::stol(value["AppKey"].asString());
if(!value["AppName"].isNull())
pushMessageInfosObject.appName = value["AppName"].asString();
if(!value["MessageId"].isNull())
pushMessageInfosObject.messageId = value["MessageId"].asString();
if(!value["Type"].isNull())
pushMessageInfosObject.type = value["Type"].asString();
if(!value["DeviceType"].isNull())
pushMessageInfosObject.deviceType = value["DeviceType"].asString();
if(!value["PushTime"].isNull())
pushMessageInfosObject.pushTime = value["PushTime"].asString();
if(!value["Title"].isNull())
pushMessageInfosObject.title = value["Title"].asString();
if(!value["Body"].isNull())
pushMessageInfosObject.body = value["Body"].asString();
pushMessageInfos_.push_back(pushMessageInfosObject);
}
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
if(!value["Page"].isNull())
page_ = std::stoi(value["Page"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int ListPushRecordsResult::getPageSize()const
{
return pageSize_;
}
int ListPushRecordsResult::getTotal()const
{
return total_;
}
int ListPushRecordsResult::getPage()const
{
return page_;
}
std::vector<ListPushRecordsResult::PushMessageInfo> ListPushRecordsResult::getPushMessageInfos()const
{
return pushMessageInfos_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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.
*/
#include <alibabacloud/push/model/ListSummaryAppsRequest.h>
using AlibabaCloud::Push::Model::ListSummaryAppsRequest;
ListSummaryAppsRequest::ListSummaryAppsRequest() :
RpcServiceRequest("push", "2016-08-01", "ListSummaryApps")
{}
ListSummaryAppsRequest::~ListSummaryAppsRequest()
{}
std::string ListSummaryAppsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListSummaryAppsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/push/model/ListSummaryAppsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
ListSummaryAppsResult::ListSummaryAppsResult() :
ServiceResult()
{}
ListSummaryAppsResult::ListSummaryAppsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSummaryAppsResult::~ListSummaryAppsResult()
{}
void ListSummaryAppsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSummaryAppInfos = value["SummaryAppInfos"]["SummaryAppInfo"];
for (auto value : allSummaryAppInfos)
{
SummaryAppInfo summaryAppInfosObject;
if(!value["AppName"].isNull())
summaryAppInfosObject.appName = value["AppName"].asString();
if(!value["AppKey"].isNull())
summaryAppInfosObject.appKey = std::stol(value["AppKey"].asString());
summaryAppInfos_.push_back(summaryAppInfosObject);
}
}
std::vector<ListSummaryAppsResult::SummaryAppInfo> ListSummaryAppsResult::getSummaryAppInfos()const
{
return summaryAppInfos_;
}

View File

@@ -0,0 +1,49 @@
/*
* 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.
*/
#include <alibabacloud/push/model/ListTagsRequest.h>
using AlibabaCloud::Push::Model::ListTagsRequest;
ListTagsRequest::ListTagsRequest() :
RpcServiceRequest("push", "2016-08-01", "ListTags")
{}
ListTagsRequest::~ListTagsRequest()
{}
long ListTagsRequest::getAppKey()const
{
return appKey_;
}
void ListTagsRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string ListTagsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListTagsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,58 @@
/*
* 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.
*/
#include <alibabacloud/push/model/ListTagsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
ListTagsResult::ListTagsResult() :
ServiceResult()
{}
ListTagsResult::ListTagsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTagsResult::~ListTagsResult()
{}
void ListTagsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagInfos = value["TagInfos"]["TagInfo"];
for (auto value : allTagInfos)
{
TagInfo tagInfosObject;
if(!value["TagName"].isNull())
tagInfosObject.tagName = value["TagName"].asString();
tagInfos_.push_back(tagInfosObject);
}
}
std::vector<ListTagsResult::TagInfo> ListTagsResult::getTagInfos()const
{
return tagInfos_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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.
*/
#include <alibabacloud/push/model/PushMessageToAndroidRequest.h>
using AlibabaCloud::Push::Model::PushMessageToAndroidRequest;
PushMessageToAndroidRequest::PushMessageToAndroidRequest() :
RpcServiceRequest("push", "2016-08-01", "PushMessageToAndroid")
{}
PushMessageToAndroidRequest::~PushMessageToAndroidRequest()
{}
long PushMessageToAndroidRequest::getAppKey()const
{
return appKey_;
}
void PushMessageToAndroidRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string PushMessageToAndroidRequest::getTargetValue()const
{
return targetValue_;
}
void PushMessageToAndroidRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
}
std::string PushMessageToAndroidRequest::getTitle()const
{
return title_;
}
void PushMessageToAndroidRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
}
std::string PushMessageToAndroidRequest::getBody()const
{
return body_;
}
void PushMessageToAndroidRequest::setBody(const std::string& body)
{
body_ = body;
setParameter("Body", body);
}
std::string PushMessageToAndroidRequest::getJobKey()const
{
return jobKey_;
}
void PushMessageToAndroidRequest::setJobKey(const std::string& jobKey)
{
jobKey_ = jobKey;
setParameter("JobKey", jobKey);
}
std::string PushMessageToAndroidRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void PushMessageToAndroidRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string PushMessageToAndroidRequest::getTarget()const
{
return target_;
}
void PushMessageToAndroidRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/push/model/PushMessageToAndroidResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
PushMessageToAndroidResult::PushMessageToAndroidResult() :
ServiceResult()
{}
PushMessageToAndroidResult::PushMessageToAndroidResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PushMessageToAndroidResult::~PushMessageToAndroidResult()
{}
void PushMessageToAndroidResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["MessageId"].isNull())
messageId_ = value["MessageId"].asString();
}
std::string PushMessageToAndroidResult::getMessageId()const
{
return messageId_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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.
*/
#include <alibabacloud/push/model/PushMessageToiOSRequest.h>
using AlibabaCloud::Push::Model::PushMessageToiOSRequest;
PushMessageToiOSRequest::PushMessageToiOSRequest() :
RpcServiceRequest("push", "2016-08-01", "PushMessageToiOS")
{}
PushMessageToiOSRequest::~PushMessageToiOSRequest()
{}
long PushMessageToiOSRequest::getAppKey()const
{
return appKey_;
}
void PushMessageToiOSRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string PushMessageToiOSRequest::getTargetValue()const
{
return targetValue_;
}
void PushMessageToiOSRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
}
std::string PushMessageToiOSRequest::getTitle()const
{
return title_;
}
void PushMessageToiOSRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
}
std::string PushMessageToiOSRequest::getBody()const
{
return body_;
}
void PushMessageToiOSRequest::setBody(const std::string& body)
{
body_ = body;
setParameter("Body", body);
}
std::string PushMessageToiOSRequest::getJobKey()const
{
return jobKey_;
}
void PushMessageToiOSRequest::setJobKey(const std::string& jobKey)
{
jobKey_ = jobKey;
setParameter("JobKey", jobKey);
}
std::string PushMessageToiOSRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void PushMessageToiOSRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string PushMessageToiOSRequest::getTarget()const
{
return target_;
}
void PushMessageToiOSRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/push/model/PushMessageToiOSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
PushMessageToiOSResult::PushMessageToiOSResult() :
ServiceResult()
{}
PushMessageToiOSResult::PushMessageToiOSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PushMessageToiOSResult::~PushMessageToiOSResult()
{}
void PushMessageToiOSResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["MessageId"].isNull())
messageId_ = value["MessageId"].asString();
}
std::string PushMessageToiOSResult::getMessageId()const
{
return messageId_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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.
*/
#include <alibabacloud/push/model/PushNoticeToAndroidRequest.h>
using AlibabaCloud::Push::Model::PushNoticeToAndroidRequest;
PushNoticeToAndroidRequest::PushNoticeToAndroidRequest() :
RpcServiceRequest("push", "2016-08-01", "PushNoticeToAndroid")
{}
PushNoticeToAndroidRequest::~PushNoticeToAndroidRequest()
{}
std::string PushNoticeToAndroidRequest::getExtParameters()const
{
return extParameters_;
}
void PushNoticeToAndroidRequest::setExtParameters(const std::string& extParameters)
{
extParameters_ = extParameters;
setParameter("ExtParameters", extParameters);
}
long PushNoticeToAndroidRequest::getAppKey()const
{
return appKey_;
}
void PushNoticeToAndroidRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string PushNoticeToAndroidRequest::getTargetValue()const
{
return targetValue_;
}
void PushNoticeToAndroidRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
}
std::string PushNoticeToAndroidRequest::getTitle()const
{
return title_;
}
void PushNoticeToAndroidRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
}
std::string PushNoticeToAndroidRequest::getBody()const
{
return body_;
}
void PushNoticeToAndroidRequest::setBody(const std::string& body)
{
body_ = body;
setParameter("Body", body);
}
std::string PushNoticeToAndroidRequest::getJobKey()const
{
return jobKey_;
}
void PushNoticeToAndroidRequest::setJobKey(const std::string& jobKey)
{
jobKey_ = jobKey;
setParameter("JobKey", jobKey);
}
std::string PushNoticeToAndroidRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void PushNoticeToAndroidRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string PushNoticeToAndroidRequest::getTarget()const
{
return target_;
}
void PushNoticeToAndroidRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/push/model/PushNoticeToAndroidResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
PushNoticeToAndroidResult::PushNoticeToAndroidResult() :
ServiceResult()
{}
PushNoticeToAndroidResult::PushNoticeToAndroidResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PushNoticeToAndroidResult::~PushNoticeToAndroidResult()
{}
void PushNoticeToAndroidResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["MessageId"].isNull())
messageId_ = value["MessageId"].asString();
}
std::string PushNoticeToAndroidResult::getMessageId()const
{
return messageId_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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.
*/
#include <alibabacloud/push/model/PushNoticeToiOSRequest.h>
using AlibabaCloud::Push::Model::PushNoticeToiOSRequest;
PushNoticeToiOSRequest::PushNoticeToiOSRequest() :
RpcServiceRequest("push", "2016-08-01", "PushNoticeToiOS")
{}
PushNoticeToiOSRequest::~PushNoticeToiOSRequest()
{}
std::string PushNoticeToiOSRequest::getExtParameters()const
{
return extParameters_;
}
void PushNoticeToiOSRequest::setExtParameters(const std::string& extParameters)
{
extParameters_ = extParameters;
setParameter("ExtParameters", extParameters);
}
std::string PushNoticeToiOSRequest::getApnsEnv()const
{
return apnsEnv_;
}
void PushNoticeToiOSRequest::setApnsEnv(const std::string& apnsEnv)
{
apnsEnv_ = apnsEnv;
setParameter("ApnsEnv", apnsEnv);
}
long PushNoticeToiOSRequest::getAppKey()const
{
return appKey_;
}
void PushNoticeToiOSRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string PushNoticeToiOSRequest::getTargetValue()const
{
return targetValue_;
}
void PushNoticeToiOSRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
}
std::string PushNoticeToiOSRequest::getTitle()const
{
return title_;
}
void PushNoticeToiOSRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
}
std::string PushNoticeToiOSRequest::getBody()const
{
return body_;
}
void PushNoticeToiOSRequest::setBody(const std::string& body)
{
body_ = body;
setParameter("Body", body);
}
std::string PushNoticeToiOSRequest::getJobKey()const
{
return jobKey_;
}
void PushNoticeToiOSRequest::setJobKey(const std::string& jobKey)
{
jobKey_ = jobKey;
setParameter("JobKey", jobKey);
}
std::string PushNoticeToiOSRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void PushNoticeToiOSRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string PushNoticeToiOSRequest::getTarget()const
{
return target_;
}
void PushNoticeToiOSRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/push/model/PushNoticeToiOSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
PushNoticeToiOSResult::PushNoticeToiOSResult() :
ServiceResult()
{}
PushNoticeToiOSResult::PushNoticeToiOSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PushNoticeToiOSResult::~PushNoticeToiOSResult()
{}
void PushNoticeToiOSResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["MessageId"].isNull())
messageId_ = value["MessageId"].asString();
}
std::string PushNoticeToiOSResult::getMessageId()const
{
return messageId_;
}

View File

@@ -0,0 +1,522 @@
/*
* 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.
*/
#include <alibabacloud/push/model/PushRequest.h>
using AlibabaCloud::Push::Model::PushRequest;
PushRequest::PushRequest() :
RpcServiceRequest("push", "2016-08-01", "Push")
{}
PushRequest::~PushRequest()
{}
int PushRequest::getAndroidNotificationBarType()const
{
return androidNotificationBarType_;
}
void PushRequest::setAndroidNotificationBarType(int androidNotificationBarType)
{
androidNotificationBarType_ = androidNotificationBarType;
setParameter("AndroidNotificationBarType", std::to_string(androidNotificationBarType));
}
int PushRequest::getSmsSendPolicy()const
{
return smsSendPolicy_;
}
void PushRequest::setSmsSendPolicy(int smsSendPolicy)
{
smsSendPolicy_ = smsSendPolicy;
setParameter("SmsSendPolicy", std::to_string(smsSendPolicy));
}
std::string PushRequest::getAndroidExtParameters()const
{
return androidExtParameters_;
}
void PushRequest::setAndroidExtParameters(const std::string& androidExtParameters)
{
androidExtParameters_ = androidExtParameters;
setParameter("AndroidExtParameters", androidExtParameters);
}
int PushRequest::getIOSBadge()const
{
return iOSBadge_;
}
void PushRequest::setIOSBadge(int iOSBadge)
{
iOSBadge_ = iOSBadge;
setParameter("IOSBadge", std::to_string(iOSBadge));
}
bool PushRequest::getIOSBadgeAutoIncrement()const
{
return iOSBadgeAutoIncrement_;
}
void PushRequest::setIOSBadgeAutoIncrement(bool iOSBadgeAutoIncrement)
{
iOSBadgeAutoIncrement_ = iOSBadgeAutoIncrement;
setParameter("IOSBadgeAutoIncrement", std::to_string(iOSBadgeAutoIncrement));
}
std::string PushRequest::getAndroidOpenType()const
{
return androidOpenType_;
}
void PushRequest::setAndroidOpenType(const std::string& androidOpenType)
{
androidOpenType_ = androidOpenType;
setParameter("AndroidOpenType", androidOpenType);
}
std::string PushRequest::getTitle()const
{
return title_;
}
void PushRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
}
std::string PushRequest::getBody()const
{
return body_;
}
void PushRequest::setBody(const std::string& body)
{
body_ = body;
setParameter("Body", body);
}
std::string PushRequest::getDeviceType()const
{
return deviceType_;
}
void PushRequest::setDeviceType(const std::string& deviceType)
{
deviceType_ = deviceType;
setParameter("DeviceType", deviceType);
}
std::string PushRequest::getPushTime()const
{
return pushTime_;
}
void PushRequest::setPushTime(const std::string& pushTime)
{
pushTime_ = pushTime;
setParameter("PushTime", pushTime);
}
std::string PushRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void PushRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int PushRequest::getSmsDelaySecs()const
{
return smsDelaySecs_;
}
void PushRequest::setSmsDelaySecs(int smsDelaySecs)
{
smsDelaySecs_ = smsDelaySecs;
setParameter("SmsDelaySecs", std::to_string(smsDelaySecs));
}
int PushRequest::getSendSpeed()const
{
return sendSpeed_;
}
void PushRequest::setSendSpeed(int sendSpeed)
{
sendSpeed_ = sendSpeed;
setParameter("SendSpeed", std::to_string(sendSpeed));
}
std::string PushRequest::getAndroidPopupActivity()const
{
return androidPopupActivity_;
}
void PushRequest::setAndroidPopupActivity(const std::string& androidPopupActivity)
{
androidPopupActivity_ = androidPopupActivity;
setParameter("AndroidPopupActivity", androidPopupActivity);
}
std::string PushRequest::getIOSRemindBody()const
{
return iOSRemindBody_;
}
void PushRequest::setIOSRemindBody(const std::string& iOSRemindBody)
{
iOSRemindBody_ = iOSRemindBody;
setParameter("IOSRemindBody", iOSRemindBody);
}
std::string PushRequest::getIOSExtParameters()const
{
return iOSExtParameters_;
}
void PushRequest::setIOSExtParameters(const std::string& iOSExtParameters)
{
iOSExtParameters_ = iOSExtParameters;
setParameter("IOSExtParameters", iOSExtParameters);
}
std::string PushRequest::getAndroidNotifyType()const
{
return androidNotifyType_;
}
void PushRequest::setAndroidNotifyType(const std::string& androidNotifyType)
{
androidNotifyType_ = androidNotifyType;
setParameter("AndroidNotifyType", androidNotifyType);
}
std::string PushRequest::getAndroidPopupTitle()const
{
return androidPopupTitle_;
}
void PushRequest::setAndroidPopupTitle(const std::string& androidPopupTitle)
{
androidPopupTitle_ = androidPopupTitle;
setParameter("AndroidPopupTitle", androidPopupTitle);
}
std::string PushRequest::getIOSMusic()const
{
return iOSMusic_;
}
void PushRequest::setIOSMusic(const std::string& iOSMusic)
{
iOSMusic_ = iOSMusic;
setParameter("IOSMusic", iOSMusic);
}
std::string PushRequest::getIOSApnsEnv()const
{
return iOSApnsEnv_;
}
void PushRequest::setIOSApnsEnv(const std::string& iOSApnsEnv)
{
iOSApnsEnv_ = iOSApnsEnv;
setParameter("IOSApnsEnv", iOSApnsEnv);
}
bool PushRequest::getIOSMutableContent()const
{
return iOSMutableContent_;
}
void PushRequest::setIOSMutableContent(bool iOSMutableContent)
{
iOSMutableContent_ = iOSMutableContent;
setParameter("IOSMutableContent", std::to_string(iOSMutableContent));
}
int PushRequest::getAndroidNotificationBarPriority()const
{
return androidNotificationBarPriority_;
}
void PushRequest::setAndroidNotificationBarPriority(int androidNotificationBarPriority)
{
androidNotificationBarPriority_ = androidNotificationBarPriority;
setParameter("AndroidNotificationBarPriority", std::to_string(androidNotificationBarPriority));
}
std::string PushRequest::getExpireTime()const
{
return expireTime_;
}
void PushRequest::setExpireTime(const std::string& expireTime)
{
expireTime_ = expireTime;
setParameter("ExpireTime", expireTime);
}
std::string PushRequest::getSmsTemplateName()const
{
return smsTemplateName_;
}
void PushRequest::setSmsTemplateName(const std::string& smsTemplateName)
{
smsTemplateName_ = smsTemplateName;
setParameter("SmsTemplateName", smsTemplateName);
}
std::string PushRequest::getAndroidPopupBody()const
{
return androidPopupBody_;
}
void PushRequest::setAndroidPopupBody(const std::string& androidPopupBody)
{
androidPopupBody_ = androidPopupBody;
setParameter("AndroidPopupBody", androidPopupBody);
}
std::string PushRequest::getIOSNotificationCategory()const
{
return iOSNotificationCategory_;
}
void PushRequest::setIOSNotificationCategory(const std::string& iOSNotificationCategory)
{
iOSNotificationCategory_ = iOSNotificationCategory;
setParameter("IOSNotificationCategory", iOSNotificationCategory);
}
bool PushRequest::getStoreOffline()const
{
return storeOffline_;
}
void PushRequest::setStoreOffline(bool storeOffline)
{
storeOffline_ = storeOffline;
setParameter("StoreOffline", std::to_string(storeOffline));
}
bool PushRequest::getIOSSilentNotification()const
{
return iOSSilentNotification_;
}
void PushRequest::setIOSSilentNotification(bool iOSSilentNotification)
{
iOSSilentNotification_ = iOSSilentNotification;
setParameter("IOSSilentNotification", std::to_string(iOSSilentNotification));
}
std::string PushRequest::getSmsParams()const
{
return smsParams_;
}
void PushRequest::setSmsParams(const std::string& smsParams)
{
smsParams_ = smsParams;
setParameter("SmsParams", smsParams);
}
std::string PushRequest::getJobKey()const
{
return jobKey_;
}
void PushRequest::setJobKey(const std::string& jobKey)
{
jobKey_ = jobKey;
setParameter("JobKey", jobKey);
}
std::string PushRequest::getTarget()const
{
return target_;
}
void PushRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
}
std::string PushRequest::getAndroidOpenUrl()const
{
return androidOpenUrl_;
}
void PushRequest::setAndroidOpenUrl(const std::string& androidOpenUrl)
{
androidOpenUrl_ = androidOpenUrl;
setParameter("AndroidOpenUrl", androidOpenUrl);
}
std::string PushRequest::getAndroidNotificationChannel()const
{
return androidNotificationChannel_;
}
void PushRequest::setAndroidNotificationChannel(const std::string& androidNotificationChannel)
{
androidNotificationChannel_ = androidNotificationChannel;
setParameter("AndroidNotificationChannel", androidNotificationChannel);
}
bool PushRequest::getAndroidRemind()const
{
return androidRemind_;
}
void PushRequest::setAndroidRemind(bool androidRemind)
{
androidRemind_ = androidRemind;
setParameter("AndroidRemind", std::to_string(androidRemind));
}
std::string PushRequest::getAndroidActivity()const
{
return androidActivity_;
}
void PushRequest::setAndroidActivity(const std::string& androidActivity)
{
androidActivity_ = androidActivity;
setParameter("AndroidActivity", androidActivity);
}
std::string PushRequest::getAndroidXiaoMiNotifyBody()const
{
return androidXiaoMiNotifyBody_;
}
void PushRequest::setAndroidXiaoMiNotifyBody(const std::string& androidXiaoMiNotifyBody)
{
androidXiaoMiNotifyBody_ = androidXiaoMiNotifyBody;
setParameter("AndroidXiaoMiNotifyBody", androidXiaoMiNotifyBody);
}
std::string PushRequest::getIOSSubtitle()const
{
return iOSSubtitle_;
}
void PushRequest::setIOSSubtitle(const std::string& iOSSubtitle)
{
iOSSubtitle_ = iOSSubtitle;
setParameter("IOSSubtitle", iOSSubtitle);
}
std::string PushRequest::getSmsSignName()const
{
return smsSignName_;
}
void PushRequest::setSmsSignName(const std::string& smsSignName)
{
smsSignName_ = smsSignName;
setParameter("SmsSignName", smsSignName);
}
bool PushRequest::getIOSRemind()const
{
return iOSRemind_;
}
void PushRequest::setIOSRemind(bool iOSRemind)
{
iOSRemind_ = iOSRemind;
setParameter("IOSRemind", std::to_string(iOSRemind));
}
long PushRequest::getAppKey()const
{
return appKey_;
}
void PushRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string PushRequest::getTargetValue()const
{
return targetValue_;
}
void PushRequest::setTargetValue(const std::string& targetValue)
{
targetValue_ = targetValue;
setParameter("TargetValue", targetValue);
}
std::string PushRequest::getAndroidMusic()const
{
return androidMusic_;
}
void PushRequest::setAndroidMusic(const std::string& androidMusic)
{
androidMusic_ = androidMusic;
setParameter("AndroidMusic", androidMusic);
}
std::string PushRequest::getAndroidXiaoMiActivity()const
{
return androidXiaoMiActivity_;
}
void PushRequest::setAndroidXiaoMiActivity(const std::string& androidXiaoMiActivity)
{
androidXiaoMiActivity_ = androidXiaoMiActivity;
setParameter("AndroidXiaoMiActivity", androidXiaoMiActivity);
}
std::string PushRequest::getAndroidXiaoMiNotifyTitle()const
{
return androidXiaoMiNotifyTitle_;
}
void PushRequest::setAndroidXiaoMiNotifyTitle(const std::string& androidXiaoMiNotifyTitle)
{
androidXiaoMiNotifyTitle_ = androidXiaoMiNotifyTitle;
setParameter("AndroidXiaoMiNotifyTitle", androidXiaoMiNotifyTitle);
}
std::string PushRequest::getPushType()const
{
return pushType_;
}
void PushRequest::setPushType(const std::string& pushType)
{
pushType_ = pushType;
setParameter("PushType", pushType);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/push/model/PushResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
PushResult::PushResult() :
ServiceResult()
{}
PushResult::PushResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PushResult::~PushResult()
{}
void PushResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["MessageId"].isNull())
messageId_ = value["MessageId"].asString();
}
std::string PushResult::getMessageId()const
{
return messageId_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/push/model/QueryAliasesRequest.h>
using AlibabaCloud::Push::Model::QueryAliasesRequest;
QueryAliasesRequest::QueryAliasesRequest() :
RpcServiceRequest("push", "2016-08-01", "QueryAliases")
{}
QueryAliasesRequest::~QueryAliasesRequest()
{}
long QueryAliasesRequest::getAppKey()const
{
return appKey_;
}
void QueryAliasesRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string QueryAliasesRequest::getDeviceId()const
{
return deviceId_;
}
void QueryAliasesRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
}
std::string QueryAliasesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryAliasesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,58 @@
/*
* 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.
*/
#include <alibabacloud/push/model/QueryAliasesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
QueryAliasesResult::QueryAliasesResult() :
ServiceResult()
{}
QueryAliasesResult::QueryAliasesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAliasesResult::~QueryAliasesResult()
{}
void QueryAliasesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAliasInfos = value["AliasInfos"]["AliasInfo"];
for (auto value : allAliasInfos)
{
AliasInfo aliasInfosObject;
if(!value["AliasName"].isNull())
aliasInfosObject.aliasName = value["AliasName"].asString();
aliasInfos_.push_back(aliasInfosObject);
}
}
std::vector<QueryAliasesResult::AliasInfo> QueryAliasesResult::getAliasInfos()const
{
return aliasInfos_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/push/model/QueryDeviceInfoRequest.h>
using AlibabaCloud::Push::Model::QueryDeviceInfoRequest;
QueryDeviceInfoRequest::QueryDeviceInfoRequest() :
RpcServiceRequest("push", "2016-08-01", "QueryDeviceInfo")
{}
QueryDeviceInfoRequest::~QueryDeviceInfoRequest()
{}
long QueryDeviceInfoRequest::getAppKey()const
{
return appKey_;
}
void QueryDeviceInfoRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string QueryDeviceInfoRequest::getDeviceId()const
{
return deviceId_;
}
void QueryDeviceInfoRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
}
std::string QueryDeviceInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryDeviceInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/push/model/QueryDeviceInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
QueryDeviceInfoResult::QueryDeviceInfoResult() :
ServiceResult()
{}
QueryDeviceInfoResult::QueryDeviceInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDeviceInfoResult::~QueryDeviceInfoResult()
{}
void QueryDeviceInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto deviceInfoNode = value["DeviceInfo"];
if(!deviceInfoNode["DeviceId"].isNull())
deviceInfo_.deviceId = deviceInfoNode["DeviceId"].asString();
if(!deviceInfoNode["DeviceType"].isNull())
deviceInfo_.deviceType = deviceInfoNode["DeviceType"].asString();
if(!deviceInfoNode["Account"].isNull())
deviceInfo_.account = deviceInfoNode["Account"].asString();
if(!deviceInfoNode["DeviceToken"].isNull())
deviceInfo_.deviceToken = deviceInfoNode["DeviceToken"].asString();
if(!deviceInfoNode["Tags"].isNull())
deviceInfo_.tags = deviceInfoNode["Tags"].asString();
if(!deviceInfoNode["Alias"].isNull())
deviceInfo_.alias = deviceInfoNode["Alias"].asString();
if(!deviceInfoNode["LastOnlineTime"].isNull())
deviceInfo_.lastOnlineTime = deviceInfoNode["LastOnlineTime"].asString();
if(!deviceInfoNode["Online"].isNull())
deviceInfo_.online = deviceInfoNode["Online"].asString() == "true";
if(!deviceInfoNode["PhoneNumber"].isNull())
deviceInfo_.phoneNumber = deviceInfoNode["PhoneNumber"].asString();
if(!deviceInfoNode["PushEnabled"].isNull())
deviceInfo_.pushEnabled = deviceInfoNode["PushEnabled"].asString() == "true";
}
QueryDeviceInfoResult::DeviceInfo QueryDeviceInfoResult::getDeviceInfo()const
{
return deviceInfo_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/push/model/QueryDeviceStatRequest.h>
using AlibabaCloud::Push::Model::QueryDeviceStatRequest;
QueryDeviceStatRequest::QueryDeviceStatRequest() :
RpcServiceRequest("push", "2016-08-01", "QueryDeviceStat")
{}
QueryDeviceStatRequest::~QueryDeviceStatRequest()
{}
std::string QueryDeviceStatRequest::getEndTime()const
{
return endTime_;
}
void QueryDeviceStatRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long QueryDeviceStatRequest::getAppKey()const
{
return appKey_;
}
void QueryDeviceStatRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string QueryDeviceStatRequest::getStartTime()const
{
return startTime_;
}
void QueryDeviceStatRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string QueryDeviceStatRequest::getDeviceType()const
{
return deviceType_;
}
void QueryDeviceStatRequest::setDeviceType(const std::string& deviceType)
{
deviceType_ = deviceType;
setParameter("DeviceType", deviceType);
}
std::string QueryDeviceStatRequest::getQueryType()const
{
return queryType_;
}
void QueryDeviceStatRequest::setQueryType(const std::string& queryType)
{
queryType_ = queryType;
setParameter("QueryType", queryType);
}
std::string QueryDeviceStatRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryDeviceStatRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,62 @@
/*
* 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.
*/
#include <alibabacloud/push/model/QueryDeviceStatResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
QueryDeviceStatResult::QueryDeviceStatResult() :
ServiceResult()
{}
QueryDeviceStatResult::QueryDeviceStatResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDeviceStatResult::~QueryDeviceStatResult()
{}
void QueryDeviceStatResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAppDeviceStats = value["AppDeviceStats"]["AppDeviceStat"];
for (auto value : allAppDeviceStats)
{
AppDeviceStat appDeviceStatsObject;
if(!value["Time"].isNull())
appDeviceStatsObject.time = value["Time"].asString();
if(!value["Count"].isNull())
appDeviceStatsObject.count = std::stol(value["Count"].asString());
if(!value["DeviceType"].isNull())
appDeviceStatsObject.deviceType = value["DeviceType"].asString();
appDeviceStats_.push_back(appDeviceStatsObject);
}
}
std::vector<QueryDeviceStatResult::AppDeviceStat> QueryDeviceStatResult::getAppDeviceStats()const
{
return appDeviceStats_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/push/model/QueryDevicesByAccountRequest.h>
using AlibabaCloud::Push::Model::QueryDevicesByAccountRequest;
QueryDevicesByAccountRequest::QueryDevicesByAccountRequest() :
RpcServiceRequest("push", "2016-08-01", "QueryDevicesByAccount")
{}
QueryDevicesByAccountRequest::~QueryDevicesByAccountRequest()
{}
long QueryDevicesByAccountRequest::getAppKey()const
{
return appKey_;
}
void QueryDevicesByAccountRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string QueryDevicesByAccountRequest::getAccount()const
{
return account_;
}
void QueryDevicesByAccountRequest::setAccount(const std::string& account)
{
account_ = account;
setParameter("Account", account);
}
std::string QueryDevicesByAccountRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryDevicesByAccountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,53 @@
/*
* 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.
*/
#include <alibabacloud/push/model/QueryDevicesByAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Push;
using namespace AlibabaCloud::Push::Model;
QueryDevicesByAccountResult::QueryDevicesByAccountResult() :
ServiceResult()
{}
QueryDevicesByAccountResult::QueryDevicesByAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDevicesByAccountResult::~QueryDevicesByAccountResult()
{}
void QueryDevicesByAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDeviceIds = value["DeviceIds"]["DeviceId"];
for (const auto &item : allDeviceIds)
deviceIds_.push_back(item.asString());
}
std::vector<std::string> QueryDevicesByAccountResult::getDeviceIds()const
{
return deviceIds_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/push/model/QueryDevicesByAliasRequest.h>
using AlibabaCloud::Push::Model::QueryDevicesByAliasRequest;
QueryDevicesByAliasRequest::QueryDevicesByAliasRequest() :
RpcServiceRequest("push", "2016-08-01", "QueryDevicesByAlias")
{}
QueryDevicesByAliasRequest::~QueryDevicesByAliasRequest()
{}
std::string QueryDevicesByAliasRequest::getAlias()const
{
return alias_;
}
void QueryDevicesByAliasRequest::setAlias(const std::string& alias)
{
alias_ = alias;
setParameter("Alias", alias);
}
long QueryDevicesByAliasRequest::getAppKey()const
{
return appKey_;
}
void QueryDevicesByAliasRequest::setAppKey(long appKey)
{
appKey_ = appKey;
setParameter("AppKey", std::to_string(appKey));
}
std::string QueryDevicesByAliasRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryDevicesByAliasRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

Some files were not shown because too many files have changed in this diff Show More