|
| 1 | +<?php |
| 2 | + |
| 3 | +/* |
| 4 | + * BigBlueButton open source conferencing system - https://www.bigbluebutton.org/. |
| 5 | + * |
| 6 | + * Copyright (c) 2016-2025 BigBlueButton Inc. and by respective authors (see below). |
| 7 | + * |
| 8 | + * This program is free software; you can redistribute it and/or modify it under the |
| 9 | + * terms of the GNU Lesser General Public License as published by the Free Software |
| 10 | + * Foundation; either version 3.0 of the License, or (at your option) any later |
| 11 | + * version. |
| 12 | + * |
| 13 | + * BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY |
| 14 | + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 15 | + * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 16 | + * |
| 17 | + * You should have received a copy of the GNU Lesser General Public License along |
| 18 | + * with BigBlueButton; if not, see <https://www.gnu.org/licenses/>. |
| 19 | + */ |
| 20 | + |
| 21 | +namespace BigBlueButton\Parameters; |
| 22 | + |
| 23 | +use BigBlueButton\Attribute\ApiParameterMapper; |
| 24 | + |
| 25 | +/** |
| 26 | + * Class SendChatMessageParameters. |
| 27 | + */ |
| 28 | +class SendChatMessageParameters extends MetaParameters |
| 29 | +{ |
| 30 | + private string $meetingId; |
| 31 | + |
| 32 | + private string $message; |
| 33 | + |
| 34 | + private ?string $userName = null; |
| 35 | + |
| 36 | + /** |
| 37 | + * CreateMeetingParameters constructor. |
| 38 | + */ |
| 39 | + public function __construct(string $meetingId, string $message) |
| 40 | + { |
| 41 | + $this->meetingId = $meetingId; |
| 42 | + $this->message = $message; |
| 43 | + } |
| 44 | + |
| 45 | + #[ApiParameterMapper(attributeName: 'meetingID')] |
| 46 | + public function getMeetingId(): string |
| 47 | + { |
| 48 | + return $this->meetingId; |
| 49 | + } |
| 50 | + |
| 51 | + public function setMeetingId(string $meetingId): self |
| 52 | + { |
| 53 | + $this->meetingId = $meetingId; |
| 54 | + |
| 55 | + return $this; |
| 56 | + } |
| 57 | + |
| 58 | + #[ApiParameterMapper(attributeName: 'message')] |
| 59 | + public function getMessage(): string |
| 60 | + { |
| 61 | + return $this->message; |
| 62 | + } |
| 63 | + |
| 64 | + public function setMessage(string $message): self |
| 65 | + { |
| 66 | + $this->message = $message; |
| 67 | + |
| 68 | + return $this; |
| 69 | + } |
| 70 | + |
| 71 | + #[ApiParameterMapper(attributeName: 'userName')] |
| 72 | + public function getUserName(): ?string |
| 73 | + { |
| 74 | + return $this->userName; |
| 75 | + } |
| 76 | + |
| 77 | + public function setUserName(string $userName): self |
| 78 | + { |
| 79 | + $this->userName = $userName; |
| 80 | + |
| 81 | + return $this; |
| 82 | + } |
| 83 | + |
| 84 | + public function getHTTPQuery(): string |
| 85 | + { |
| 86 | + $queries = $this->toApiDataArray(); |
| 87 | + $queries = $this->buildMeta($queries); |
| 88 | + |
| 89 | + return $this->buildHTTPQuery($queries); |
| 90 | + } |
| 91 | +} |
0 commit comments