CreateRoomRequest.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 CreateRoom
  7. *
  8. * @method string getTemplateIds()
  9. * @method string getAnchorId()
  10. * @method string getUseAppTranscode()
  11. * @method string getOwnerId()
  12. * @method string getRoomId()
  13. * @method string getAppId()
  14. */
  15. class CreateRoomRequest 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. 'CreateRoom',
  30. 'live'
  31. );
  32. }
  33. /**
  34. * @param string $templateIds
  35. *
  36. * @return $this
  37. */
  38. public function setTemplateIds($templateIds)
  39. {
  40. $this->requestParameters['TemplateIds'] = $templateIds;
  41. $this->queryParameters['TemplateIds'] = $templateIds;
  42. return $this;
  43. }
  44. /**
  45. * @param string $anchorId
  46. *
  47. * @return $this
  48. */
  49. public function setAnchorId($anchorId)
  50. {
  51. $this->requestParameters['AnchorId'] = $anchorId;
  52. $this->queryParameters['AnchorId'] = $anchorId;
  53. return $this;
  54. }
  55. /**
  56. * @param string $useAppTranscode
  57. *
  58. * @return $this
  59. */
  60. public function setUseAppTranscode($useAppTranscode)
  61. {
  62. $this->requestParameters['UseAppTranscode'] = $useAppTranscode;
  63. $this->queryParameters['UseAppTranscode'] = $useAppTranscode;
  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 $roomId
  79. *
  80. * @return $this
  81. */
  82. public function setRoomId($roomId)
  83. {
  84. $this->requestParameters['RoomId'] = $roomId;
  85. $this->queryParameters['RoomId'] = $roomId;
  86. return $this;
  87. }
  88. /**
  89. * @param string $appId
  90. *
  91. * @return $this
  92. */
  93. public function setAppId($appId)
  94. {
  95. $this->requestParameters['AppId'] = $appId;
  96. $this->queryParameters['AppId'] = $appId;
  97. return $this;
  98. }
  99. }