SetCasterChannelRequest.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. namespace live\Request\V20161101;
  3. /**
  4. * @deprecated Please use https://github.com/aliyun/openapi-sdk-php
  5. *
  6. * Request of SetCasterChannel
  7. *
  8. * @method string getResourceId()
  9. * @method string getPlayStatus()
  10. * @method string getCasterId()
  11. * @method string getOwnerId()
  12. * @method string getSeekOffset()
  13. * @method string getChannelId()
  14. */
  15. class SetCasterChannelRequest 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. 'SetCasterChannel',
  30. 'live'
  31. );
  32. }
  33. /**
  34. * @param string $resourceId
  35. *
  36. * @return $this
  37. */
  38. public function setResourceId($resourceId)
  39. {
  40. $this->requestParameters['ResourceId'] = $resourceId;
  41. $this->queryParameters['ResourceId'] = $resourceId;
  42. return $this;
  43. }
  44. /**
  45. * @param string $playStatus
  46. *
  47. * @return $this
  48. */
  49. public function setPlayStatus($playStatus)
  50. {
  51. $this->requestParameters['PlayStatus'] = $playStatus;
  52. $this->queryParameters['PlayStatus'] = $playStatus;
  53. return $this;
  54. }
  55. /**
  56. * @param string $casterId
  57. *
  58. * @return $this
  59. */
  60. public function setCasterId($casterId)
  61. {
  62. $this->requestParameters['CasterId'] = $casterId;
  63. $this->queryParameters['CasterId'] = $casterId;
  64. return $this;
  65. }
  66. /**
  67. * @param string $ownerId
  68. *
  69. * @return $this
  70. */
  71. public function setOwnerId($ownerId)
  72. {
  73. $this->requestParameters['OwnerId'] = $ownerId;
  74. $this->queryParameters['OwnerId'] = $ownerId;
  75. return $this;
  76. }
  77. /**
  78. * @param string $seekOffset
  79. *
  80. * @return $this
  81. */
  82. public function setSeekOffset($seekOffset)
  83. {
  84. $this->requestParameters['SeekOffset'] = $seekOffset;
  85. $this->queryParameters['SeekOffset'] = $seekOffset;
  86. return $this;
  87. }
  88. /**
  89. * @param string $channelId
  90. *
  91. * @return $this
  92. */
  93. public function setChannelId($channelId)
  94. {
  95. $this->requestParameters['ChannelId'] = $channelId;
  96. $this->queryParameters['ChannelId'] = $channelId;
  97. return $this;
  98. }
  99. }