ModifyCasterLayoutRequest.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. namespace live\Request\V20161101;
  3. /**
  4. * @deprecated Please use https://github.com/aliyun/openapi-sdk-php
  5. *
  6. * Request of ModifyCasterLayout
  7. *
  8. * @method array getBlendLists()
  9. * @method array getAudioLayers()
  10. * @method array getVideoLayers()
  11. * @method string getCasterId()
  12. * @method array getMixLists()
  13. * @method string getOwnerId()
  14. * @method string getLayoutId()
  15. */
  16. class ModifyCasterLayoutRequest extends \RpcAcsRequest
  17. {
  18. /**
  19. * @var string
  20. */
  21. protected $method = 'POST';
  22. /**
  23. * Class constructor.
  24. */
  25. public function __construct()
  26. {
  27. parent::__construct(
  28. 'live',
  29. '2016-11-01',
  30. 'ModifyCasterLayout',
  31. 'live'
  32. );
  33. }
  34. /**
  35. * @param array $blendList
  36. *
  37. * @return $this
  38. */
  39. public function setBlendLists(array $blendList)
  40. {
  41. $this->requestParameters['BlendLists'] = $blendList;
  42. foreach ($blendList as $i => $iValue) {
  43. $this->queryParameters['BlendList.' . ($i + 1)] = $iValue;
  44. }
  45. return $this;
  46. }
  47. /**
  48. * @param array $audioLayer
  49. *
  50. * @return $this
  51. */
  52. public function setAudioLayers(array $audioLayer)
  53. {
  54. $this->requestParameters['AudioLayers'] = $audioLayer;
  55. foreach ($audioLayer as $depth1 => $depth1Value) {
  56. $this->queryParameters['AudioLayer.' . ($depth1 + 1) . '.FixedDelayDuration'] = $depth1Value['FixedDelayDuration'];
  57. $this->queryParameters['AudioLayer.' . ($depth1 + 1) . '.VolumeRate'] = $depth1Value['VolumeRate'];
  58. $this->queryParameters['AudioLayer.' . ($depth1 + 1) . '.ValidChannel'] = $depth1Value['ValidChannel'];
  59. }
  60. return $this;
  61. }
  62. /**
  63. * @param array $videoLayer
  64. *
  65. * @return $this
  66. */
  67. public function setVideoLayers(array $videoLayer)
  68. {
  69. $this->requestParameters['VideoLayers'] = $videoLayer;
  70. foreach ($videoLayer as $depth1 => $depth1Value) {
  71. $this->queryParameters['VideoLayer.' . ($depth1 + 1) . '.FillMode'] = $depth1Value['FillMode'];
  72. $this->queryParameters['VideoLayer.' . ($depth1 + 1) . '.WidthNormalized'] = $depth1Value['WidthNormalized'];
  73. $this->queryParameters['VideoLayer.' . ($depth1 + 1) . '.FixedDelayDuration'] = $depth1Value['FixedDelayDuration'];
  74. $this->queryParameters['VideoLayer.' . ($depth1 + 1) . '.PositionRefer'] = $depth1Value['PositionRefer'];
  75. foreach ($depth1Value['PositionNormalized'] as $i => $iValue) {
  76. $this->queryParameters['VideoLayer.' . ($depth1 + 1) . '.PositionNormalized.' . ($i + 1)] = $iValue;
  77. }
  78. $this->queryParameters['VideoLayer.' . ($depth1 + 1) . '.HeightNormalized'] = $depth1Value['HeightNormalized'];
  79. }
  80. return $this;
  81. }
  82. /**
  83. * @param string $casterId
  84. *
  85. * @return $this
  86. */
  87. public function setCasterId($casterId)
  88. {
  89. $this->requestParameters['CasterId'] = $casterId;
  90. $this->queryParameters['CasterId'] = $casterId;
  91. return $this;
  92. }
  93. /**
  94. * @param array $mixList
  95. *
  96. * @return $this
  97. */
  98. public function setMixLists(array $mixList)
  99. {
  100. $this->requestParameters['MixLists'] = $mixList;
  101. foreach ($mixList as $i => $iValue) {
  102. $this->queryParameters['MixList.' . ($i + 1)] = $iValue;
  103. }
  104. return $this;
  105. }
  106. /**
  107. * @param string $ownerId
  108. *
  109. * @return $this
  110. */
  111. public function setOwnerId($ownerId)
  112. {
  113. $this->requestParameters['OwnerId'] = $ownerId;
  114. $this->queryParameters['OwnerId'] = $ownerId;
  115. return $this;
  116. }
  117. /**
  118. * @param string $layoutId
  119. *
  120. * @return $this
  121. */
  122. public function setLayoutId($layoutId)
  123. {
  124. $this->requestParameters['LayoutId'] = $layoutId;
  125. $this->queryParameters['LayoutId'] = $layoutId;
  126. return $this;
  127. }
  128. }