AddCasterEpisodeGroupRequest.php 3.1 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 AddCasterEpisodeGroup
  7. *
  8. * @method string getSideOutputUrl()
  9. * @method array getItems()
  10. * @method string getClientToken()
  11. * @method string getDomainName()
  12. * @method string getStartTime()
  13. * @method string getRepeatNum()
  14. * @method string getCallbackUrl()
  15. * @method string getOwnerId()
  16. */
  17. class AddCasterEpisodeGroupRequest extends \RpcAcsRequest
  18. {
  19. /**
  20. * @var string
  21. */
  22. protected $method = 'POST';
  23. /**
  24. * Class constructor.
  25. */
  26. public function __construct()
  27. {
  28. parent::__construct(
  29. 'live',
  30. '2016-11-01',
  31. 'AddCasterEpisodeGroup',
  32. 'live'
  33. );
  34. }
  35. /**
  36. * @param string $sideOutputUrl
  37. *
  38. * @return $this
  39. */
  40. public function setSideOutputUrl($sideOutputUrl)
  41. {
  42. $this->requestParameters['SideOutputUrl'] = $sideOutputUrl;
  43. $this->queryParameters['SideOutputUrl'] = $sideOutputUrl;
  44. return $this;
  45. }
  46. /**
  47. * @param array $item
  48. *
  49. * @return $this
  50. */
  51. public function setItems(array $item)
  52. {
  53. $this->requestParameters['Items'] = $item;
  54. foreach ($item as $depth1 => $depth1Value) {
  55. $this->queryParameters['Item.' . ($depth1 + 1) . '.VodUrl'] = $depth1Value['VodUrl'];
  56. $this->queryParameters['Item.' . ($depth1 + 1) . '.ItemName'] = $depth1Value['ItemName'];
  57. }
  58. return $this;
  59. }
  60. /**
  61. * @param string $clientToken
  62. *
  63. * @return $this
  64. */
  65. public function setClientToken($clientToken)
  66. {
  67. $this->requestParameters['ClientToken'] = $clientToken;
  68. $this->queryParameters['ClientToken'] = $clientToken;
  69. return $this;
  70. }
  71. /**
  72. * @param string $domainName
  73. *
  74. * @return $this
  75. */
  76. public function setDomainName($domainName)
  77. {
  78. $this->requestParameters['DomainName'] = $domainName;
  79. $this->queryParameters['DomainName'] = $domainName;
  80. return $this;
  81. }
  82. /**
  83. * @param string $startTime
  84. *
  85. * @return $this
  86. */
  87. public function setStartTime($startTime)
  88. {
  89. $this->requestParameters['StartTime'] = $startTime;
  90. $this->queryParameters['StartTime'] = $startTime;
  91. return $this;
  92. }
  93. /**
  94. * @param string $repeatNum
  95. *
  96. * @return $this
  97. */
  98. public function setRepeatNum($repeatNum)
  99. {
  100. $this->requestParameters['RepeatNum'] = $repeatNum;
  101. $this->queryParameters['RepeatNum'] = $repeatNum;
  102. return $this;
  103. }
  104. /**
  105. * @param string $callbackUrl
  106. *
  107. * @return $this
  108. */
  109. public function setCallbackUrl($callbackUrl)
  110. {
  111. $this->requestParameters['CallbackUrl'] = $callbackUrl;
  112. $this->queryParameters['CallbackUrl'] = $callbackUrl;
  113. return $this;
  114. }
  115. /**
  116. * @param string $ownerId
  117. *
  118. * @return $this
  119. */
  120. public function setOwnerId($ownerId)
  121. {
  122. $this->requestParameters['OwnerId'] = $ownerId;
  123. $this->queryParameters['OwnerId'] = $ownerId;
  124. return $this;
  125. }
  126. }