1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/. |
5
|
|
|
* |
6
|
|
|
* Copyright (c) 2016-2022 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 <http://www.gnu.org/licenses/>. |
19
|
|
|
*/ |
20
|
|
|
|
21
|
|
|
namespace BigBlueButton\Parameters; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Class PublishRecordingsParameters. |
25
|
|
|
*/ |
26
|
|
|
class PublishRecordingsParameters extends BaseParameters |
27
|
|
|
{ |
28
|
|
|
/** |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
private $recordingId; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var bool |
35
|
|
|
*/ |
36
|
|
|
private $publish; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* PublishRecordingsParameters constructor. |
40
|
|
|
* |
41
|
|
|
* @param $recordingId |
42
|
|
|
* @param $publish |
43
|
|
|
*/ |
44
|
|
|
public function __construct($recordingId, $publish) |
45
|
|
|
{ |
46
|
|
|
$this->recordingId = $recordingId; |
47
|
|
|
$this->publish = $publish; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @return string |
52
|
|
|
*/ |
53
|
|
|
public function getRecordingId() |
54
|
|
|
{ |
55
|
|
|
return $this->recordingId; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @param string $recordingId |
60
|
|
|
* |
61
|
|
|
* @return PublishRecordingsParameters |
62
|
|
|
*/ |
63
|
|
|
public function setRecordingId($recordingId) |
64
|
|
|
{ |
65
|
|
|
$this->recordingId = $recordingId; |
66
|
|
|
|
67
|
|
|
return $this; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @return null|bool |
72
|
|
|
*/ |
73
|
|
|
public function isPublish() |
74
|
|
|
{ |
75
|
|
|
return $this->publish; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @param bool $publish |
80
|
|
|
*/ |
81
|
|
|
public function setPublish($publish) |
82
|
|
|
{ |
83
|
|
|
$this->publish = $publish; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @return string |
88
|
|
|
*/ |
89
|
|
|
public function getHTTPQuery() |
90
|
|
|
{ |
91
|
|
|
return $this->buildHTTPQuery( |
92
|
|
|
[ |
93
|
|
|
'recordID' => $this->recordingId, |
94
|
|
|
'publish' => $this->publish ? 'true' : 'false', |
95
|
|
|
] |
96
|
|
|
); |
97
|
|
|
} |
98
|
|
|
} |
99
|
|
|
|