Skip to content

Commit e441f2e

Browse files
committed
Start working on nullable types for API parameters.
1 parent 8a68b2e commit e441f2e

File tree

1 file changed

+60
-60
lines changed

1 file changed

+60
-60
lines changed

src/Parameters/CreateMeetingParameters.php

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -42,275 +42,275 @@ class CreateMeetingParameters extends MetaParameters
4242
*
4343
* @deprecated
4444
*/
45-
private $attendeePassword;
45+
private ?string $attendeePassword = null;
4646

4747
/**
4848
* @var string
4949
*
5050
* @deprecated
5151
*/
52-
private $moderatorPassword;
52+
private ?string $moderatorPassword = null;
5353

5454
/**
5555
* @var string
5656
*/
57-
private $dialNumber;
57+
private ?string $dialNumber = null;
5858

5959
/**
6060
* @var int
6161
*/
62-
private $voiceBridge;
62+
private ?int $voiceBridge = null;
6363

6464
/**
6565
* @var string
6666
*/
67-
private $webVoice;
67+
private ?string $webVoice = null;
6868

6969
/**
7070
* @var string
7171
*/
72-
private $logoutUrl;
72+
private ?string $logoutUrl = null;
7373

7474
/**
7575
* @var int
7676
*/
77-
private $maxParticipants;
77+
private ?int $maxParticipants = null;
7878

7979
/**
8080
* @var bool
8181
*/
82-
private $record;
82+
private ?bool $record = null;
8383

8484
/**
8585
* @var bool
8686
*/
87-
private $autoStartRecording;
87+
private ?bool $autoStartRecording = null;
8888

8989
/**
9090
* @var bool
9191
*/
92-
private $allowStartStopRecording;
92+
private ?bool $allowStartStopRecording = null;
9393

9494
/**
9595
* @var int
9696
*/
97-
private $duration;
97+
private ?int $duration = null;
9898

9999
/**
100100
* @var string
101101
*/
102-
private $welcomeMessage;
102+
private ?string $welcomeMessage = null;
103103

104104
/**
105105
* @var string
106106
*/
107-
private $moderatorOnlyMessage;
107+
private ?string $moderatorOnlyMessage = null;
108108

109109
/**
110110
* @var bool
111111
*/
112-
private $webcamsOnlyForModerator;
112+
private ?bool $webcamsOnlyForModerator = null;
113113

114114
/**
115115
* @var string
116116
*/
117-
private $logo;
117+
private ?string $logo = null;
118118

119119
/**
120120
* @var string
121121
*/
122-
private $copyright;
122+
private ?string $copyright = null;
123123

124124
/**
125125
* @var bool
126126
*/
127-
private $muteOnStart;
127+
private ?bool $muteOnStart = null;
128128

129129
/**
130130
* @var bool
131131
*/
132-
private $lockSettingsDisableCam;
132+
private ?bool $lockSettingsDisableCam = null;
133133

134134
/**
135135
* @var bool
136136
*/
137-
private $lockSettingsDisableMic;
137+
private ?bool $lockSettingsDisableMic = null;
138138

139139
/**
140140
* @var bool
141141
*/
142-
private $lockSettingsDisablePrivateChat;
142+
private ?bool $lockSettingsDisablePrivateChat = null;
143143

144144
/**
145145
* @var bool
146146
*/
147-
private $lockSettingsDisablePublicChat;
147+
private ?bool $lockSettingsDisablePublicChat = null;
148148

149149
/**
150150
* @var bool
151151
*/
152-
private $lockSettingsDisableNote;
152+
private ?bool $lockSettingsDisableNote = null;
153153

154154
/**
155155
* @var bool
156156
*/
157-
private $lockSettingsHideUserList;
157+
private ?bool $lockSettingsHideUserList = null;
158158

159159
/**
160160
* @var bool
161161
*/
162-
private $lockSettingsLockedLayout;
162+
private ?bool $lockSettingsLockedLayout = null;
163163

164164
/**
165165
* @var bool
166166
*/
167-
private $lockSettingsLockOnJoin = true;
167+
private ?bool $lockSettingsLockOnJoin = null;
168168

169169
/**
170170
* @var bool
171171
*/
172-
private $lockSettingsLockOnJoinConfigurable;
172+
private ?bool $lockSettingsLockOnJoinConfigurable = null;
173173

174174
/**
175175
* @var bool
176176
*/
177-
private $lockSettingsHideViewersCursor;
177+
private ?bool $lockSettingsHideViewersCursor = null;
178178

179179
/**
180180
* @var bool
181181
*/
182-
private $allowModsToUnmuteUsers;
182+
private ?bool $allowModsToUnmuteUsers = null;
183183

184184
/**
185185
* @var bool
186186
*/
187-
private $allowModsToEjectCameras;
187+
private ?bool $allowModsToEjectCameras = null;
188188

189189
/**
190190
* @var bool
191191
*/
192-
private $allowRequestsWithoutSession;
192+
private ?bool $allowRequestsWithoutSession = null;
193193

194194
/**
195195
* @var bool
196196
*/
197-
private $isBreakout;
197+
private ?bool $isBreakout = null;
198198

199199
/**
200200
* @var string
201201
*/
202-
private $parentMeetingId;
202+
private ?string $parentMeetingId = null;
203203

204204
/**
205205
* @var int
206206
*/
207-
private $sequence;
207+
private ?int $sequence = null;
208208

209209
/**
210210
* @var bool
211211
*/
212-
private $freeJoin;
212+
private ?bool $freeJoin = null;
213213

214214
/**
215215
* @var string
216216
*/
217-
private $guestPolicy;
217+
private ?string $guestPolicy = null;
218218

