MassPushRequest.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_PUSH_MODEL_MASSPUSHREQUEST_H_
  17. #define ALIBABACLOUD_PUSH_MODEL_MASSPUSHREQUEST_H_
  18. #include <string>
  19. #include <vector>
  20. #include <alibabacloud/core/RpcServiceRequest.h>
  21. #include <alibabacloud/push/PushExport.h>
  22. namespace AlibabaCloud
  23. {
  24. namespace Push
  25. {
  26. namespace Model
  27. {
  28. class ALIBABACLOUD_PUSH_EXPORT MassPushRequest : public RpcServiceRequest
  29. {
  30. public:
  31. struct PushTask
  32. {
  33. int androidNotificationBarType;
  34. std::string body;
  35. std::string deviceType;
  36. std::string pushTime;
  37. int sendSpeed;
  38. std::string androidNotificationHuaweiChannel;
  39. std::string androidPopupActivity;
  40. std::string iOSRemindBody;
  41. std::string androidNotifyType;
  42. std::string androidPopupTitle;
  43. std::string iOSMusic;
  44. std::string iOSApnsEnv;
  45. bool iOSMutableContent;
  46. int androidNotificationBarPriority;
  47. std::string expireTime;
  48. std::string androidImageUrl;
  49. std::string androidNotificationVivoChannel;
  50. std::string iOSNotificationCategory;
  51. std::string androidNotificationXiaomiChannel;
  52. bool storeOffline;
  53. std::string androidInboxBody;
  54. std::string jobKey;
  55. std::string androidOpenUrl;
  56. std::string androidXiaoMiNotifyBody;
  57. std::string iOSSubtitle;
  58. std::string androidXiaomiBigPictureUrl;
  59. bool iOSRemind;
  60. std::string iOSNotificationThreadId;
  61. std::string androidMusic;
  62. std::string iOSNotificationCollapseId;
  63. std::string pushType;
  64. std::string androidExtParameters;
  65. int iOSBadge;
  66. std::string androidBigBody;
  67. bool iOSBadgeAutoIncrement;
  68. std::string androidOpenType;
  69. std::string title;
  70. std::string androidRenderStyle;
  71. std::string iOSExtParameters;
  72. std::string androidXiaomiImageUrl;
  73. std::string androidPopupBody;
  74. std::string androidBigPictureUrl;
  75. bool iOSSilentNotification;
  76. std::string target;
  77. std::string androidBigTitle;
  78. std::string androidNotificationChannel;
  79. bool androidRemind;
  80. std::string androidActivity;
  81. int androidNotificationNotifyId;
  82. std::string targetValue;
  83. std::string androidXiaoMiNotifyTitle;
  84. std::string androidXiaoMiActivity;
  85. };
  86. public:
  87. MassPushRequest();
  88. ~MassPushRequest();
  89. std::string getAccessKeyId()const;
  90. void setAccessKeyId(const std::string& accessKeyId);
  91. std::vector<PushTask> getPushTask()const;
  92. void setPushTask(const std::vector<PushTask>& pushTask);
  93. long getAppKey()const;
  94. void setAppKey(long appKey);
  95. private:
  96. std::string accessKeyId_;
  97. std::vector<PushTask> pushTask_;
  98. long appKey_;
  99. };
  100. }
  101. }
  102. }
  103. #endif // !ALIBABACLOUD_PUSH_MODEL_MASSPUSHREQUEST_H_