JoinMessageGroupRequest.cc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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/JoinMessageGroupRequest.h>
  17. using AlibabaCloud::Live::Model::JoinMessageGroupRequest;
  18. JoinMessageGroupRequest::JoinMessageGroupRequest()
  19. : RpcServiceRequest("live", "2016-11-01", "JoinMessageGroup") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. JoinMessageGroupRequest::~JoinMessageGroupRequest() {}
  23. bool JoinMessageGroupRequest::getBroadCastStatistics() const {
  24. return broadCastStatistics_;
  25. }
  26. void JoinMessageGroupRequest::setBroadCastStatistics(bool broadCastStatistics) {
  27. broadCastStatistics_ = broadCastStatistics;
  28. setBodyParameter(std::string("BroadCastStatistics"), broadCastStatistics ? "true" : "false");
  29. }
  30. std::string JoinMessageGroupRequest::getGroupId() const {
  31. return groupId_;
  32. }
  33. void JoinMessageGroupRequest::setGroupId(const std::string &groupId) {
  34. groupId_ = groupId;
  35. setBodyParameter(std::string("GroupId"), groupId);
  36. }
  37. std::string JoinMessageGroupRequest::getUserId() const {
  38. return userId_;
  39. }
  40. void JoinMessageGroupRequest::setUserId(const std::string &userId) {
  41. userId_ = userId;
  42. setBodyParameter(std::string("UserId"), userId);
  43. }
  44. std::string JoinMessageGroupRequest::getAppId() const {
  45. return appId_;
  46. }
  47. void JoinMessageGroupRequest::setAppId(const std::string &appId) {
  48. appId_ = appId;
  49. setBodyParameter(std::string("AppId"), appId);
  50. }
  51. int JoinMessageGroupRequest::getBroadCastType() const {
  52. return broadCastType_;
  53. }
  54. void JoinMessageGroupRequest::setBroadCastType(int broadCastType) {
  55. broadCastType_ = broadCastType;
  56. setBodyParameter(std::string("BroadCastType"), std::to_string(broadCastType));
  57. }