CreateMPULayoutRequest.cc 2.8 KB

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