|
45 | 45 | use BigBlueButton\Parameters\JoinMeetingParameters; |
46 | 46 | use BigBlueButton\Parameters\PublishRecordingsParameters; |
47 | 47 | use BigBlueButton\Parameters\PutRecordingTextTrackParameters; |
| 48 | +use BigBlueButton\Parameters\SendChatMessageParameters; |
48 | 49 | use BigBlueButton\Parameters\UpdateRecordingsParameters; |
49 | 50 | use BigBlueButton\Responses\ApiVersionResponse; |
50 | 51 | use BigBlueButton\Responses\CreateMeetingResponse; |
|
62 | 63 | use BigBlueButton\Responses\JoinMeetingResponse; |
63 | 64 | use BigBlueButton\Responses\PublishRecordingsResponse; |
64 | 65 | use BigBlueButton\Responses\PutRecordingTextTrackResponse; |
| 66 | +use BigBlueButton\Responses\SendChatMessageResponse; |
65 | 67 | use BigBlueButton\Responses\UpdateRecordingsResponse; |
66 | 68 | use BigBlueButton\Util\UrlBuilder; |
67 | 69 |
|
@@ -478,6 +480,23 @@ public function insertDocument(InsertDocumentParameters $insertDocumentParams): |
478 | 480 | return new InsertDocumentResponse($xml); |
479 | 481 | } |
480 | 482 |
|
| 483 | + public function getSendChatMessageUrl(SendChatMessageParameters $sendChatMessageParams): string |
| 484 | + { |
| 485 | + return $this->urlBuilder->buildUrl(ApiMethod::SEND_CHAT_MESSAGE, $sendChatMessageParams->getHTTPQuery()); |
| 486 | + } |
| 487 | + |
| 488 | + /** |
| 489 | + * @throws NetworkException |
| 490 | + * @throws ParsingException |
| 491 | + * @throws RuntimeException |
| 492 | + */ |
| 493 | + public function getSendChatMessage(SendChatMessageParameters $sendChatMessageParams): SendChatMessageResponse |
| 494 | + { |
| 495 | + $xml = $this->processXmlResponse($this->getSendChatMessageUrl($sendChatMessageParams)); |
| 496 | + |
| 497 | + return new SendChatMessageResponse($xml); |
| 498 | + } |
| 499 | + |
481 | 500 | /* ____________________ SPECIAL METHODS ___________________ */ |
482 | 501 |
|
483 | 502 | public function getJSessionId(): ?string |
|
0 commit comments