SendRoomUserNotificationRequest.cc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. #include <alibabacloud/live/model/SendRoomUserNotificationRequest.h>
  17. using AlibabaCloud::Live::Model::SendRoomUserNotificationRequest;
  18. SendRoomUserNotificationRequest::SendRoomUserNotificationRequest()
  19. : RpcServiceRequest("live", "2016-11-01", "SendRoomUserNotification") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. SendRoomUserNotificationRequest::~SendRoomUserNotificationRequest() {}
  23. std::string SendRoomUserNotificationRequest::getData() const {
  24. return data_;
  25. }
  26. void SendRoomUserNotificationRequest::setData(const std::string &data) {
  27. data_ = data;
  28. setParameter(std::string("Data"), data);
  29. }
  30. std::string SendRoomUserNotificationRequest::getToAppUid() const {
  31. return toAppUid_;
  32. }
  33. void SendRoomUserNotificationRequest::setToAppUid(const std::string &toAppUid) {
  34. toAppUid_ = toAppUid;
  35. setParameter(std::string("ToAppUid"), toAppUid);
  36. }
  37. std::string SendRoomUserNotificationRequest::getAppUid() const {
  38. return appUid_;
  39. }
  40. void SendRoomUserNotificationRequest::setAppUid(const std::string &appUid) {
  41. appUid_ = appUid;
  42. setParameter(std::string("AppUid"), appUid);
  43. }
  44. long SendRoomUserNotificationRequest::getOwnerId() const {
  45. return ownerId_;
  46. }
  47. void SendRoomUserNotificationRequest::setOwnerId(long ownerId) {
  48. ownerId_ = ownerId;
  49. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  50. }
  51. int SendRoomUserNotificationRequest::getPriority() const {
  52. return priority_;
  53. }
  54. void SendRoomUserNotificationRequest::setPriority(int priority) {
  55. priority_ = priority;
  56. setParameter(std::string("Priority"), std::to_string(priority));
  57. }
  58. std::string SendRoomUserNotificationRequest::getRoomId() const {
  59. return roomId_;
  60. }
  61. void SendRoomUserNotificationRequest::setRoomId(const std::string &roomId) {
  62. roomId_ = roomId;
  63. setParameter(std::string("RoomId"), roomId);
  64. }
  65. std::string SendRoomUserNotificationRequest::getAppId() const {
  66. return appId_;
  67. }
  68. void SendRoomUserNotificationRequest::setAppId(const std::string &appId) {
  69. appId_ = appId;
  70. setParameter(std::string("AppId"), appId);
  71. }