OapiMcsConferenceCreateRequest.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.mcs.conference.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.01.06
  7. */
  8. class OapiMcsConferenceCreateRequest
  9. {
  10. /**
  11. * 由MCS颁发给调用三方的使用凭证
  12. **/
  13. private $bizKey;
  14. /**
  15. * 是否推送通话记录
  16. **/
  17. private $isPushRecord;
  18. /**
  19. * 倾向发起地 目前支持 CN-HZ/CN-HK/CN-BJ
  20. **/
  21. private $preferenceRegion;
  22. /**
  23. * 视频会议从创建之时起的最多保留时间
  24. **/
  25. private $roomValidTime;
  26. /**
  27. * 视频会议标题
  28. **/
  29. private $title;
  30. private $apiParas = array();
  31. public function setBizKey($bizKey)
  32. {
  33. $this->bizKey = $bizKey;
  34. $this->apiParas["biz_key"] = $bizKey;
  35. }
  36. public function getBizKey()
  37. {
  38. return $this->bizKey;
  39. }
  40. public function setIsPushRecord($isPushRecord)
  41. {
  42. $this->isPushRecord = $isPushRecord;
  43. $this->apiParas["is_push_record"] = $isPushRecord;
  44. }
  45. public function getIsPushRecord()
  46. {
  47. return $this->isPushRecord;
  48. }
  49. public function setPreferenceRegion($preferenceRegion)
  50. {
  51. $this->preferenceRegion = $preferenceRegion;
  52. $this->apiParas["preference_region"] = $preferenceRegion;
  53. }
  54. public function getPreferenceRegion()
  55. {
  56. return $this->preferenceRegion;
  57. }
  58. public function setRoomValidTime($roomValidTime)
  59. {
  60. $this->roomValidTime = $roomValidTime;
  61. $this->apiParas["room_valid_time"] = $roomValidTime;
  62. }
  63. public function getRoomValidTime()
  64. {
  65. return $this->roomValidTime;
  66. }
  67. public function setTitle($title)
  68. {
  69. $this->title = $title;
  70. $this->apiParas["title"] = $title;
  71. }
  72. public function getTitle()
  73. {
  74. return $this->title;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "dingtalk.oapi.mcs.conference.create";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->bizKey,"bizKey");
  87. RequestCheckUtil::checkNotNull($this->roomValidTime,"roomValidTime");
  88. RequestCheckUtil::checkNotNull($this->title,"title");
  89. }
  90. public function putOtherTextParam($key, $value) {
  91. $this->apiParas[$key] = $value;
  92. $this->$key = $value;
  93. }
  94. }