OapiEduHomeworkStudentCommentUpdateRequest.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.edu.homework.student.comment.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.04.29
  7. */
  8. class OapiEduHomeworkStudentCommentUpdateRequest
  9. {
  10. /**
  11. * 扩展属性
  12. **/
  13. private $attributes;
  14. /**
  15. * 业务编码
  16. **/
  17. private $bizCode;
  18. /**
  19. * 班级ID
  20. **/
  21. private $classId;
  22. /**
  23. * 评论内容
  24. **/
  25. private $comment;
  26. /**
  27. * 评论ID
  28. **/
  29. private $commentId;
  30. /**
  31. * 作业ID
  32. **/
  33. private $hwId;
  34. /**
  35. * 视频
  36. **/
  37. private $media;
  38. /**
  39. * 图片
  40. **/
  41. private $photo;
  42. /**
  43. * 学生ID
  44. **/
  45. private $studentId;
  46. /**
  47. * 学生姓名
  48. **/
  49. private $studentName;
  50. /**
  51. * 老师UserId
  52. **/
  53. private $teacherUserid;
  54. /**
  55. * 音频
  56. **/
  57. private $video;
  58. private $apiParas = array();
  59. public function setAttributes($attributes)
  60. {
  61. $this->attributes = $attributes;
  62. $this->apiParas["attributes"] = $attributes;
  63. }
  64. public function getAttributes()
  65. {
  66. return $this->attributes;
  67. }
  68. public function setBizCode($bizCode)
  69. {
  70. $this->bizCode = $bizCode;
  71. $this->apiParas["biz_code"] = $bizCode;
  72. }
  73. public function getBizCode()
  74. {
  75. return $this->bizCode;
  76. }
  77. public function setClassId($classId)
  78. {
  79. $this->classId = $classId;
  80. $this->apiParas["class_id"] = $classId;
  81. }
  82. public function getClassId()
  83. {
  84. return $this->classId;
  85. }
  86. public function setComment($comment)
  87. {
  88. $this->comment = $comment;
  89. $this->apiParas["comment"] = $comment;
  90. }
  91. public function getComment()
  92. {
  93. return $this->comment;
  94. }
  95. public function setCommentId($commentId)
  96. {
  97. $this->commentId = $commentId;
  98. $this->apiParas["comment_id"] = $commentId;
  99. }
  100. public function getCommentId()
  101. {
  102. return $this->commentId;
  103. }
  104. public function setHwId($hwId)
  105. {
  106. $this->hwId = $hwId;
  107. $this->apiParas["hw_id"] = $hwId;
  108. }
  109. public function getHwId()
  110. {
  111. return $this->hwId;
  112. }
  113. public function setMedia($media)
  114. {
  115. $this->media = $media;
  116. $this->apiParas["media"] = $media;
  117. }
  118. public function getMedia()
  119. {
  120. return $this->media;
  121. }
  122. public function setPhoto($photo)
  123. {
  124. $this->photo = $photo;
  125. $this->apiParas["photo"] = $photo;
  126. }
  127. public function getPhoto()
  128. {
  129. return $this->photo;
  130. }
  131. public function setStudentId($studentId)
  132. {
  133. $this->studentId = $studentId;
  134. $this->apiParas["student_id"] = $studentId;
  135. }
  136. public function getStudentId()
  137. {
  138. return $this->studentId;
  139. }
  140. public function setStudentName($studentName)
  141. {
  142. $this->studentName = $studentName;
  143. $this->apiParas["student_name"] = $studentName;
  144. }
  145. public function getStudentName()
  146. {
  147. return $this->studentName;
  148. }
  149. public function setTeacherUserid($teacherUserid)
  150. {
  151. $this->teacherUserid = $teacherUserid;
  152. $this->apiParas["teacher_userid"] = $teacherUserid;
  153. }
  154. public function getTeacherUserid()
  155. {
  156. return $this->teacherUserid;
  157. }
  158. public function setVideo($video)
  159. {
  160. $this->video = $video;
  161. $this->apiParas["video"] = $video;
  162. }
  163. public function getVideo()
  164. {
  165. return $this->video;
  166. }
  167. public function getApiMethodName()
  168. {
  169. return "dingtalk.oapi.edu.homework.student.comment.update";
  170. }
  171. public function getApiParas()
  172. {
  173. return $this->apiParas;
  174. }
  175. public function check()
  176. {
  177. RequestCheckUtil::checkNotNull($this->bizCode,"bizCode");
  178. RequestCheckUtil::checkNotNull($this->classId,"classId");
  179. RequestCheckUtil::checkNotNull($this->commentId,"commentId");
  180. RequestCheckUtil::checkNotNull($this->studentId,"studentId");
  181. RequestCheckUtil::checkNotNull($this->teacherUserid,"teacherUserid");
  182. }
  183. public function putOtherTextParam($key, $value) {
  184. $this->apiParas[$key] = $value;
  185. $this->$key = $value;
  186. }
  187. }