1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/. |
4
|
|
|
* |
5
|
|
|
* Copyright (c) 2016-2018 BigBlueButton Inc. and by respective authors (see below). |
6
|
|
|
* |
7
|
|
|
* This program is free software; you can redistribute it and/or modify it under the |
8
|
|
|
* terms of the GNU Lesser General Public License as published by the Free Software |
9
|
|
|
* Foundation; either version 3.0 of the License, or (at your option) any later |
10
|
|
|
* version. |
11
|
|
|
* |
12
|
|
|
* BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY |
13
|
|
|
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
14
|
|
|
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
15
|
|
|
* |
16
|
|
|
* You should have received a copy of the GNU Lesser General Public License along |
17
|
|
|
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>. |
18
|
|
|
*/ |
19
|
|
|
namespace BigBlueButton\Parameters; |
20
|
|
|
|
21
|
|
|
class HooksCreateParameters extends BaseParameters |
22
|
|
|
{ |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var string |
26
|
|
|
*/ |
27
|
|
|
private $callbackUrl; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var string |
31
|
|
|
*/ |
32
|
|
|
private $meetingId; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
private $getRaw; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* HooksCreateParameters constructor. |
41
|
|
|
* |
42
|
|
|
* @param $callbackUrl |
43
|
|
|
*/ |
44
|
|
|
public function __construct($callbackUrl) |
45
|
|
|
{ |
46
|
|
|
$this->callbackUrl = $callbackUrl; |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @return string |
51
|
|
|
*/ |
52
|
|
|
public function getCallbackUrl() |
53
|
|
|
{ |
54
|
|
|
return $this->callbackUrl; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @param string $callbackUrl |
59
|
|
|
* @return HooksCreateParameters |
60
|
|
|
*/ |
61
|
|
|
public function setCallbackUrl($callbackUrl) |
62
|
|
|
{ |
63
|
|
|
$this->callbackUrl = $callbackUrl; |
64
|
|
|
|
65
|
|
|
return $this; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @return string |
70
|
|
|
*/ |
71
|
|
|
public function getMeetingId() |
72
|
|
|
{ |
73
|
|
|
return $this->meetingId; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @param string $meetingId |
78
|
|
|
* @return HooksCreateParameters |
79
|
|
|
*/ |
80
|
|
|
public function setMeetingId($meetingId) |
81
|
|
|
{ |
82
|
|
|
$this->meetingId = $meetingId; |
83
|
|
|
|
84
|
|
|
return $this; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @return string |
89
|
|
|
*/ |
90
|
|
|
public function getRaw() |
91
|
|
|
{ |
92
|
|
|
return $this->getRaw; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @param string $getRaw |
97
|
|
|
* @return HooksCreateParameters |
98
|
|
|
*/ |
99
|
|
|
public function setGetRaw($getRaw) |
100
|
|
|
{ |
101
|
|
|
$this->getRaw = $getRaw; |
102
|
|
|
|
103
|
|
|
return $this; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @return string |
108
|
|
|
*/ |
109
|
|
|
public function getHTTPQuery() |
110
|
|
|
{ |
111
|
|
|
$queries = [ |
112
|
|
|
'callbackURL' => $this->callbackUrl, |
113
|
|
|
'meetingID' => $this->meetingId, |
114
|
|
|
'getRaw' => $this->getRaw |
115
|
|
|
]; |
116
|
|
|
|
117
|
|
|
return $this->buildHTTPQuery($queries); |
118
|
|
|
} |
119
|
|
|
} |
120
|
|
|
|