219219
/**
220220
* @var string
221221
*/
222-
private $bannerText;
222+
private ?string $bannerText = null;
223223

224224
/**
225225
* @var string
226226
*/
227-
private $bannerColor;
227+
private ?string $bannerColor = null;
228228

229229
/**
230230
* @deprecated
231231
*
232232
* @var bool
233233
*/
234-
private $learningDashboardEnabled;
234+
private ?bool $learningDashboardEnabled = null;
235235

236236
/**
237237
* @deprecated
238238
*
239239
* @var bool
240240
*/
241-
private $virtualBackgroundsDisabled;
241+
private ?bool $virtualBackgroundsDisabled = null;
242242

243243
/**
244244
* @var int
245245
*/
246-
private $learningDashboardCleanupDelayInMinutes;
246+
private ?int $learningDashboardCleanupDelayInMinutes = null;
247247

248248
/**
249249
* @var int
250250
*/
251-
private $endWhenNoModeratorDelayInMinutes;
251+
private ?int $endWhenNoModeratorDelayInMinutes = null;
252252

253253
/**
254254
* @var bool
255255
*/
256-
private $endWhenNoModerator;
256+
private ?bool $endWhenNoModerator = null;
257257

258258
/**
259259
* @var bool
260260
*/
261-
private $meetingKeepEvents;
261+
private ?bool $meetingKeepEvents = null;
262262

263263
/**
264264
* @deprecated
265265
*
266266
* @var bool
267267
*/
268-
private $breakoutRoomsEnabled;
268+
private ?bool $breakoutRoomsEnabled = null;
269269

270270
/**
271271
* @var bool
272272
*/
273-
private $breakoutRoomsRecord;
273+
private ?bool $breakoutRoomsRecord = null;
274274

275275
/**
276276
* @var bool
277277
*/
278-
private $breakoutRoomsPrivateChatEnabled;
278+
private ?bool $breakoutRoomsPrivateChatEnabled = null;
279279

280280
/**
281281
* @var string
282282
*/
283-
private $meetingEndedURL;
283+
private ?string $meetingEndedURL = null;
284284

285285
/**
286286
* @var string
287287
*/
288-
private $meetingLayout;
288+
private ?string $meetingLayout = null;
289289

290290
/**
291291
* @var int
292292
*/
293-
private $userCameraCap;
293+
private ?int $userCameraCap = null;
294294

295295
/**
296296
* @var int
297297
*/
298-
private $meetingCameraCap;
298+
private ?int $meetingCameraCap = null;
299299

300300
/**
301301
* @var int
302302
*/
303-
private $meetingExpireIfNoUserJoinedInMinutes;
303+
private ?int $meetingExpireIfNoUserJoinedInMinutes = null;
304304

305305
/**
306306
* @var int
307307
*/
308-
private $meetingExpireWhenLastUserLeftInMinutes;
308+
private ?int $meetingExpireWhenLastUserLeftInMinutes = null;
309309

310310
/**
311311
* @var bool
312312
*/
313-
private $preUploadedPresentationOverrideDefault;
313+
private ?bool $preUploadedPresentationOverrideDefault = null;
314314

315315
/**
316316
* @var array
@@ -325,17 +325,17 @@ class CreateMeetingParameters extends MetaParameters
325325
/**
326326
* @var bool
327327
*/
328-
private $notifyRecordingIsOn;
328+
private ?bool $notifyRecordingIsOn = null;
329329

330330
/**
331331
* @var string
332332
*/
333-
private $presentationUploadExternalUrl;
333+
private ?string $presentationUploadExternalUrl = null;
334334

335335
/**
336336
* @var string
337337
*/
338-
private $presentationUploadExternalDescription;
338+
private ?string $presentationUploadExternalDescription = null;
339339

340340
/**
341341
* CreateMeetingParameters constructor.
@@ -1514,14 +1514,14 @@ public function getHTTPQuery()
15141514
'voiceBridge' => $this->voiceBridge,
15151515
'webVoice' => $this->webVoice,
15161516
'logoutURL' => $this->logoutUrl,
1517-
'record' => $this->record ? 'true' : 'false',
1517+
'record' => !is_null($this->record) ? ($this->record ? 'true' : 'false') : $this->record,
15181518
'duration' => $this->duration,
15191519
'maxParticipants' => $this->maxParticipants,
1520-
'autoStartRecording' => $this->autoStartRecording ? 'true' : 'false',
1521-
'allowStartStopRecording' => $this->allowStartStopRecording ? 'true' : 'false',
1520+
'autoStartRecording' => !is_null($this->autoStartRecording) ? ($this->autoStartRecording ? 'true' : 'false') : $this->autoStartRecording,
1521+
'allowStartStopRecording' => !is_null($this->allowStartStopRecording) ? ($this->allowStartStopRecording ? 'true' : 'false') : $this->allowStartStopRecording,
15221522
'welcome' => trim($this->welcomeMessage),
15231523
'moderatorOnlyMessage' => trim($this->moderatorOnlyMessage),
1524-
'webcamsOnlyForModerator' => $this->webcamsOnlyForModerator ? 'true' : 'false',
1524+
'webcamsOnlyForModerator' => !is_null($this->webcamsOnlyForModerator) ? ($this->webcamsOnlyForModerator ? 'true' : 'false') : $this->webcamsOnlyForModerator,
15251525
'logo' => $this->logo,
15261526
'copyright' => $this->copyright,
15271527
'muteOnStart' => $this->muteOnStart ? 'true' : 'false',

0 commit comments

Comments
 (0)