From c3ff60fd732dd0f57c3005830e8d1b69f875e813 Mon Sep 17 00:00:00 2001 From: "haowei.yao" Date: Fri, 23 Mar 2018 11:38:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B1=E9=87=8A=E4=B8=80=E5=8F=91=E8=B5=B7?= =?UTF-8?q?=E7=9A=84PUSH=20SDK=E8=87=AA=E5=8A=A8=E5=8F=91=E5=B8=83,=20BUIL?= =?UTF-8?q?D=5FID=3D490,=20=E7=89=88=E6=9C=AC=E5=8F=B7=EF=BC=9A1.3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haowei.yao --- CHANGELOG | 4 + CMakeLists.txt | 3 +- VERSION | 2 +- push/CMakeLists.txt | 194 +++ push/include/alibabacloud/push/PushClient.h | 270 +++++ push/include/alibabacloud/push/PushExport.h | 32 + .../push/model/BindAliasRequest.h | 57 + .../alibabacloud/push/model/BindAliasResult.h | 49 + .../push/model/BindPhoneRequest.h | 57 + .../alibabacloud/push/model/BindPhoneResult.h | 49 + .../alibabacloud/push/model/BindTagRequest.h | 60 + .../alibabacloud/push/model/BindTagResult.h | 49 + .../push/model/CancelPushRequest.h | 54 + .../push/model/CancelPushResult.h | 49 + .../push/model/CheckDeviceRequest.h | 54 + .../push/model/CheckDeviceResult.h | 51 + .../push/model/CheckDevicesRequest.h | 54 + .../push/model/CheckDevicesResult.h | 56 + .../push/model/ListPushRecordsRequest.h | 66 + .../push/model/ListPushRecordsResult.h | 68 ++ .../push/model/ListSummaryAppsRequest.h | 48 + .../push/model/ListSummaryAppsResult.h | 56 + .../alibabacloud/push/model/ListTagsRequest.h | 51 + .../alibabacloud/push/model/ListTagsResult.h | 55 + .../push/model/PushMessageToAndroidRequest.h | 66 + .../push/model/PushMessageToAndroidResult.h | 51 + .../push/model/PushMessageToiOSRequest.h | 66 + .../push/model/PushMessageToiOSResult.h | 51 + .../push/model/PushNoticeToAndroidRequest.h | 69 ++ .../push/model/PushNoticeToAndroidResult.h | 51 + .../push/model/PushNoticeToiOSRequest.h | 72 ++ .../push/model/PushNoticeToiOSResult.h | 51 + .../alibabacloud/push/model/PushRequest.h | 180 +++ .../alibabacloud/push/model/PushResult.h | 51 + .../push/model/QueryAliasesRequest.h | 54 + .../push/model/QueryAliasesResult.h | 55 + .../push/model/QueryDeviceInfoRequest.h | 54 + .../push/model/QueryDeviceInfoResult.h | 64 + .../push/model/QueryDeviceStatRequest.h | 63 + .../push/model/QueryDeviceStatResult.h | 57 + .../push/model/QueryDevicesByAccountRequest.h | 54 + .../push/model/QueryDevicesByAccountResult.h | 51 + .../push/model/QueryDevicesByAliasRequest.h | 54 + .../push/model/QueryDevicesByAliasResult.h | 51 + .../push/model/QueryPushListRequest.h | 66 + .../push/model/QueryPushListResult.h | 68 ++ .../push/model/QueryPushStatByAppRequest.h | 60 + .../push/model/QueryPushStatByAppResult.h | 65 + .../push/model/QueryPushStatByMsgRequest.h | 54 + .../push/model/QueryPushStatByMsgResult.h | 65 + .../push/model/QueryTagsRequest.h | 57 + .../alibabacloud/push/model/QueryTagsResult.h | 55 + .../push/model/QueryUniqueDeviceStatRequest.h | 60 + .../push/model/QueryUniqueDeviceStatResult.h | 56 + .../push/model/RemoveTagRequest.h | 54 + .../alibabacloud/push/model/RemoveTagResult.h | 49 + .../push/model/UnbindAliasRequest.h | 60 + .../push/model/UnbindAliasResult.h | 49 + .../push/model/UnbindPhoneRequest.h | 54 + .../push/model/UnbindPhoneResult.h | 49 + .../push/model/UnbindTagRequest.h | 60 + .../alibabacloud/push/model/UnbindTagResult.h | 49 + push/src/PushClient.cc | 1061 +++++++++++++++++ push/src/model/BindAliasRequest.cc | 71 ++ push/src/model/BindAliasResult.cc | 45 + push/src/model/BindPhoneRequest.cc | 71 ++ push/src/model/BindPhoneResult.cc | 45 + push/src/model/BindTagRequest.cc | 82 ++ push/src/model/BindTagResult.cc | 45 + push/src/model/CancelPushRequest.cc | 60 + push/src/model/CancelPushResult.cc | 45 + push/src/model/CheckDeviceRequest.cc | 60 + push/src/model/CheckDeviceResult.cc | 52 + push/src/model/CheckDevicesRequest.cc | 60 + push/src/model/CheckDevicesResult.cc | 60 + push/src/model/ListPushRecordsRequest.cc | 104 ++ push/src/model/ListPushRecordsResult.cc | 93 ++ push/src/model/ListSummaryAppsRequest.cc | 38 + push/src/model/ListSummaryAppsResult.cc | 60 + push/src/model/ListTagsRequest.cc | 49 + push/src/model/ListTagsResult.cc | 58 + push/src/model/PushMessageToAndroidRequest.cc | 104 ++ push/src/model/PushMessageToAndroidResult.cc | 52 + push/src/model/PushMessageToiOSRequest.cc | 104 ++ push/src/model/PushMessageToiOSResult.cc | 52 + push/src/model/PushNoticeToAndroidRequest.cc | 115 ++ push/src/model/PushNoticeToAndroidResult.cc | 52 + push/src/model/PushNoticeToiOSRequest.cc | 126 ++ push/src/model/PushNoticeToiOSResult.cc | 52 + push/src/model/PushRequest.cc | 522 ++++++++ push/src/model/PushResult.cc | 52 + push/src/model/QueryAliasesRequest.cc | 60 + push/src/model/QueryAliasesResult.cc | 58 + push/src/model/QueryDeviceInfoRequest.cc | 60 + push/src/model/QueryDeviceInfoResult.cc | 71 ++ push/src/model/QueryDeviceStatRequest.cc | 93 ++ push/src/model/QueryDeviceStatResult.cc | 62 + .../src/model/QueryDevicesByAccountRequest.cc | 60 + push/src/model/QueryDevicesByAccountResult.cc | 53 + push/src/model/QueryDevicesByAliasRequest.cc | 60 + push/src/model/QueryDevicesByAliasResult.cc | 53 + push/src/model/QueryPushListRequest.cc | 104 ++ push/src/model/QueryPushListResult.cc | 93 ++ push/src/model/QueryPushStatByAppRequest.cc | 82 ++ push/src/model/QueryPushStatByAppResult.cc | 78 ++ push/src/model/QueryPushStatByMsgRequest.cc | 60 + push/src/model/QueryPushStatByMsgResult.cc | 78 ++ push/src/model/QueryTagsRequest.cc | 71 ++ push/src/model/QueryTagsResult.cc | 58 + .../src/model/QueryUniqueDeviceStatRequest.cc | 82 ++ push/src/model/QueryUniqueDeviceStatResult.cc | 60 + push/src/model/RemoveTagRequest.cc | 60 + push/src/model/RemoveTagResult.cc | 45 + push/src/model/UnbindAliasRequest.cc | 82 ++ push/src/model/UnbindAliasResult.cc | 45 + push/src/model/UnbindPhoneRequest.cc | 60 + push/src/model/UnbindPhoneResult.cc | 45 + push/src/model/UnbindTagRequest.cc | 82 ++ push/src/model/UnbindTagResult.cc | 45 + 119 files changed, 9031 insertions(+), 2 deletions(-) create mode 100644 push/CMakeLists.txt create mode 100644 push/include/alibabacloud/push/PushClient.h create mode 100644 push/include/alibabacloud/push/PushExport.h create mode 100644 push/include/alibabacloud/push/model/BindAliasRequest.h create mode 100644 push/include/alibabacloud/push/model/BindAliasResult.h create mode 100644 push/include/alibabacloud/push/model/BindPhoneRequest.h create mode 100644 push/include/alibabacloud/push/model/BindPhoneResult.h create mode 100644 push/include/alibabacloud/push/model/BindTagRequest.h create mode 100644 push/include/alibabacloud/push/model/BindTagResult.h create mode 100644 push/include/alibabacloud/push/model/CancelPushRequest.h create mode 100644 push/include/alibabacloud/push/model/CancelPushResult.h create mode 100644 push/include/alibabacloud/push/model/CheckDeviceRequest.h create mode 100644 push/include/alibabacloud/push/model/CheckDeviceResult.h create mode 100644 push/include/alibabacloud/push/model/CheckDevicesRequest.h create mode 100644 push/include/alibabacloud/push/model/CheckDevicesResult.h create mode 100644 push/include/alibabacloud/push/model/ListPushRecordsRequest.h create mode 100644 push/include/alibabacloud/push/model/ListPushRecordsResult.h create mode 100644 push/include/alibabacloud/push/model/ListSummaryAppsRequest.h create mode 100644 push/include/alibabacloud/push/model/ListSummaryAppsResult.h create mode 100644 push/include/alibabacloud/push/model/ListTagsRequest.h create mode 100644 push/include/alibabacloud/push/model/ListTagsResult.h create mode 100644 push/include/alibabacloud/push/model/PushMessageToAndroidRequest.h create mode 100644 push/include/alibabacloud/push/model/PushMessageToAndroidResult.h create mode 100644 push/include/alibabacloud/push/model/PushMessageToiOSRequest.h create mode 100644 push/include/alibabacloud/push/model/PushMessageToiOSResult.h create mode 100644 push/include/alibabacloud/push/model/PushNoticeToAndroidRequest.h create mode 100644 push/include/alibabacloud/push/model/PushNoticeToAndroidResult.h create mode 100644 push/include/alibabacloud/push/model/PushNoticeToiOSRequest.h create mode 100644 push/include/alibabacloud/push/model/PushNoticeToiOSResult.h create mode 100644 push/include/alibabacloud/push/model/PushRequest.h create mode 100644 push/include/alibabacloud/push/model/PushResult.h create mode 100644 push/include/alibabacloud/push/model/QueryAliasesRequest.h create mode 100644 push/include/alibabacloud/push/model/QueryAliasesResult.h create mode 100644 push/include/alibabacloud/push/model/QueryDeviceInfoRequest.h create mode 100644 push/include/alibabacloud/push/model/QueryDeviceInfoResult.h create mode 100644 push/include/alibabacloud/push/model/QueryDeviceStatRequest.h create mode 100644 push/include/alibabacloud/push/model/QueryDeviceStatResult.h create mode 100644 push/include/alibabacloud/push/model/QueryDevicesByAccountRequest.h create mode 100644 push/include/alibabacloud/push/model/QueryDevicesByAccountResult.h create mode 100644 push/include/alibabacloud/push/model/QueryDevicesByAliasRequest.h create mode 100644 push/include/alibabacloud/push/model/QueryDevicesByAliasResult.h create mode 100644 push/include/alibabacloud/push/model/QueryPushListRequest.h create mode 100644 push/include/alibabacloud/push/model/QueryPushListResult.h create mode 100644 push/include/alibabacloud/push/model/QueryPushStatByAppRequest.h create mode 100644 push/include/alibabacloud/push/model/QueryPushStatByAppResult.h create mode 100644 push/include/alibabacloud/push/model/QueryPushStatByMsgRequest.h create mode 100644 push/include/alibabacloud/push/model/QueryPushStatByMsgResult.h create mode 100644 push/include/alibabacloud/push/model/QueryTagsRequest.h create mode 100644 push/include/alibabacloud/push/model/QueryTagsResult.h create mode 100644 push/include/alibabacloud/push/model/QueryUniqueDeviceStatRequest.h create mode 100644 push/include/alibabacloud/push/model/QueryUniqueDeviceStatResult.h create mode 100644 push/include/alibabacloud/push/model/RemoveTagRequest.h create mode 100644 push/include/alibabacloud/push/model/RemoveTagResult.h create mode 100644 push/include/alibabacloud/push/model/UnbindAliasRequest.h create mode 100644 push/include/alibabacloud/push/model/UnbindAliasResult.h create mode 100644 push/include/alibabacloud/push/model/UnbindPhoneRequest.h create mode 100644 push/include/alibabacloud/push/model/UnbindPhoneResult.h create mode 100644 push/include/alibabacloud/push/model/UnbindTagRequest.h create mode 100644 push/include/alibabacloud/push/model/UnbindTagResult.h create mode 100644 push/src/PushClient.cc create mode 100644 push/src/model/BindAliasRequest.cc create mode 100644 push/src/model/BindAliasResult.cc create mode 100644 push/src/model/BindPhoneRequest.cc create mode 100644 push/src/model/BindPhoneResult.cc create mode 100644 push/src/model/BindTagRequest.cc create mode 100644 push/src/model/BindTagResult.cc create mode 100644 push/src/model/CancelPushRequest.cc create mode 100644 push/src/model/CancelPushResult.cc create mode 100644 push/src/model/CheckDeviceRequest.cc create mode 100644 push/src/model/CheckDeviceResult.cc create mode 100644 push/src/model/CheckDevicesRequest.cc create mode 100644 push/src/model/CheckDevicesResult.cc create mode 100644 push/src/model/ListPushRecordsRequest.cc create mode 100644 push/src/model/ListPushRecordsResult.cc create mode 100644 push/src/model/ListSummaryAppsRequest.cc create mode 100644 push/src/model/ListSummaryAppsResult.cc create mode 100644 push/src/model/ListTagsRequest.cc create mode 100644 push/src/model/ListTagsResult.cc create mode 100644 push/src/model/PushMessageToAndroidRequest.cc create mode 100644 push/src/model/PushMessageToAndroidResult.cc create mode 100644 push/src/model/PushMessageToiOSRequest.cc create mode 100644 push/src/model/PushMessageToiOSResult.cc create mode 100644 push/src/model/PushNoticeToAndroidRequest.cc create mode 100644 push/src/model/PushNoticeToAndroidResult.cc create mode 100644 push/src/model/PushNoticeToiOSRequest.cc create mode 100644 push/src/model/PushNoticeToiOSResult.cc create mode 100644 push/src/model/PushRequest.cc create mode 100644 push/src/model/PushResult.cc create mode 100644 push/src/model/QueryAliasesRequest.cc create mode 100644 push/src/model/QueryAliasesResult.cc create mode 100644 push/src/model/QueryDeviceInfoRequest.cc create mode 100644 push/src/model/QueryDeviceInfoResult.cc create mode 100644 push/src/model/QueryDeviceStatRequest.cc create mode 100644 push/src/model/QueryDeviceStatResult.cc create mode 100644 push/src/model/QueryDevicesByAccountRequest.cc create mode 100644 push/src/model/QueryDevicesByAccountResult.cc create mode 100644 push/src/model/QueryDevicesByAliasRequest.cc create mode 100644 push/src/model/QueryDevicesByAliasResult.cc create mode 100644 push/src/model/QueryPushListRequest.cc create mode 100644 push/src/model/QueryPushListResult.cc create mode 100644 push/src/model/QueryPushStatByAppRequest.cc create mode 100644 push/src/model/QueryPushStatByAppResult.cc create mode 100644 push/src/model/QueryPushStatByMsgRequest.cc create mode 100644 push/src/model/QueryPushStatByMsgResult.cc create mode 100644 push/src/model/QueryTagsRequest.cc create mode 100644 push/src/model/QueryTagsResult.cc create mode 100644 push/src/model/QueryUniqueDeviceStatRequest.cc create mode 100644 push/src/model/QueryUniqueDeviceStatResult.cc create mode 100644 push/src/model/RemoveTagRequest.cc create mode 100644 push/src/model/RemoveTagResult.cc create mode 100644 push/src/model/UnbindAliasRequest.cc create mode 100644 push/src/model/UnbindAliasResult.cc create mode 100644 push/src/model/UnbindPhoneRequest.cc create mode 100644 push/src/model/UnbindPhoneResult.cc create mode 100644 push/src/model/UnbindTagRequest.cc create mode 100644 push/src/model/UnbindTagResult.cc diff --git a/CHANGELOG b/CHANGELOG index 05feb740b..069ea9b3a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/CMakeLists.txt b/CMakeLists.txt index 4062b5a5a..85622b287 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,4 +64,5 @@ add_subdirectory(aegis) add_subdirectory(ehpc) add_subdirectory(cs) add_subdirectory(ccc) -add_subdirectory(teslamaxcompute) \ No newline at end of file +add_subdirectory(teslamaxcompute) +add_subdirectory(push) \ No newline at end of file diff --git a/VERSION b/VERSION index a96f385f1..589268e6f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.16 \ No newline at end of file +1.3.0 \ No newline at end of file diff --git a/push/CMakeLists.txt b/push/CMakeLists.txt new file mode 100644 index 000000000..8c0f0f1dc --- /dev/null +++ b/push/CMakeLists.txt @@ -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} + ) \ No newline at end of file diff --git a/push/include/alibabacloud/push/PushClient.h b/push/include/alibabacloud/push/PushClient.h new file mode 100644 index 000000000..2aac7bbd7 --- /dev/null +++ b/push/include/alibabacloud/push/PushClient.h @@ -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 +#include +#include +#include +#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 UnbindTagOutcome; + typedef std::future UnbindTagOutcomeCallable; + typedef std::function&)> UnbindTagAsyncHandler; + typedef Outcome QueryDeviceStatOutcome; + typedef std::future QueryDeviceStatOutcomeCallable; + typedef std::function&)> QueryDeviceStatAsyncHandler; + typedef Outcome QueryPushStatByAppOutcome; + typedef std::future QueryPushStatByAppOutcomeCallable; + typedef std::function&)> QueryPushStatByAppAsyncHandler; + typedef Outcome CheckDeviceOutcome; + typedef std::future CheckDeviceOutcomeCallable; + typedef std::function&)> CheckDeviceAsyncHandler; + typedef Outcome ListPushRecordsOutcome; + typedef std::future ListPushRecordsOutcomeCallable; + typedef std::function&)> ListPushRecordsAsyncHandler; + typedef Outcome QueryDevicesByAliasOutcome; + typedef std::future QueryDevicesByAliasOutcomeCallable; + typedef std::function&)> QueryDevicesByAliasAsyncHandler; + typedef Outcome PushOutcome; + typedef std::future PushOutcomeCallable; + typedef std::function&)> PushAsyncHandler; + typedef Outcome QueryTagsOutcome; + typedef std::future QueryTagsOutcomeCallable; + typedef std::function&)> QueryTagsAsyncHandler; + typedef Outcome UnbindAliasOutcome; + typedef std::future UnbindAliasOutcomeCallable; + typedef std::function&)> UnbindAliasAsyncHandler; + typedef Outcome QueryDeviceInfoOutcome; + typedef std::future QueryDeviceInfoOutcomeCallable; + typedef std::function&)> QueryDeviceInfoAsyncHandler; + typedef Outcome QueryPushStatByMsgOutcome; + typedef std::future QueryPushStatByMsgOutcomeCallable; + typedef std::function&)> QueryPushStatByMsgAsyncHandler; + typedef Outcome QueryAliasesOutcome; + typedef std::future QueryAliasesOutcomeCallable; + typedef std::function&)> QueryAliasesAsyncHandler; + typedef Outcome QueryUniqueDeviceStatOutcome; + typedef std::future QueryUniqueDeviceStatOutcomeCallable; + typedef std::function&)> QueryUniqueDeviceStatAsyncHandler; + typedef Outcome ListSummaryAppsOutcome; + typedef std::future ListSummaryAppsOutcomeCallable; + typedef std::function&)> ListSummaryAppsAsyncHandler; + typedef Outcome PushMessageToAndroidOutcome; + typedef std::future PushMessageToAndroidOutcomeCallable; + typedef std::function&)> PushMessageToAndroidAsyncHandler; + typedef Outcome QueryDevicesByAccountOutcome; + typedef std::future QueryDevicesByAccountOutcomeCallable; + typedef std::function&)> QueryDevicesByAccountAsyncHandler; + typedef Outcome BindAliasOutcome; + typedef std::future BindAliasOutcomeCallable; + typedef std::function&)> BindAliasAsyncHandler; + typedef Outcome UnbindPhoneOutcome; + typedef std::future UnbindPhoneOutcomeCallable; + typedef std::function&)> UnbindPhoneAsyncHandler; + typedef Outcome PushNoticeToiOSOutcome; + typedef std::future PushNoticeToiOSOutcomeCallable; + typedef std::function&)> PushNoticeToiOSAsyncHandler; + typedef Outcome CheckDevicesOutcome; + typedef std::future CheckDevicesOutcomeCallable; + typedef std::function&)> CheckDevicesAsyncHandler; + typedef Outcome CancelPushOutcome; + typedef std::future CancelPushOutcomeCallable; + typedef std::function&)> CancelPushAsyncHandler; + typedef Outcome RemoveTagOutcome; + typedef std::future RemoveTagOutcomeCallable; + typedef std::function&)> RemoveTagAsyncHandler; + typedef Outcome ListTagsOutcome; + typedef std::future ListTagsOutcomeCallable; + typedef std::function&)> ListTagsAsyncHandler; + typedef Outcome BindTagOutcome; + typedef std::future BindTagOutcomeCallable; + typedef std::function&)> BindTagAsyncHandler; + typedef Outcome PushMessageToiOSOutcome; + typedef std::future PushMessageToiOSOutcomeCallable; + typedef std::function&)> PushMessageToiOSAsyncHandler; + typedef Outcome BindPhoneOutcome; + typedef std::future BindPhoneOutcomeCallable; + typedef std::function&)> BindPhoneAsyncHandler; + typedef Outcome PushNoticeToAndroidOutcome; + typedef std::future PushNoticeToAndroidOutcomeCallable; + typedef std::function&)> PushNoticeToAndroidAsyncHandler; + typedef Outcome QueryPushListOutcome; + typedef std::future QueryPushListOutcomeCallable; + typedef std::function&)> QueryPushListAsyncHandler; + + PushClient(const Credentials &credentials, const ClientConfiguration &configuration); + PushClient(const std::shared_ptr &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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; + QueryPushListOutcomeCallable queryPushListCallable(const Model::QueryPushListRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_PUSH_PUSHCLIENT_H_ diff --git a/push/include/alibabacloud/push/PushExport.h b/push/include/alibabacloud/push/PushExport.h new file mode 100644 index 000000000..811ae50f0 --- /dev/null +++ b/push/include/alibabacloud/push/PushExport.h @@ -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 + +#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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/BindAliasRequest.h b/push/include/alibabacloud/push/model/BindAliasRequest.h new file mode 100644 index 000000000..9a97f87f3 --- /dev/null +++ b/push/include/alibabacloud/push/model/BindAliasRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/BindAliasResult.h b/push/include/alibabacloud/push/model/BindAliasResult.h new file mode 100644 index 000000000..12750ea5b --- /dev/null +++ b/push/include/alibabacloud/push/model/BindAliasResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/BindPhoneRequest.h b/push/include/alibabacloud/push/model/BindPhoneRequest.h new file mode 100644 index 000000000..b10e646d3 --- /dev/null +++ b/push/include/alibabacloud/push/model/BindPhoneRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/BindPhoneResult.h b/push/include/alibabacloud/push/model/BindPhoneResult.h new file mode 100644 index 000000000..795ba2bcf --- /dev/null +++ b/push/include/alibabacloud/push/model/BindPhoneResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/BindTagRequest.h b/push/include/alibabacloud/push/model/BindTagRequest.h new file mode 100644 index 000000000..28c9ce777 --- /dev/null +++ b/push/include/alibabacloud/push/model/BindTagRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/BindTagResult.h b/push/include/alibabacloud/push/model/BindTagResult.h new file mode 100644 index 000000000..35761ee72 --- /dev/null +++ b/push/include/alibabacloud/push/model/BindTagResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/CancelPushRequest.h b/push/include/alibabacloud/push/model/CancelPushRequest.h new file mode 100644 index 000000000..c58157e7e --- /dev/null +++ b/push/include/alibabacloud/push/model/CancelPushRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/CancelPushResult.h b/push/include/alibabacloud/push/model/CancelPushResult.h new file mode 100644 index 000000000..6777fd489 --- /dev/null +++ b/push/include/alibabacloud/push/model/CancelPushResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/CheckDeviceRequest.h b/push/include/alibabacloud/push/model/CheckDeviceRequest.h new file mode 100644 index 000000000..64482465b --- /dev/null +++ b/push/include/alibabacloud/push/model/CheckDeviceRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/CheckDeviceResult.h b/push/include/alibabacloud/push/model/CheckDeviceResult.h new file mode 100644 index 000000000..e3b6cae6a --- /dev/null +++ b/push/include/alibabacloud/push/model/CheckDeviceResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/CheckDevicesRequest.h b/push/include/alibabacloud/push/model/CheckDevicesRequest.h new file mode 100644 index 000000000..256a06025 --- /dev/null +++ b/push/include/alibabacloud/push/model/CheckDevicesRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/CheckDevicesResult.h b/push/include/alibabacloud/push/model/CheckDevicesResult.h new file mode 100644 index 000000000..fe748657b --- /dev/null +++ b/push/include/alibabacloud/push/model/CheckDevicesResult.h @@ -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 +#include +#include +#include +#include + +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 getDeviceCheckInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector deviceCheckInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_CHECKDEVICESRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/ListPushRecordsRequest.h b/push/include/alibabacloud/push/model/ListPushRecordsRequest.h new file mode 100644 index 000000000..f195c3197 --- /dev/null +++ b/push/include/alibabacloud/push/model/ListPushRecordsRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/ListPushRecordsResult.h b/push/include/alibabacloud/push/model/ListPushRecordsResult.h new file mode 100644 index 000000000..df16e2c11 --- /dev/null +++ b/push/include/alibabacloud/push/model/ListPushRecordsResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_H_ +#define ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +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 getPushMessageInfos()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int total_; + int page_; + std::vector pushMessageInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/ListSummaryAppsRequest.h b/push/include/alibabacloud/push/model/ListSummaryAppsRequest.h new file mode 100644 index 000000000..d412df3b4 --- /dev/null +++ b/push/include/alibabacloud/push/model/ListSummaryAppsRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/ListSummaryAppsResult.h b/push/include/alibabacloud/push/model/ListSummaryAppsResult.h new file mode 100644 index 000000000..e28132a81 --- /dev/null +++ b/push/include/alibabacloud/push/model/ListSummaryAppsResult.h @@ -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 +#include +#include +#include +#include + +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 getSummaryAppInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector summaryAppInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_LISTSUMMARYAPPSRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/ListTagsRequest.h b/push/include/alibabacloud/push/model/ListTagsRequest.h new file mode 100644 index 000000000..63791fccf --- /dev/null +++ b/push/include/alibabacloud/push/model/ListTagsRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/ListTagsResult.h b/push/include/alibabacloud/push/model/ListTagsResult.h new file mode 100644 index 000000000..f53839982 --- /dev/null +++ b/push/include/alibabacloud/push/model/ListTagsResult.h @@ -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 +#include +#include +#include +#include + +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 getTagInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tagInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_LISTTAGSRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/PushMessageToAndroidRequest.h b/push/include/alibabacloud/push/model/PushMessageToAndroidRequest.h new file mode 100644 index 000000000..228896f45 --- /dev/null +++ b/push/include/alibabacloud/push/model/PushMessageToAndroidRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/PushMessageToAndroidResult.h b/push/include/alibabacloud/push/model/PushMessageToAndroidResult.h new file mode 100644 index 000000000..fb59d5ce9 --- /dev/null +++ b/push/include/alibabacloud/push/model/PushMessageToAndroidResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/PushMessageToiOSRequest.h b/push/include/alibabacloud/push/model/PushMessageToiOSRequest.h new file mode 100644 index 000000000..97aef2151 --- /dev/null +++ b/push/include/alibabacloud/push/model/PushMessageToiOSRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/PushMessageToiOSResult.h b/push/include/alibabacloud/push/model/PushMessageToiOSResult.h new file mode 100644 index 000000000..cd64f0b78 --- /dev/null +++ b/push/include/alibabacloud/push/model/PushMessageToiOSResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/PushNoticeToAndroidRequest.h b/push/include/alibabacloud/push/model/PushNoticeToAndroidRequest.h new file mode 100644 index 000000000..daf36be82 --- /dev/null +++ b/push/include/alibabacloud/push/model/PushNoticeToAndroidRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/PushNoticeToAndroidResult.h b/push/include/alibabacloud/push/model/PushNoticeToAndroidResult.h new file mode 100644 index 000000000..80a80aba0 --- /dev/null +++ b/push/include/alibabacloud/push/model/PushNoticeToAndroidResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/PushNoticeToiOSRequest.h b/push/include/alibabacloud/push/model/PushNoticeToiOSRequest.h new file mode 100644 index 000000000..1dcf40c7d --- /dev/null +++ b/push/include/alibabacloud/push/model/PushNoticeToiOSRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/PushNoticeToiOSResult.h b/push/include/alibabacloud/push/model/PushNoticeToiOSResult.h new file mode 100644 index 000000000..01ca13982 --- /dev/null +++ b/push/include/alibabacloud/push/model/PushNoticeToiOSResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/PushRequest.h b/push/include/alibabacloud/push/model/PushRequest.h new file mode 100644 index 000000000..d3e8772e5 --- /dev/null +++ b/push/include/alibabacloud/push/model/PushRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/PushResult.h b/push/include/alibabacloud/push/model/PushResult.h new file mode 100644 index 000000000..4ca604ed7 --- /dev/null +++ b/push/include/alibabacloud/push/model/PushResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryAliasesRequest.h b/push/include/alibabacloud/push/model/QueryAliasesRequest.h new file mode 100644 index 000000000..208ffbc2f --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryAliasesRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryAliasesResult.h b/push/include/alibabacloud/push/model/QueryAliasesResult.h new file mode 100644 index 000000000..4f34b6c27 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryAliasesResult.h @@ -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 +#include +#include +#include +#include + +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 getAliasInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector aliasInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYALIASESRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryDeviceInfoRequest.h b/push/include/alibabacloud/push/model/QueryDeviceInfoRequest.h new file mode 100644 index 000000000..41e052d53 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryDeviceInfoRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryDeviceInfoResult.h b/push/include/alibabacloud/push/model/QueryDeviceInfoResult.h new file mode 100644 index 000000000..0ede6c0b1 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryDeviceInfoResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryDeviceStatRequest.h b/push/include/alibabacloud/push/model/QueryDeviceStatRequest.h new file mode 100644 index 000000000..22fb5c252 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryDeviceStatRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryDeviceStatResult.h b/push/include/alibabacloud/push/model/QueryDeviceStatResult.h new file mode 100644 index 000000000..20363fc39 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryDeviceStatResult.h @@ -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 +#include +#include +#include +#include + +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 getAppDeviceStats()const; + + protected: + void parse(const std::string &payload); + private: + std::vector appDeviceStats_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESTATRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryDevicesByAccountRequest.h b/push/include/alibabacloud/push/model/QueryDevicesByAccountRequest.h new file mode 100644 index 000000000..b966826e8 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryDevicesByAccountRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryDevicesByAccountResult.h b/push/include/alibabacloud/push/model/QueryDevicesByAccountResult.h new file mode 100644 index 000000000..cc37ab3b7 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryDevicesByAccountResult.h @@ -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 +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Push + { + namespace Model + { + class ALIBABACLOUD_PUSH_EXPORT QueryDevicesByAccountResult : public ServiceResult + { + public: + + + QueryDevicesByAccountResult(); + explicit QueryDevicesByAccountResult(const std::string &payload); + ~QueryDevicesByAccountResult(); + std::vector getDeviceIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector deviceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESBYACCOUNTRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryDevicesByAliasRequest.h b/push/include/alibabacloud/push/model/QueryDevicesByAliasRequest.h new file mode 100644 index 000000000..2b2b6b7ce --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryDevicesByAliasRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryDevicesByAliasResult.h b/push/include/alibabacloud/push/model/QueryDevicesByAliasResult.h new file mode 100644 index 000000000..45ece36e9 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryDevicesByAliasResult.h @@ -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 +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Push + { + namespace Model + { + class ALIBABACLOUD_PUSH_EXPORT QueryDevicesByAliasResult : public ServiceResult + { + public: + + + QueryDevicesByAliasResult(); + explicit QueryDevicesByAliasResult(const std::string &payload); + ~QueryDevicesByAliasResult(); + std::vector getDeviceIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector deviceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYDEVICESBYALIASRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryPushListRequest.h b/push/include/alibabacloud/push/model/QueryPushListRequest.h new file mode 100644 index 000000000..30adda4e9 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryPushListRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryPushListResult.h b/push/include/alibabacloud/push/model/QueryPushListResult.h new file mode 100644 index 000000000..3528bd065 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryPushListResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_ +#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_ + +#include +#include +#include +#include +#include + +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 getPushMessageInfos()const; + bool getHasNext()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int page_; + std::vector pushMessageInfos_; + bool hasNext_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryPushStatByAppRequest.h b/push/include/alibabacloud/push/model/QueryPushStatByAppRequest.h new file mode 100644 index 000000000..69ed16fc9 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryPushStatByAppRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryPushStatByAppResult.h b/push/include/alibabacloud/push/model/QueryPushStatByAppResult.h new file mode 100644 index 000000000..1c1616df5 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryPushStatByAppResult.h @@ -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 +#include +#include +#include +#include + +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 getAppPushStats()const; + + protected: + void parse(const std::string &payload); + private: + std::vector appPushStats_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHSTATBYAPPRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryPushStatByMsgRequest.h b/push/include/alibabacloud/push/model/QueryPushStatByMsgRequest.h new file mode 100644 index 000000000..ed02a62af --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryPushStatByMsgRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryPushStatByMsgResult.h b/push/include/alibabacloud/push/model/QueryPushStatByMsgResult.h new file mode 100644 index 000000000..89ed3765c --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryPushStatByMsgResult.h @@ -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 +#include +#include +#include +#include + +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 getPushStats()const; + + protected: + void parse(const std::string &payload); + private: + std::vector pushStats_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHSTATBYMSGRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryTagsRequest.h b/push/include/alibabacloud/push/model/QueryTagsRequest.h new file mode 100644 index 000000000..c40aac540 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryTagsRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryTagsResult.h b/push/include/alibabacloud/push/model/QueryTagsResult.h new file mode 100644 index 000000000..68bd0eb3a --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryTagsResult.h @@ -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 +#include +#include +#include +#include + +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 getTagInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tagInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYTAGSRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryUniqueDeviceStatRequest.h b/push/include/alibabacloud/push/model/QueryUniqueDeviceStatRequest.h new file mode 100644 index 000000000..2ac63d3f3 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryUniqueDeviceStatRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/QueryUniqueDeviceStatResult.h b/push/include/alibabacloud/push/model/QueryUniqueDeviceStatResult.h new file mode 100644 index 000000000..25eb01924 --- /dev/null +++ b/push/include/alibabacloud/push/model/QueryUniqueDeviceStatResult.h @@ -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 +#include +#include +#include +#include + +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 getAppDeviceStats()const; + + protected: + void parse(const std::string &payload); + private: + std::vector appDeviceStats_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYUNIQUEDEVICESTATRESULT_H_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/RemoveTagRequest.h b/push/include/alibabacloud/push/model/RemoveTagRequest.h new file mode 100644 index 000000000..ba2672675 --- /dev/null +++ b/push/include/alibabacloud/push/model/RemoveTagRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/RemoveTagResult.h b/push/include/alibabacloud/push/model/RemoveTagResult.h new file mode 100644 index 000000000..a0e1f52d1 --- /dev/null +++ b/push/include/alibabacloud/push/model/RemoveTagResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/UnbindAliasRequest.h b/push/include/alibabacloud/push/model/UnbindAliasRequest.h new file mode 100644 index 000000000..27c716eed --- /dev/null +++ b/push/include/alibabacloud/push/model/UnbindAliasRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/UnbindAliasResult.h b/push/include/alibabacloud/push/model/UnbindAliasResult.h new file mode 100644 index 000000000..805803c93 --- /dev/null +++ b/push/include/alibabacloud/push/model/UnbindAliasResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/UnbindPhoneRequest.h b/push/include/alibabacloud/push/model/UnbindPhoneRequest.h new file mode 100644 index 000000000..d0902875c --- /dev/null +++ b/push/include/alibabacloud/push/model/UnbindPhoneRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/UnbindPhoneResult.h b/push/include/alibabacloud/push/model/UnbindPhoneResult.h new file mode 100644 index 000000000..987565a2b --- /dev/null +++ b/push/include/alibabacloud/push/model/UnbindPhoneResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/UnbindTagRequest.h b/push/include/alibabacloud/push/model/UnbindTagRequest.h new file mode 100644 index 000000000..1bd45faee --- /dev/null +++ b/push/include/alibabacloud/push/model/UnbindTagRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/include/alibabacloud/push/model/UnbindTagResult.h b/push/include/alibabacloud/push/model/UnbindTagResult.h new file mode 100644 index 000000000..a922daaad --- /dev/null +++ b/push/include/alibabacloud/push/model/UnbindTagResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/push/src/PushClient.cc b/push/src/PushClient.cc new file mode 100644 index 000000000..f2e4cdd0d --- /dev/null +++ b/push/src/PushClient.cc @@ -0,0 +1,1061 @@ +/* + * 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 +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +namespace +{ + const std::string SERVICE_NAME = "Push"; +} + +PushClient::PushClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +PushClient::PushClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +PushClient::PushClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +PushClient::~PushClient() +{} + +PushClient::UnbindTagOutcome PushClient::unbindTag(const UnbindTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindTagOutcome(UnbindTagResult(outcome.result())); + else + return UnbindTagOutcome(outcome.error()); +} + +void PushClient::unbindTagAsync(const UnbindTagRequest& request, const UnbindTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::UnbindTagOutcomeCallable PushClient::unbindTagCallable(const UnbindTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::QueryDeviceStatOutcome PushClient::queryDeviceStat(const QueryDeviceStatRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceStatOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceStatOutcome(QueryDeviceStatResult(outcome.result())); + else + return QueryDeviceStatOutcome(outcome.error()); +} + +void PushClient::queryDeviceStatAsync(const QueryDeviceStatRequest& request, const QueryDeviceStatAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceStat(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::QueryDeviceStatOutcomeCallable PushClient::queryDeviceStatCallable(const QueryDeviceStatRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceStat(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::QueryPushStatByAppOutcome PushClient::queryPushStatByApp(const QueryPushStatByAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryPushStatByAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryPushStatByAppOutcome(QueryPushStatByAppResult(outcome.result())); + else + return QueryPushStatByAppOutcome(outcome.error()); +} + +void PushClient::queryPushStatByAppAsync(const QueryPushStatByAppRequest& request, const QueryPushStatByAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryPushStatByApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::QueryPushStatByAppOutcomeCallable PushClient::queryPushStatByAppCallable(const QueryPushStatByAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryPushStatByApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::CheckDeviceOutcome PushClient::checkDevice(const CheckDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckDeviceOutcome(CheckDeviceResult(outcome.result())); + else + return CheckDeviceOutcome(outcome.error()); +} + +void PushClient::checkDeviceAsync(const CheckDeviceRequest& request, const CheckDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::CheckDeviceOutcomeCallable PushClient::checkDeviceCallable(const CheckDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::ListPushRecordsOutcome PushClient::listPushRecords(const ListPushRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPushRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPushRecordsOutcome(ListPushRecordsResult(outcome.result())); + else + return ListPushRecordsOutcome(outcome.error()); +} + +void PushClient::listPushRecordsAsync(const ListPushRecordsRequest& request, const ListPushRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPushRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::ListPushRecordsOutcomeCallable PushClient::listPushRecordsCallable(const ListPushRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPushRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::QueryDevicesByAliasOutcome PushClient::queryDevicesByAlias(const QueryDevicesByAliasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDevicesByAliasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDevicesByAliasOutcome(QueryDevicesByAliasResult(outcome.result())); + else + return QueryDevicesByAliasOutcome(outcome.error()); +} + +void PushClient::queryDevicesByAliasAsync(const QueryDevicesByAliasRequest& request, const QueryDevicesByAliasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDevicesByAlias(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::QueryDevicesByAliasOutcomeCallable PushClient::queryDevicesByAliasCallable(const QueryDevicesByAliasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDevicesByAlias(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::PushOutcome PushClient::push(const PushRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushOutcome(PushResult(outcome.result())); + else + return PushOutcome(outcome.error()); +} + +void PushClient::pushAsync(const PushRequest& request, const PushAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, push(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::PushOutcomeCallable PushClient::pushCallable(const PushRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->push(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::QueryTagsOutcome PushClient::queryTags(const QueryTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTagsOutcome(QueryTagsResult(outcome.result())); + else + return QueryTagsOutcome(outcome.error()); +} + +void PushClient::queryTagsAsync(const QueryTagsRequest& request, const QueryTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::QueryTagsOutcomeCallable PushClient::queryTagsCallable(const QueryTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::UnbindAliasOutcome PushClient::unbindAlias(const UnbindAliasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindAliasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindAliasOutcome(UnbindAliasResult(outcome.result())); + else + return UnbindAliasOutcome(outcome.error()); +} + +void PushClient::unbindAliasAsync(const UnbindAliasRequest& request, const UnbindAliasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindAlias(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::UnbindAliasOutcomeCallable PushClient::unbindAliasCallable(const UnbindAliasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindAlias(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::QueryDeviceInfoOutcome PushClient::queryDeviceInfo(const QueryDeviceInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceInfoOutcome(QueryDeviceInfoResult(outcome.result())); + else + return QueryDeviceInfoOutcome(outcome.error()); +} + +void PushClient::queryDeviceInfoAsync(const QueryDeviceInfoRequest& request, const QueryDeviceInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::QueryDeviceInfoOutcomeCallable PushClient::queryDeviceInfoCallable(const QueryDeviceInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::QueryPushStatByMsgOutcome PushClient::queryPushStatByMsg(const QueryPushStatByMsgRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryPushStatByMsgOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryPushStatByMsgOutcome(QueryPushStatByMsgResult(outcome.result())); + else + return QueryPushStatByMsgOutcome(outcome.error()); +} + +void PushClient::queryPushStatByMsgAsync(const QueryPushStatByMsgRequest& request, const QueryPushStatByMsgAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryPushStatByMsg(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::QueryPushStatByMsgOutcomeCallable PushClient::queryPushStatByMsgCallable(const QueryPushStatByMsgRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryPushStatByMsg(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::QueryAliasesOutcome PushClient::queryAliases(const QueryAliasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryAliasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryAliasesOutcome(QueryAliasesResult(outcome.result())); + else + return QueryAliasesOutcome(outcome.error()); +} + +void PushClient::queryAliasesAsync(const QueryAliasesRequest& request, const QueryAliasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryAliases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::QueryAliasesOutcomeCallable PushClient::queryAliasesCallable(const QueryAliasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryAliases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::QueryUniqueDeviceStatOutcome PushClient::queryUniqueDeviceStat(const QueryUniqueDeviceStatRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryUniqueDeviceStatOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryUniqueDeviceStatOutcome(QueryUniqueDeviceStatResult(outcome.result())); + else + return QueryUniqueDeviceStatOutcome(outcome.error()); +} + +void PushClient::queryUniqueDeviceStatAsync(const QueryUniqueDeviceStatRequest& request, const QueryUniqueDeviceStatAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryUniqueDeviceStat(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::QueryUniqueDeviceStatOutcomeCallable PushClient::queryUniqueDeviceStatCallable(const QueryUniqueDeviceStatRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryUniqueDeviceStat(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::ListSummaryAppsOutcome PushClient::listSummaryApps(const ListSummaryAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSummaryAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSummaryAppsOutcome(ListSummaryAppsResult(outcome.result())); + else + return ListSummaryAppsOutcome(outcome.error()); +} + +void PushClient::listSummaryAppsAsync(const ListSummaryAppsRequest& request, const ListSummaryAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSummaryApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::ListSummaryAppsOutcomeCallable PushClient::listSummaryAppsCallable(const ListSummaryAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSummaryApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::PushMessageToAndroidOutcome PushClient::pushMessageToAndroid(const PushMessageToAndroidRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushMessageToAndroidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushMessageToAndroidOutcome(PushMessageToAndroidResult(outcome.result())); + else + return PushMessageToAndroidOutcome(outcome.error()); +} + +void PushClient::pushMessageToAndroidAsync(const PushMessageToAndroidRequest& request, const PushMessageToAndroidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pushMessageToAndroid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::PushMessageToAndroidOutcomeCallable PushClient::pushMessageToAndroidCallable(const PushMessageToAndroidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pushMessageToAndroid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::QueryDevicesByAccountOutcome PushClient::queryDevicesByAccount(const QueryDevicesByAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDevicesByAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDevicesByAccountOutcome(QueryDevicesByAccountResult(outcome.result())); + else + return QueryDevicesByAccountOutcome(outcome.error()); +} + +void PushClient::queryDevicesByAccountAsync(const QueryDevicesByAccountRequest& request, const QueryDevicesByAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDevicesByAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::QueryDevicesByAccountOutcomeCallable PushClient::queryDevicesByAccountCallable(const QueryDevicesByAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDevicesByAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::BindAliasOutcome PushClient::bindAlias(const BindAliasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindAliasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindAliasOutcome(BindAliasResult(outcome.result())); + else + return BindAliasOutcome(outcome.error()); +} + +void PushClient::bindAliasAsync(const BindAliasRequest& request, const BindAliasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindAlias(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::BindAliasOutcomeCallable PushClient::bindAliasCallable(const BindAliasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindAlias(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::UnbindPhoneOutcome PushClient::unbindPhone(const UnbindPhoneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindPhoneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindPhoneOutcome(UnbindPhoneResult(outcome.result())); + else + return UnbindPhoneOutcome(outcome.error()); +} + +void PushClient::unbindPhoneAsync(const UnbindPhoneRequest& request, const UnbindPhoneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindPhone(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::UnbindPhoneOutcomeCallable PushClient::unbindPhoneCallable(const UnbindPhoneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindPhone(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::PushNoticeToiOSOutcome PushClient::pushNoticeToiOS(const PushNoticeToiOSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushNoticeToiOSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushNoticeToiOSOutcome(PushNoticeToiOSResult(outcome.result())); + else + return PushNoticeToiOSOutcome(outcome.error()); +} + +void PushClient::pushNoticeToiOSAsync(const PushNoticeToiOSRequest& request, const PushNoticeToiOSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pushNoticeToiOS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::PushNoticeToiOSOutcomeCallable PushClient::pushNoticeToiOSCallable(const PushNoticeToiOSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pushNoticeToiOS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::CheckDevicesOutcome PushClient::checkDevices(const CheckDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckDevicesOutcome(CheckDevicesResult(outcome.result())); + else + return CheckDevicesOutcome(outcome.error()); +} + +void PushClient::checkDevicesAsync(const CheckDevicesRequest& request, const CheckDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::CheckDevicesOutcomeCallable PushClient::checkDevicesCallable(const CheckDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::CancelPushOutcome PushClient::cancelPush(const CancelPushRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelPushOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelPushOutcome(CancelPushResult(outcome.result())); + else + return CancelPushOutcome(outcome.error()); +} + +void PushClient::cancelPushAsync(const CancelPushRequest& request, const CancelPushAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelPush(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::CancelPushOutcomeCallable PushClient::cancelPushCallable(const CancelPushRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelPush(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::RemoveTagOutcome PushClient::removeTag(const RemoveTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTagOutcome(RemoveTagResult(outcome.result())); + else + return RemoveTagOutcome(outcome.error()); +} + +void PushClient::removeTagAsync(const RemoveTagRequest& request, const RemoveTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::RemoveTagOutcomeCallable PushClient::removeTagCallable(const RemoveTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::ListTagsOutcome PushClient::listTags(const ListTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagsOutcome(ListTagsResult(outcome.result())); + else + return ListTagsOutcome(outcome.error()); +} + +void PushClient::listTagsAsync(const ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::ListTagsOutcomeCallable PushClient::listTagsCallable(const ListTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::BindTagOutcome PushClient::bindTag(const BindTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindTagOutcome(BindTagResult(outcome.result())); + else + return BindTagOutcome(outcome.error()); +} + +void PushClient::bindTagAsync(const BindTagRequest& request, const BindTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::BindTagOutcomeCallable PushClient::bindTagCallable(const BindTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::PushMessageToiOSOutcome PushClient::pushMessageToiOS(const PushMessageToiOSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushMessageToiOSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushMessageToiOSOutcome(PushMessageToiOSResult(outcome.result())); + else + return PushMessageToiOSOutcome(outcome.error()); +} + +void PushClient::pushMessageToiOSAsync(const PushMessageToiOSRequest& request, const PushMessageToiOSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pushMessageToiOS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::PushMessageToiOSOutcomeCallable PushClient::pushMessageToiOSCallable(const PushMessageToiOSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pushMessageToiOS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::BindPhoneOutcome PushClient::bindPhone(const BindPhoneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindPhoneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindPhoneOutcome(BindPhoneResult(outcome.result())); + else + return BindPhoneOutcome(outcome.error()); +} + +void PushClient::bindPhoneAsync(const BindPhoneRequest& request, const BindPhoneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindPhone(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::BindPhoneOutcomeCallable PushClient::bindPhoneCallable(const BindPhoneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindPhone(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::PushNoticeToAndroidOutcome PushClient::pushNoticeToAndroid(const PushNoticeToAndroidRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushNoticeToAndroidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushNoticeToAndroidOutcome(PushNoticeToAndroidResult(outcome.result())); + else + return PushNoticeToAndroidOutcome(outcome.error()); +} + +void PushClient::pushNoticeToAndroidAsync(const PushNoticeToAndroidRequest& request, const PushNoticeToAndroidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pushNoticeToAndroid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::PushNoticeToAndroidOutcomeCallable PushClient::pushNoticeToAndroidCallable(const PushNoticeToAndroidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pushNoticeToAndroid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PushClient::QueryPushListOutcome PushClient::queryPushList(const QueryPushListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryPushListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryPushListOutcome(QueryPushListResult(outcome.result())); + else + return QueryPushListOutcome(outcome.error()); +} + +void PushClient::queryPushListAsync(const QueryPushListRequest& request, const QueryPushListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryPushList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::QueryPushListOutcomeCallable PushClient::queryPushListCallable(const QueryPushListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryPushList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/push/src/model/BindAliasRequest.cc b/push/src/model/BindAliasRequest.cc new file mode 100644 index 000000000..feeab58ea --- /dev/null +++ b/push/src/model/BindAliasRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/BindAliasResult.cc b/push/src/model/BindAliasResult.cc new file mode 100644 index 000000000..0abd21df4 --- /dev/null +++ b/push/src/model/BindAliasResult.cc @@ -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 +#include + +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()); + +} + diff --git a/push/src/model/BindPhoneRequest.cc b/push/src/model/BindPhoneRequest.cc new file mode 100644 index 000000000..365afe662 --- /dev/null +++ b/push/src/model/BindPhoneRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/BindPhoneResult.cc b/push/src/model/BindPhoneResult.cc new file mode 100644 index 000000000..34312a329 --- /dev/null +++ b/push/src/model/BindPhoneResult.cc @@ -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 +#include + +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()); + +} + diff --git a/push/src/model/BindTagRequest.cc b/push/src/model/BindTagRequest.cc new file mode 100644 index 000000000..1e5c4cf36 --- /dev/null +++ b/push/src/model/BindTagRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/BindTagResult.cc b/push/src/model/BindTagResult.cc new file mode 100644 index 000000000..6566cd4f7 --- /dev/null +++ b/push/src/model/BindTagResult.cc @@ -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 +#include + +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()); + +} + diff --git a/push/src/model/CancelPushRequest.cc b/push/src/model/CancelPushRequest.cc new file mode 100644 index 000000000..2cfaaea9f --- /dev/null +++ b/push/src/model/CancelPushRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/CancelPushResult.cc b/push/src/model/CancelPushResult.cc new file mode 100644 index 000000000..1619d68c7 --- /dev/null +++ b/push/src/model/CancelPushResult.cc @@ -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 +#include + +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()); + +} + diff --git a/push/src/model/CheckDeviceRequest.cc b/push/src/model/CheckDeviceRequest.cc new file mode 100644 index 000000000..3c90d7c63 --- /dev/null +++ b/push/src/model/CheckDeviceRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/CheckDeviceResult.cc b/push/src/model/CheckDeviceResult.cc new file mode 100644 index 000000000..6de4b3890 --- /dev/null +++ b/push/src/model/CheckDeviceResult.cc @@ -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 +#include + +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_; +} + diff --git a/push/src/model/CheckDevicesRequest.cc b/push/src/model/CheckDevicesRequest.cc new file mode 100644 index 000000000..97e4d4016 --- /dev/null +++ b/push/src/model/CheckDevicesRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/CheckDevicesResult.cc b/push/src/model/CheckDevicesResult.cc new file mode 100644 index 000000000..6d0281f9c --- /dev/null +++ b/push/src/model/CheckDevicesResult.cc @@ -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 +#include + +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::getDeviceCheckInfos()const +{ + return deviceCheckInfos_; +} + diff --git a/push/src/model/ListPushRecordsRequest.cc b/push/src/model/ListPushRecordsRequest.cc new file mode 100644 index 000000000..5553034fe --- /dev/null +++ b/push/src/model/ListPushRecordsRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/ListPushRecordsResult.cc b/push/src/model/ListPushRecordsResult.cc new file mode 100644 index 000000000..964316f8f --- /dev/null +++ b/push/src/model/ListPushRecordsResult.cc @@ -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 +#include + +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::getPushMessageInfos()const +{ + return pushMessageInfos_; +} + diff --git a/push/src/model/ListSummaryAppsRequest.cc b/push/src/model/ListSummaryAppsRequest.cc new file mode 100644 index 000000000..b722b2419 --- /dev/null +++ b/push/src/model/ListSummaryAppsRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/ListSummaryAppsResult.cc b/push/src/model/ListSummaryAppsResult.cc new file mode 100644 index 000000000..1f0f1fa9e --- /dev/null +++ b/push/src/model/ListSummaryAppsResult.cc @@ -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 +#include + +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::getSummaryAppInfos()const +{ + return summaryAppInfos_; +} + diff --git a/push/src/model/ListTagsRequest.cc b/push/src/model/ListTagsRequest.cc new file mode 100644 index 000000000..677c0a9c9 --- /dev/null +++ b/push/src/model/ListTagsRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/ListTagsResult.cc b/push/src/model/ListTagsResult.cc new file mode 100644 index 000000000..17d8f3567 --- /dev/null +++ b/push/src/model/ListTagsResult.cc @@ -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 +#include + +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::getTagInfos()const +{ + return tagInfos_; +} + diff --git a/push/src/model/PushMessageToAndroidRequest.cc b/push/src/model/PushMessageToAndroidRequest.cc new file mode 100644 index 000000000..8960f26b3 --- /dev/null +++ b/push/src/model/PushMessageToAndroidRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/PushMessageToAndroidResult.cc b/push/src/model/PushMessageToAndroidResult.cc new file mode 100644 index 000000000..ab08afb19 --- /dev/null +++ b/push/src/model/PushMessageToAndroidResult.cc @@ -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 +#include + +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_; +} + diff --git a/push/src/model/PushMessageToiOSRequest.cc b/push/src/model/PushMessageToiOSRequest.cc new file mode 100644 index 000000000..1dcd2f0f4 --- /dev/null +++ b/push/src/model/PushMessageToiOSRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/PushMessageToiOSResult.cc b/push/src/model/PushMessageToiOSResult.cc new file mode 100644 index 000000000..263e8ad3c --- /dev/null +++ b/push/src/model/PushMessageToiOSResult.cc @@ -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 +#include + +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_; +} + diff --git a/push/src/model/PushNoticeToAndroidRequest.cc b/push/src/model/PushNoticeToAndroidRequest.cc new file mode 100644 index 000000000..33decb89d --- /dev/null +++ b/push/src/model/PushNoticeToAndroidRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/PushNoticeToAndroidResult.cc b/push/src/model/PushNoticeToAndroidResult.cc new file mode 100644 index 000000000..f8c7e8bc0 --- /dev/null +++ b/push/src/model/PushNoticeToAndroidResult.cc @@ -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 +#include + +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_; +} + diff --git a/push/src/model/PushNoticeToiOSRequest.cc b/push/src/model/PushNoticeToiOSRequest.cc new file mode 100644 index 000000000..0c8ae51b8 --- /dev/null +++ b/push/src/model/PushNoticeToiOSRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/PushNoticeToiOSResult.cc b/push/src/model/PushNoticeToiOSResult.cc new file mode 100644 index 000000000..c4c824ee0 --- /dev/null +++ b/push/src/model/PushNoticeToiOSResult.cc @@ -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 +#include + +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_; +} + diff --git a/push/src/model/PushRequest.cc b/push/src/model/PushRequest.cc new file mode 100644 index 000000000..eb2c56c41 --- /dev/null +++ b/push/src/model/PushRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/PushResult.cc b/push/src/model/PushResult.cc new file mode 100644 index 000000000..26092fea1 --- /dev/null +++ b/push/src/model/PushResult.cc @@ -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 +#include + +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_; +} + diff --git a/push/src/model/QueryAliasesRequest.cc b/push/src/model/QueryAliasesRequest.cc new file mode 100644 index 000000000..dfb242730 --- /dev/null +++ b/push/src/model/QueryAliasesRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/QueryAliasesResult.cc b/push/src/model/QueryAliasesResult.cc new file mode 100644 index 000000000..4ebc951bd --- /dev/null +++ b/push/src/model/QueryAliasesResult.cc @@ -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 +#include + +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::getAliasInfos()const +{ + return aliasInfos_; +} + diff --git a/push/src/model/QueryDeviceInfoRequest.cc b/push/src/model/QueryDeviceInfoRequest.cc new file mode 100644 index 000000000..143d91920 --- /dev/null +++ b/push/src/model/QueryDeviceInfoRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/QueryDeviceInfoResult.cc b/push/src/model/QueryDeviceInfoResult.cc new file mode 100644 index 000000000..6c4e6e1ae --- /dev/null +++ b/push/src/model/QueryDeviceInfoResult.cc @@ -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 +#include + +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_; +} + diff --git a/push/src/model/QueryDeviceStatRequest.cc b/push/src/model/QueryDeviceStatRequest.cc new file mode 100644 index 000000000..da01a4e73 --- /dev/null +++ b/push/src/model/QueryDeviceStatRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/QueryDeviceStatResult.cc b/push/src/model/QueryDeviceStatResult.cc new file mode 100644 index 000000000..bfcbbea1c --- /dev/null +++ b/push/src/model/QueryDeviceStatResult.cc @@ -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 +#include + +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::getAppDeviceStats()const +{ + return appDeviceStats_; +} + diff --git a/push/src/model/QueryDevicesByAccountRequest.cc b/push/src/model/QueryDevicesByAccountRequest.cc new file mode 100644 index 000000000..2b987c2c5 --- /dev/null +++ b/push/src/model/QueryDevicesByAccountRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/QueryDevicesByAccountResult.cc b/push/src/model/QueryDevicesByAccountResult.cc new file mode 100644 index 000000000..5c82e1cc7 --- /dev/null +++ b/push/src/model/QueryDevicesByAccountResult.cc @@ -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 +#include + +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 QueryDevicesByAccountResult::getDeviceIds()const +{ + return deviceIds_; +} + diff --git a/push/src/model/QueryDevicesByAliasRequest.cc b/push/src/model/QueryDevicesByAliasRequest.cc new file mode 100644 index 000000000..ffb4a0d27 --- /dev/null +++ b/push/src/model/QueryDevicesByAliasRequest.cc @@ -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 + +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); +} + diff --git a/push/src/model/QueryDevicesByAliasResult.cc b/push/src/model/QueryDevicesByAliasResult.cc new file mode 100644 index 000000000..35b66c481 --- /dev/null +++ b/push/src/model/QueryDevicesByAliasResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +QueryDevicesByAliasResult::QueryDevicesByAliasResult() : + ServiceResult() +{} + +QueryDevicesByAliasResult::QueryDevicesByAliasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDevicesByAliasResult::~QueryDevicesByAliasResult() +{} + +void QueryDevicesByAliasResult::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 QueryDevicesByAliasResult::getDeviceIds()const +{ + return deviceIds_; +} + diff --git a/push/src/model/QueryPushListRequest.cc b/push/src/model/QueryPushListRequest.cc new file mode 100644 index 000000000..9c2dc3c8a --- /dev/null +++ b/push/src/model/QueryPushListRequest.cc @@ -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 + +using AlibabaCloud::Push::Model::QueryPushListRequest; + +QueryPushListRequest::QueryPushListRequest() : + RpcServiceRequest("push", "2016-08-01", "QueryPushList") +{} + +QueryPushListRequest::~QueryPushListRequest() +{} + +int QueryPushListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryPushListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryPushListRequest::getEndTime()const +{ + return endTime_; +} + +void QueryPushListRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long QueryPushListRequest::getAppKey()const +{ + return appKey_; +} + +void QueryPushListRequest::setAppKey(long appKey) +{ + appKey_ = appKey; + setParameter("AppKey", std::to_string(appKey)); +} + +std::string QueryPushListRequest::getStartTime()const +{ + return startTime_; +} + +void QueryPushListRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +int QueryPushListRequest::getPage()const +{ + return page_; +} + +void QueryPushListRequest::setPage(int page) +{ + page_ = page; + setParameter("Page", std::to_string(page)); +} + +std::string QueryPushListRequest::getPushType()const +{ + return pushType_; +} + +void QueryPushListRequest::setPushType(const std::string& pushType) +{ + pushType_ = pushType; + setParameter("PushType", pushType); +} + +std::string QueryPushListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryPushListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/push/src/model/QueryPushListResult.cc b/push/src/model/QueryPushListResult.cc new file mode 100644 index 000000000..d204e3c0e --- /dev/null +++ b/push/src/model/QueryPushListResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +QueryPushListResult::QueryPushListResult() : + ServiceResult() +{} + +QueryPushListResult::QueryPushListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryPushListResult::~QueryPushListResult() +{} + +void QueryPushListResult::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["HasNext"].isNull()) + hasNext_ = value["HasNext"].asString() == "true"; + if(!value["Page"].isNull()) + page_ = std::stoi(value["Page"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int QueryPushListResult::getPageSize()const +{ + return pageSize_; +} + +int QueryPushListResult::getPage()const +{ + return page_; +} + +std::vector QueryPushListResult::getPushMessageInfos()const +{ + return pushMessageInfos_; +} + +bool QueryPushListResult::getHasNext()const +{ + return hasNext_; +} + diff --git a/push/src/model/QueryPushStatByAppRequest.cc b/push/src/model/QueryPushStatByAppRequest.cc new file mode 100644 index 000000000..e30da9166 --- /dev/null +++ b/push/src/model/QueryPushStatByAppRequest.cc @@ -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 + +using AlibabaCloud::Push::Model::QueryPushStatByAppRequest; + +QueryPushStatByAppRequest::QueryPushStatByAppRequest() : + RpcServiceRequest("push", "2016-08-01", "QueryPushStatByApp") +{} + +QueryPushStatByAppRequest::~QueryPushStatByAppRequest() +{} + +std::string QueryPushStatByAppRequest::getGranularity()const +{ + return granularity_; +} + +void QueryPushStatByAppRequest::setGranularity(const std::string& granularity) +{ + granularity_ = granularity; + setParameter("Granularity", granularity); +} + +std::string QueryPushStatByAppRequest::getEndTime()const +{ + return endTime_; +} + +void QueryPushStatByAppRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long QueryPushStatByAppRequest::getAppKey()const +{ + return appKey_; +} + +void QueryPushStatByAppRequest::setAppKey(long appKey) +{ + appKey_ = appKey; + setParameter("AppKey", std::to_string(appKey)); +} + +std::string QueryPushStatByAppRequest::getStartTime()const +{ + return startTime_; +} + +void QueryPushStatByAppRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string QueryPushStatByAppRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryPushStatByAppRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/push/src/model/QueryPushStatByAppResult.cc b/push/src/model/QueryPushStatByAppResult.cc new file mode 100644 index 000000000..e6e95c69e --- /dev/null +++ b/push/src/model/QueryPushStatByAppResult.cc @@ -0,0 +1,78 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +QueryPushStatByAppResult::QueryPushStatByAppResult() : + ServiceResult() +{} + +QueryPushStatByAppResult::QueryPushStatByAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryPushStatByAppResult::~QueryPushStatByAppResult() +{} + +void QueryPushStatByAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAppPushStats = value["AppPushStats"]["AppPushStat"]; + for (auto value : allAppPushStats) + { + AppPushStat appPushStatsObject; + if(!value["Time"].isNull()) + appPushStatsObject.time = value["Time"].asString(); + if(!value["AcceptCount"].isNull()) + appPushStatsObject.acceptCount = std::stol(value["AcceptCount"].asString()); + if(!value["SentCount"].isNull()) + appPushStatsObject.sentCount = std::stol(value["SentCount"].asString()); + if(!value["ReceivedCount"].isNull()) + appPushStatsObject.receivedCount = std::stol(value["ReceivedCount"].asString()); + if(!value["OpenedCount"].isNull()) + appPushStatsObject.openedCount = std::stol(value["OpenedCount"].asString()); + if(!value["DeletedCount"].isNull()) + appPushStatsObject.deletedCount = std::stol(value["DeletedCount"].asString()); + if(!value["SmsSentCount"].isNull()) + appPushStatsObject.smsSentCount = std::stol(value["SmsSentCount"].asString()); + if(!value["SmsSkipCount"].isNull()) + appPushStatsObject.smsSkipCount = std::stol(value["SmsSkipCount"].asString()); + if(!value["SmsFailedCount"].isNull()) + appPushStatsObject.smsFailedCount = std::stol(value["SmsFailedCount"].asString()); + if(!value["SmsReceiveSuccessCount"].isNull()) + appPushStatsObject.smsReceiveSuccessCount = std::stol(value["SmsReceiveSuccessCount"].asString()); + if(!value["SmsReceiveFailedCount"].isNull()) + appPushStatsObject.smsReceiveFailedCount = std::stol(value["SmsReceiveFailedCount"].asString()); + appPushStats_.push_back(appPushStatsObject); + } + +} + +std::vector QueryPushStatByAppResult::getAppPushStats()const +{ + return appPushStats_; +} + diff --git a/push/src/model/QueryPushStatByMsgRequest.cc b/push/src/model/QueryPushStatByMsgRequest.cc new file mode 100644 index 000000000..bec41a857 --- /dev/null +++ b/push/src/model/QueryPushStatByMsgRequest.cc @@ -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 + +using AlibabaCloud::Push::Model::QueryPushStatByMsgRequest; + +QueryPushStatByMsgRequest::QueryPushStatByMsgRequest() : + RpcServiceRequest("push", "2016-08-01", "QueryPushStatByMsg") +{} + +QueryPushStatByMsgRequest::~QueryPushStatByMsgRequest() +{} + +long QueryPushStatByMsgRequest::getMessageId()const +{ + return messageId_; +} + +void QueryPushStatByMsgRequest::setMessageId(long messageId) +{ + messageId_ = messageId; + setParameter("MessageId", std::to_string(messageId)); +} + +long QueryPushStatByMsgRequest::getAppKey()const +{ + return appKey_; +} + +void QueryPushStatByMsgRequest::setAppKey(long appKey) +{ + appKey_ = appKey; + setParameter("AppKey", std::to_string(appKey)); +} + +std::string QueryPushStatByMsgRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryPushStatByMsgRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/push/src/model/QueryPushStatByMsgResult.cc b/push/src/model/QueryPushStatByMsgResult.cc new file mode 100644 index 000000000..ade682f8a --- /dev/null +++ b/push/src/model/QueryPushStatByMsgResult.cc @@ -0,0 +1,78 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +QueryPushStatByMsgResult::QueryPushStatByMsgResult() : + ServiceResult() +{} + +QueryPushStatByMsgResult::QueryPushStatByMsgResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryPushStatByMsgResult::~QueryPushStatByMsgResult() +{} + +void QueryPushStatByMsgResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPushStats = value["PushStats"]["PushStat"]; + for (auto value : allPushStats) + { + PushStat pushStatsObject; + if(!value["MessageId"].isNull()) + pushStatsObject.messageId = value["MessageId"].asString(); + if(!value["AcceptCount"].isNull()) + pushStatsObject.acceptCount = std::stol(value["AcceptCount"].asString()); + if(!value["SentCount"].isNull()) + pushStatsObject.sentCount = std::stol(value["SentCount"].asString()); + if(!value["ReceivedCount"].isNull()) + pushStatsObject.receivedCount = std::stol(value["ReceivedCount"].asString()); + if(!value["OpenedCount"].isNull()) + pushStatsObject.openedCount = std::stol(value["OpenedCount"].asString()); + if(!value["DeletedCount"].isNull()) + pushStatsObject.deletedCount = std::stol(value["DeletedCount"].asString()); + if(!value["SmsSentCount"].isNull()) + pushStatsObject.smsSentCount = std::stol(value["SmsSentCount"].asString()); + if(!value["SmsSkipCount"].isNull()) + pushStatsObject.smsSkipCount = std::stol(value["SmsSkipCount"].asString()); + if(!value["SmsFailedCount"].isNull()) + pushStatsObject.smsFailedCount = std::stol(value["SmsFailedCount"].asString()); + if(!value["SmsReceiveSuccessCount"].isNull()) + pushStatsObject.smsReceiveSuccessCount = std::stol(value["SmsReceiveSuccessCount"].asString()); + if(!value["SmsReceiveFailedCount"].isNull()) + pushStatsObject.smsReceiveFailedCount = std::stol(value["SmsReceiveFailedCount"].asString()); + pushStats_.push_back(pushStatsObject); + } + +} + +std::vector QueryPushStatByMsgResult::getPushStats()const +{ + return pushStats_; +} + diff --git a/push/src/model/QueryTagsRequest.cc b/push/src/model/QueryTagsRequest.cc new file mode 100644 index 000000000..9eacb6ca5 --- /dev/null +++ b/push/src/model/QueryTagsRequest.cc @@ -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 + +using AlibabaCloud::Push::Model::QueryTagsRequest; + +QueryTagsRequest::QueryTagsRequest() : + RpcServiceRequest("push", "2016-08-01", "QueryTags") +{} + +QueryTagsRequest::~QueryTagsRequest() +{} + +std::string QueryTagsRequest::getClientKey()const +{ + return clientKey_; +} + +void QueryTagsRequest::setClientKey(const std::string& clientKey) +{ + clientKey_ = clientKey; + setParameter("ClientKey", clientKey); +} + +long QueryTagsRequest::getAppKey()const +{ + return appKey_; +} + +void QueryTagsRequest::setAppKey(long appKey) +{ + appKey_ = appKey; + setParameter("AppKey", std::to_string(appKey)); +} + +std::string QueryTagsRequest::getKeyType()const +{ + return keyType_; +} + +void QueryTagsRequest::setKeyType(const std::string& keyType) +{ + keyType_ = keyType; + setParameter("KeyType", keyType); +} + +std::string QueryTagsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryTagsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/push/src/model/QueryTagsResult.cc b/push/src/model/QueryTagsResult.cc new file mode 100644 index 000000000..cbf741251 --- /dev/null +++ b/push/src/model/QueryTagsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +QueryTagsResult::QueryTagsResult() : + ServiceResult() +{} + +QueryTagsResult::QueryTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTagsResult::~QueryTagsResult() +{} + +void QueryTagsResult::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 QueryTagsResult::getTagInfos()const +{ + return tagInfos_; +} + diff --git a/push/src/model/QueryUniqueDeviceStatRequest.cc b/push/src/model/QueryUniqueDeviceStatRequest.cc new file mode 100644 index 000000000..81ffd52d5 --- /dev/null +++ b/push/src/model/QueryUniqueDeviceStatRequest.cc @@ -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 + +using AlibabaCloud::Push::Model::QueryUniqueDeviceStatRequest; + +QueryUniqueDeviceStatRequest::QueryUniqueDeviceStatRequest() : + RpcServiceRequest("push", "2016-08-01", "QueryUniqueDeviceStat") +{} + +QueryUniqueDeviceStatRequest::~QueryUniqueDeviceStatRequest() +{} + +std::string QueryUniqueDeviceStatRequest::getGranularity()const +{ + return granularity_; +} + +void QueryUniqueDeviceStatRequest::setGranularity(const std::string& granularity) +{ + granularity_ = granularity; + setParameter("Granularity", granularity); +} + +std::string QueryUniqueDeviceStatRequest::getEndTime()const +{ + return endTime_; +} + +void QueryUniqueDeviceStatRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long QueryUniqueDeviceStatRequest::getAppKey()const +{ + return appKey_; +} + +void QueryUniqueDeviceStatRequest::setAppKey(long appKey) +{ + appKey_ = appKey; + setParameter("AppKey", std::to_string(appKey)); +} + +std::string QueryUniqueDeviceStatRequest::getStartTime()const +{ + return startTime_; +} + +void QueryUniqueDeviceStatRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string QueryUniqueDeviceStatRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryUniqueDeviceStatRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/push/src/model/QueryUniqueDeviceStatResult.cc b/push/src/model/QueryUniqueDeviceStatResult.cc new file mode 100644 index 000000000..fc93b6dc7 --- /dev/null +++ b/push/src/model/QueryUniqueDeviceStatResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +QueryUniqueDeviceStatResult::QueryUniqueDeviceStatResult() : + ServiceResult() +{} + +QueryUniqueDeviceStatResult::QueryUniqueDeviceStatResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryUniqueDeviceStatResult::~QueryUniqueDeviceStatResult() +{} + +void QueryUniqueDeviceStatResult::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()); + appDeviceStats_.push_back(appDeviceStatsObject); + } + +} + +std::vector QueryUniqueDeviceStatResult::getAppDeviceStats()const +{ + return appDeviceStats_; +} + diff --git a/push/src/model/RemoveTagRequest.cc b/push/src/model/RemoveTagRequest.cc new file mode 100644 index 000000000..391a20ddf --- /dev/null +++ b/push/src/model/RemoveTagRequest.cc @@ -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 + +using AlibabaCloud::Push::Model::RemoveTagRequest; + +RemoveTagRequest::RemoveTagRequest() : + RpcServiceRequest("push", "2016-08-01", "RemoveTag") +{} + +RemoveTagRequest::~RemoveTagRequest() +{} + +std::string RemoveTagRequest::getTagName()const +{ + return tagName_; +} + +void RemoveTagRequest::setTagName(const std::string& tagName) +{ + tagName_ = tagName; + setParameter("TagName", tagName); +} + +long RemoveTagRequest::getAppKey()const +{ + return appKey_; +} + +void RemoveTagRequest::setAppKey(long appKey) +{ + appKey_ = appKey; + setParameter("AppKey", std::to_string(appKey)); +} + +std::string RemoveTagRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveTagRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/push/src/model/RemoveTagResult.cc b/push/src/model/RemoveTagResult.cc new file mode 100644 index 000000000..700be9d4f --- /dev/null +++ b/push/src/model/RemoveTagResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +RemoveTagResult::RemoveTagResult() : + ServiceResult() +{} + +RemoveTagResult::RemoveTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveTagResult::~RemoveTagResult() +{} + +void RemoveTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/push/src/model/UnbindAliasRequest.cc b/push/src/model/UnbindAliasRequest.cc new file mode 100644 index 000000000..abbe609bd --- /dev/null +++ b/push/src/model/UnbindAliasRequest.cc @@ -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 + +using AlibabaCloud::Push::Model::UnbindAliasRequest; + +UnbindAliasRequest::UnbindAliasRequest() : + RpcServiceRequest("push", "2016-08-01", "UnbindAlias") +{} + +UnbindAliasRequest::~UnbindAliasRequest() +{} + +std::string UnbindAliasRequest::getAliasName()const +{ + return aliasName_; +} + +void UnbindAliasRequest::setAliasName(const std::string& aliasName) +{ + aliasName_ = aliasName; + setParameter("AliasName", aliasName); +} + +long UnbindAliasRequest::getAppKey()const +{ + return appKey_; +} + +void UnbindAliasRequest::setAppKey(long appKey) +{ + appKey_ = appKey; + setParameter("AppKey", std::to_string(appKey)); +} + +std::string UnbindAliasRequest::getDeviceId()const +{ + return deviceId_; +} + +void UnbindAliasRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string UnbindAliasRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UnbindAliasRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool UnbindAliasRequest::getUnbindAll()const +{ + return unbindAll_; +} + +void UnbindAliasRequest::setUnbindAll(bool unbindAll) +{ + unbindAll_ = unbindAll; + setParameter("UnbindAll", std::to_string(unbindAll)); +} + diff --git a/push/src/model/UnbindAliasResult.cc b/push/src/model/UnbindAliasResult.cc new file mode 100644 index 000000000..24f5b0ad5 --- /dev/null +++ b/push/src/model/UnbindAliasResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +UnbindAliasResult::UnbindAliasResult() : + ServiceResult() +{} + +UnbindAliasResult::UnbindAliasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindAliasResult::~UnbindAliasResult() +{} + +void UnbindAliasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/push/src/model/UnbindPhoneRequest.cc b/push/src/model/UnbindPhoneRequest.cc new file mode 100644 index 000000000..aba2dcdd4 --- /dev/null +++ b/push/src/model/UnbindPhoneRequest.cc @@ -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 + +using AlibabaCloud::Push::Model::UnbindPhoneRequest; + +UnbindPhoneRequest::UnbindPhoneRequest() : + RpcServiceRequest("push", "2016-08-01", "UnbindPhone") +{} + +UnbindPhoneRequest::~UnbindPhoneRequest() +{} + +long UnbindPhoneRequest::getAppKey()const +{ + return appKey_; +} + +void UnbindPhoneRequest::setAppKey(long appKey) +{ + appKey_ = appKey; + setParameter("AppKey", std::to_string(appKey)); +} + +std::string UnbindPhoneRequest::getDeviceId()const +{ + return deviceId_; +} + +void UnbindPhoneRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string UnbindPhoneRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UnbindPhoneRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/push/src/model/UnbindPhoneResult.cc b/push/src/model/UnbindPhoneResult.cc new file mode 100644 index 000000000..161ba72b9 --- /dev/null +++ b/push/src/model/UnbindPhoneResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +UnbindPhoneResult::UnbindPhoneResult() : + ServiceResult() +{} + +UnbindPhoneResult::UnbindPhoneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindPhoneResult::~UnbindPhoneResult() +{} + +void UnbindPhoneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/push/src/model/UnbindTagRequest.cc b/push/src/model/UnbindTagRequest.cc new file mode 100644 index 000000000..160c05f43 --- /dev/null +++ b/push/src/model/UnbindTagRequest.cc @@ -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 + +using AlibabaCloud::Push::Model::UnbindTagRequest; + +UnbindTagRequest::UnbindTagRequest() : + RpcServiceRequest("push", "2016-08-01", "UnbindTag") +{} + +UnbindTagRequest::~UnbindTagRequest() +{} + +std::string UnbindTagRequest::getTagName()const +{ + return tagName_; +} + +void UnbindTagRequest::setTagName(const std::string& tagName) +{ + tagName_ = tagName; + setParameter("TagName", tagName); +} + +std::string UnbindTagRequest::getClientKey()const +{ + return clientKey_; +} + +void UnbindTagRequest::setClientKey(const std::string& clientKey) +{ + clientKey_ = clientKey; + setParameter("ClientKey", clientKey); +} + +long UnbindTagRequest::getAppKey()const +{ + return appKey_; +} + +void UnbindTagRequest::setAppKey(long appKey) +{ + appKey_ = appKey; + setParameter("AppKey", std::to_string(appKey)); +} + +std::string UnbindTagRequest::getKeyType()const +{ + return keyType_; +} + +void UnbindTagRequest::setKeyType(const std::string& keyType) +{ + keyType_ = keyType; + setParameter("KeyType", keyType); +} + +std::string UnbindTagRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UnbindTagRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/push/src/model/UnbindTagResult.cc b/push/src/model/UnbindTagResult.cc new file mode 100644 index 000000000..e071bb9cb --- /dev/null +++ b/push/src/model/UnbindTagResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Push; +using namespace AlibabaCloud::Push::Model; + +UnbindTagResult::UnbindTagResult() : + ServiceResult() +{} + +UnbindTagResult::UnbindTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindTagResult::~UnbindTagResult() +{} + +void UnbindTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} +