ForbidPushStreamRequest.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. namespace live\Request\V20161101;
  3. /**
  4. * @deprecated Please use https://github.com/aliyun/openapi-sdk-php
  5. *
  6. * Request of ForbidPushStream
  7. *
  8. * @method string getUserData()
  9. * @method string getEndTime()
  10. * @method string getOwnerId()
  11. * @method string getRoomId()
  12. * @method string getAppId()
  13. */
  14. class ForbidPushStreamRequest 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. 'ForbidPushStream',
  29. 'live'
  30. );
  31. }
  32. /**
  33. * @param string $userData
  34. *
  35. * @return $this
  36. */
  37. public function setUserData($userData)
  38. {
  39. $this->requestParameters['UserData'] = $userData;
  40. $this->queryParameters['UserData'] = $userData;
  41. return $this;
  42. }
  43. /**
  44. * @param string $endTime
  45. *
  46. * @return $this
  47. */
  48. public function setEndTime($endTime)
  49. {
  50. $this->requestParameters['EndTime'] = $endTime;
  51. $this->queryParameters['EndTime'] = $endTime;
  52. return $this;
  53. }
  54. /**
  55. * @param string $ownerId
  56. *
  57. * @return $this
  58. */
  59. public function setOwnerId($ownerId)
  60. {
  61. $this->requestParameters['OwnerId'] = $ownerId;
  62. $this->queryParameters['OwnerId'] = $ownerId;
  63. return $this;
  64. }
  65. /**
  66. * @param string $roomId
  67. *
  68. * @return $this
  69. */
  70. public function setRoomId($roomId)
  71. {
  72. $this->requestParameters['RoomId'] = $roomId;
  73. $this->queryParameters['RoomId'] = $roomId;
  74. return $this;
  75. }
  76. /**
  77. * @param string $appId
  78. *
  79. * @return $this
  80. */
  81. public function setAppId($appId)
  82. {
  83. $this->requestParameters['AppId'] = $appId;
  84. $this->queryParameters['AppId'] = $appId;
  85. return $this;
  86. }
  87. }