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\Parameters; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Class PublishRecordingsParameters. |
25
|
|
|
*/ |
26
|
|
|
class PublishRecordingsParameters extends BaseParameters |
27
|
|
|
{ |
28
|
|
|
private ?string $recordingId = null; |
29
|
|
|
|
30
|
|
|
private ?bool $publish = null; |
31
|
|
|
|
32
|
|
|
public function __construct(string $recordingId, ?bool $publish = null) |
33
|
|
|
{ |
34
|
|
|
$this->recordingId = $recordingId; |
35
|
|
|
$this->publish = $publish; |
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
public function getRecordingId(): ?string |
39
|
|
|
{ |
40
|
|
|
return $this->recordingId; |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
public function setRecordingId(string $recordingId): self |
44
|
|
|
{ |
45
|
|
|
$this->recordingId = $recordingId; |
46
|
|
|
|
47
|
|
|
return $this; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
public function isPublish(): ?bool |
51
|
|
|
{ |
52
|
|
|
return $this->publish; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
public function setPublish(bool $publish): self |
56
|
|
|
{ |
57
|
|
|
$this->publish = $publish; |
58
|
|
|
|
59
|
|
|
return $this; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
public function getHTTPQuery(): string |
63
|
|
|
{ |
64
|
|
|
return $this->buildHTTPQuery( |
65
|
|
|
[ |
66
|
|
|
'recordID' => $this->recordingId, |
67
|
|
|
'publish' => !is_null($this->publish) ? ($this->publish ? 'true' : 'false') : $this->publish, |
68
|
|
|
] |
69
|
|
|
); |
70
|
|
|
} |
71
|
|
|
} |
72
|
|
|
|