1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/. |
5
|
|
|
* |
6
|
|
|
* Copyright (c) 2016-2024 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\Responses; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Class CreateMeetingResponse. |
25
|
|
|
*/ |
26
|
|
|
class CreateMeetingResponse extends BaseResponse |
27
|
|
|
{ |
28
|
|
|
public function getMeetingId(): string |
29
|
|
|
{ |
30
|
|
|
return $this->rawXml->meetingID->__toString(); |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
public function getInternalMeetingId(): string |
34
|
|
|
{ |
35
|
|
|
return $this->rawXml->internalMeetingID->__toString(); |
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
public function getParentMeetingId(): string |
39
|
|
|
{ |
40
|
|
|
return $this->rawXml->parentMeetingID->__toString(); |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
public function getAttendeePassword(): string |
44
|
|
|
{ |
45
|
|
|
return $this->rawXml->attendeePW->__toString(); |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
public function getModeratorPassword(): string |
49
|
|
|
{ |
50
|
|
|
return $this->rawXml->moderatorPW->__toString(); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* Creation timestamp. |
55
|
|
|
*/ |
56
|
|
|
public function getCreationTime(): float |
57
|
|
|
{ |
58
|
|
|
return (float) $this->rawXml->createTime; |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
public function getVoiceBridge(): int |
62
|
|
|
{ |
63
|
|
|
return (int) $this->rawXml->voiceBridge; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
public function getDialNumber(): string |
67
|
|
|
{ |
68
|
|
|
return $this->rawXml->dialNumber->__toString(); |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* Creation date at the format "Sun Jan 17 18:20:07 EST 2016". |
73
|
|
|
*/ |
74
|
|
|
public function getCreationDate(): string |
75
|
|
|
{ |
76
|
|
|
return $this->rawXml->createDate->__toString(); |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function hasUserJoined(): bool |
80
|
|
|
{ |
81
|
|
|
return 'true' === $this->rawXml->hasUserJoined->__toString(); |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
public function getDuration(): int |
85
|
|
|
{ |
86
|
|
|
return (int) $this->rawXml->duration; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
public function hasBeenForciblyEnded(): bool |
90
|
|
|
{ |
91
|
|
|
return 'true' === $this->rawXml->hasBeenForciblyEnded->__toString(); |
92
|
|
|
} |
93
|
|
|
} |
94
|
|
|
|