UpdateCasterSceneAudioRequest.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?php
  2. namespace live\Request\V20161101;
  3. /**
  4. * @deprecated Please use https://github.com/aliyun/openapi-sdk-php
  5. *
  6. * Request of UpdateCasterSceneAudio
  7. *
  8. * @method array getAudioLayers()
  9. * @method string getCasterId()
  10. * @method string getSceneId()
  11. * @method array getMixLists()
  12. * @method string getOwnerId()
  13. * @method string getFollowEnable()
  14. */
  15. class UpdateCasterSceneAudioRequest extends \RpcAcsRequest
  16. {
  17. /**
  18. * @var string
  19. */
  20. protected $method = 'POST';
  21. /**
  22. * Class constructor.
  23. */
  24. public function __construct()
  25. {
  26. parent::__construct(
  27. 'live',
  28. '2016-11-01',
  29. 'UpdateCasterSceneAudio',
  30. 'live'
  31. );
  32. }
  33. /**
  34. * @param array $audioLayer
  35. *
  36. * @return $this
  37. */
  38. public function setAudioLayers(array $audioLayer)
  39. {
  40. $this->requestParameters['AudioLayers'] = $audioLayer;
  41. foreach ($audioLayer as $depth1 => $depth1Value) {
  42. $this->queryParameters['AudioLayer.' . ($depth1 + 1) . '.FixedDelayDuration'] = $depth1Value['FixedDelayDuration'];
  43. $this->queryParameters['AudioLayer.' . ($depth1 + 1) . '.VolumeRate'] = $depth1Value['VolumeRate'];
  44. $this->queryParameters['AudioLayer.' . ($depth1 + 1) . '.ValidChannel'] = $depth1Value['ValidChannel'];
  45. }
  46. return $this;
  47. }
  48. /**
  49. * @param string $casterId
  50. *
  51. * @return $this
  52. */
  53. public function setCasterId($casterId)
  54. {
  55. $this->requestParameters['CasterId'] = $casterId;
  56. $this->queryParameters['CasterId'] = $casterId;
  57. return $this;
  58. }
  59. /**
  60. * @param string $sceneId
  61. *
  62. * @return $this
  63. */
  64. public function setSceneId($sceneId)
  65. {
  66. $this->requestParameters['SceneId'] = $sceneId;
  67. $this->queryParameters['SceneId'] = $sceneId;
  68. return $this;
  69. }
  70. /**
  71. * @param array $mixList
  72. *
  73. * @return $this
  74. */
  75. public function setMixLists(array $mixList)
  76. {
  77. $this->requestParameters['MixLists'] = $mixList;
  78. foreach ($mixList as $i => $iValue) {
  79. $this->queryParameters['MixList.' . ($i + 1)] = $iValue;
  80. }
  81. return $this;
  82. }
  83. /**
  84. * @param string $ownerId
  85. *
  86. * @return $this
  87. */
  88. public function setOwnerId($ownerId)
  89. {
  90. $this->requestParameters['OwnerId'] = $ownerId;
  91. $this->queryParameters['OwnerId'] = $ownerId;
  92. return $this;
  93. }
  94. /**
  95. * @param string $followEnable
  96. *
  97. * @return $this
  98. */
  99. public function setFollowEnable($followEnable)
  100. {
  101. $this->requestParameters['FollowEnable'] = $followEnable;
  102. $this->queryParameters['FollowEnable'] = $followEnable;
  103. return $this;
  104. }
  105. }