CreateMPULayoutRequest.cc 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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/rtc/model/CreateMPULayoutRequest.h>
  17. using AlibabaCloud::Rtc::Model::CreateMPULayoutRequest;
  18. CreateMPULayoutRequest::CreateMPULayoutRequest()
  19. : RpcServiceRequest("rtc", "2018-01-11", "CreateMPULayout") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateMPULayoutRequest::~CreateMPULayoutRequest() {}
  23. std::vector<CreateMPULayoutRequest::Panes> CreateMPULayoutRequest::getPanes() const {
  24. return panes_;
  25. }
  26. void CreateMPULayoutRequest::setPanes(const std::vector<CreateMPULayoutRequest::Panes> &panes) {
  27. panes_ = panes;
  28. for(int dep1 = 0; dep1 != panes.size(); dep1++) {
  29. auto panesObj = panes.at(dep1);
  30. std::string panesObjStr = std::string("Panes") + "." + std::to_string(dep1 + 1);
  31. setParameter(panesObjStr + ".MajorPane", std::to_string(panesObj.majorPane));
  32. setParameter(panesObjStr + ".Width", std::to_string(panesObj.width));
  33. setParameter(panesObjStr + ".Height", std::to_string(panesObj.height));
  34. setParameter(panesObjStr + ".Y", std::to_string(panesObj.y));
  35. setParameter(panesObjStr + ".PaneId", std::to_string(panesObj.paneId));
  36. setParameter(panesObjStr + ".ZOrder", std::to_string(panesObj.zOrder));
  37. setParameter(panesObjStr + ".X", std::to_string(panesObj.x));
  38. }
  39. }
  40. std::string CreateMPULayoutRequest::getShowLog() const {
  41. return showLog_;
  42. }
  43. void CreateMPULayoutRequest::setShowLog(const std::string &showLog) {
  44. showLog_ = showLog;
  45. setParameter(std::string("ShowLog"), showLog);
  46. }
  47. long CreateMPULayoutRequest::getOwnerId() const {
  48. return ownerId_;
  49. }
  50. void CreateMPULayoutRequest::setOwnerId(long ownerId) {
  51. ownerId_ = ownerId;
  52. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  53. }
  54. std::string CreateMPULayoutRequest::getAppId() const {
  55. return appId_;
  56. }
  57. void CreateMPULayoutRequest::setAppId(const std::string &appId) {
  58. appId_ = appId;
  59. setParameter(std::string("AppId"), appId);
  60. }
  61. std::string CreateMPULayoutRequest::getName() const {
  62. return name_;
  63. }
  64. void CreateMPULayoutRequest::setName(const std::string &name) {
  65. name_ = name;
  66. setParameter(std::string("Name"), name);
  67. }
  68. int CreateMPULayoutRequest::getAudioMixCount() const {
  69. return audioMixCount_;
  70. }
  71. void CreateMPULayoutRequest::setAudioMixCount(int audioMixCount) {
  72. audioMixCount_ = audioMixCount;
  73. setParameter(std::string("AudioMixCount"), std::to_string(audioMixCount));
  74. }