UpdateCasterSceneConfigRequest.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php
  2. namespace live\Request\V20161101;
  3. /**
  4. * @deprecated Please use https://github.com/aliyun/openapi-sdk-php
  5. *
  6. * Request of UpdateCasterSceneConfig
  7. *
  8. * @method array getComponentIds()
  9. * @method string getCasterId()
  10. * @method string getSceneId()
  11. * @method string getOwnerId()
  12. * @method string getLayoutId()
  13. */
  14. class UpdateCasterSceneConfigRequest extends \RpcAcsRequest
  15. {
  16. /**
  17. * @var string
  18. */
  19. protected $method = 'POST';
  20. /**
  21. * Class constructor.
  22. */
  23. public function __construct()
  24. {
  25. parent::__construct(
  26. 'live',
  27. '2016-11-01',
  28. 'UpdateCasterSceneConfig',
  29. 'live'
  30. );
  31. }
  32. /**
  33. * @param array $componentId
  34. *
  35. * @return $this
  36. */
  37. public function setComponentIds(array $componentId)
  38. {
  39. $this->requestParameters['ComponentIds'] = $componentId;
  40. foreach ($componentId as $i => $iValue) {
  41. $this->queryParameters['ComponentId.' . ($i + 1)] = $iValue;
  42. }
  43. return $this;
  44. }
  45. /**
  46. * @param string $casterId
  47. *
  48. * @return $this
  49. */
  50. public function setCasterId($casterId)
  51. {
  52. $this->requestParameters['CasterId'] = $casterId;
  53. $this->queryParameters['CasterId'] = $casterId;
  54. return $this;
  55. }
  56. /**
  57. * @param string $sceneId
  58. *
  59. * @return $this
  60. */
  61. public function setSceneId($sceneId)
  62. {
  63. $this->requestParameters['SceneId'] = $sceneId;
  64. $this->queryParameters['SceneId'] = $sceneId;
  65. return $this;
  66. }
  67. /**
  68. * @param string $ownerId
  69. *
  70. * @return $this
  71. */
  72. public function setOwnerId($ownerId)
  73. {
  74. $this->requestParameters['OwnerId'] = $ownerId;
  75. $this->queryParameters['OwnerId'] = $ownerId;
  76. return $this;
  77. }
  78. /**
  79. * @param string $layoutId
  80. *
  81. * @return $this
  82. */
  83. public function setLayoutId($layoutId)
  84. {
  85. $this->requestParameters['LayoutId'] = $layoutId;
  86. $this->queryParameters['LayoutId'] = $layoutId;
  87. return $this;
  88. }
  89. }