1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/. |
5
|
|
|
* |
6
|
|
|
* Copyright (c) 2016-2023 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 PutRecordingTextTrackParameters. |
25
|
|
|
*/ |
26
|
|
|
class PutRecordingTextTrackParameters extends BaseParameters |
27
|
|
|
{ |
28
|
|
|
/** |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
private $recordId; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var string |
35
|
|
|
*/ |
36
|
|
|
private $kind; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var string |
40
|
|
|
*/ |
41
|
|
|
private $lang; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string |
45
|
|
|
*/ |
46
|
|
|
private $label; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* PutRecordingTextTrackParameters constructor. |
50
|
|
|
*/ |
51
|
|
|
public function __construct(string $recordId, string $kind, string $lang, string $label) |
52
|
|
|
{ |
53
|
|
|
$this->recordId = $recordId; |
54
|
|
|
$this->kind = $kind; |
55
|
|
|
$this->lang = $lang; |
56
|
|
|
$this->label = $label; |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @return string |
61
|
|
|
*/ |
62
|
|
|
public function getRecordId() |
63
|
|
|
{ |
64
|
|
|
return $this->recordId; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @param string $recordId |
69
|
|
|
* |
70
|
|
|
* @return PutRecordingTextTrackParameters |
71
|
|
|
*/ |
72
|
|
|
public function setRecordId($recordId) |
73
|
|
|
{ |
74
|
|
|
$this->recordId = $recordId; |
75
|
|
|
|
76
|
|
|
return $this; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return string |
81
|
|
|
*/ |
82
|
|
|
public function getKind() |
83
|
|
|
{ |
84
|
|
|
return $this->kind; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @param string $kind |
89
|
|
|
* |
90
|
|
|
* @return PutRecordingTextTrackParameters |
91
|
|
|
*/ |
92
|
|
|
public function setKind($kind) |
93
|
|
|
{ |
94
|
|
|
$this->kind = $kind; |
95
|
|
|
|
96
|
|
|
return $this; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @return string |
101
|
|
|
*/ |
102
|
|
|
public function getLang() |
103
|
|
|
{ |
104
|
|
|
return $this->lang; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* @param string $lang |
109
|
|
|
* |
110
|
|
|
* @return PutRecordingTextTrackParameters |
111
|
|
|
*/ |
112
|
|
|
public function setLang($lang) |
113
|
|
|
{ |
114
|
|
|
$this->lang = $lang; |
115
|
|
|
|
116
|
|
|
return $this; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @return string |
121
|
|
|
*/ |
122
|
|
|
public function getLabel() |
123
|
|
|
{ |
124
|
|
|
return $this->label; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @param string $label |
129
|
|
|
* |
130
|
|
|
* @return PutRecordingTextTrackParameters |
131
|
|
|
*/ |
132
|
|
|
public function setLabel($label) |
133
|
|
|
{ |
134
|
|
|
$this->label = $label; |
135
|
|
|
|
136
|
|
|
return $this; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* @return string |
141
|
|
|
*/ |
142
|
|
|
public function getHTTPQuery() |
143
|
|
|
{ |
144
|
|
|
$queries = [ |
145
|
|
|
'recordID' => $this->recordId, |
146
|
|
|
'kind' => $this->kind, |
147
|
|
|
'lang' => $this->lang, |
148
|
|
|
'label' => $this->label, |
149
|
|
|
]; |
150
|
|
|
|
151
|
|
|
return $this->buildHTTPQuery($queries); |
152
|
|
|
} |
153
|
|
|
} |
154
|
|
|
|