UpdateMPULayoutRequest.cc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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/UpdateMPULayoutRequest.h>
  17. using AlibabaCloud::Rtc::Model::UpdateMPULayoutRequest;
  18. UpdateMPULayoutRequest::UpdateMPULayoutRequest() :
  19. RpcServiceRequest("rtc", "2018-01-11", "UpdateMPULayout")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. UpdateMPULayoutRequest::~UpdateMPULayoutRequest()
  24. {}
  25. std::vector<UpdateMPULayoutRequest::UserPanes> UpdateMPULayoutRequest::getUserPanes()const
  26. {
  27. return userPanes_;
  28. }
  29. void UpdateMPULayoutRequest::setUserPanes(const std::vector<UserPanes>& userPanes)
  30. {
  31. userPanes_ = userPanes;
  32. for(int dep1 = 0; dep1!= userPanes.size(); dep1++) {
  33. auto userPanesObj = userPanes.at(dep1);
  34. std::string userPanesObjStr = "UserPanes." + std::to_string(dep1 + 1);
  35. setParameter(userPanesObjStr + ".PaneId", std::to_string(userPanesObj.paneId));
  36. setParameter(userPanesObjStr + ".UserId", userPanesObj.userId);
  37. setParameter(userPanesObjStr + ".SourceType", userPanesObj.sourceType);
  38. }
  39. }
  40. int UpdateMPULayoutRequest::getBackgroundColor()const
  41. {
  42. return backgroundColor_;
  43. }
  44. void UpdateMPULayoutRequest::setBackgroundColor(int backgroundColor)
  45. {
  46. backgroundColor_ = backgroundColor;
  47. setParameter("BackgroundColor", std::to_string(backgroundColor));
  48. }
  49. int UpdateMPULayoutRequest::getCropMode()const
  50. {
  51. return cropMode_;
  52. }
  53. void UpdateMPULayoutRequest::setCropMode(int cropMode)
  54. {
  55. cropMode_ = cropMode;
  56. setParameter("CropMode", std::to_string(cropMode));
  57. }
  58. std::vector<long> UpdateMPULayoutRequest::getLayoutIds()const
  59. {
  60. return layoutIds_;
  61. }
  62. void UpdateMPULayoutRequest::setLayoutIds(const std::vector<long>& layoutIds)
  63. {
  64. layoutIds_ = layoutIds;
  65. for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) {
  66. setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1)));
  67. }
  68. }
  69. std::string UpdateMPULayoutRequest::getTaskId()const
  70. {
  71. return taskId_;
  72. }
  73. void UpdateMPULayoutRequest::setTaskId(const std::string& taskId)
  74. {
  75. taskId_ = taskId;
  76. setParameter("TaskId", taskId);
  77. }
  78. long UpdateMPULayoutRequest::getOwnerId()const
  79. {
  80. return ownerId_;
  81. }
  82. void UpdateMPULayoutRequest::setOwnerId(long ownerId)
  83. {
  84. ownerId_ = ownerId;
  85. setParameter("OwnerId", std::to_string(ownerId));
  86. }
  87. std::string UpdateMPULayoutRequest::getAppId()const
  88. {
  89. return appId_;
  90. }
  91. void UpdateMPULayoutRequest::setAppId(const std::string& appId)
  92. {
  93. appId_ = appId;
  94. setParameter("AppId", appId);
  95. }