GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( 567b6b...922815 )
by
unknown
06:18
created

UpdateMPULayout::withWatermarks()   C

Complexity

Conditions 10
Paths 257

Size

Total Lines 31
Code Lines 19

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 19
c 1
b 0
f 0
dl 0
loc 31
rs 6.1208
cc 10
nc 257
nop 1

How to fix   Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
namespace AlibabaCloud\Rtc\V20180111;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddRecordTemplate addRecordTemplate(array $options = [])
9
 * @method CreateChannel createChannel(array $options = [])
10
 * @method CreateConference createConference(array $options = [])
11
 * @method CreateMPULayout createMPULayout(array $options = [])
12
 * @method CreateMPURule createMPURule(array $options = [])
13
 * @method CreateServiceLinkedRoleForRtc createServiceLinkedRoleForRtc(array $options = [])
14
 * @method DeleteChannel deleteChannel(array $options = [])
15
 * @method DeleteConference deleteConference(array $options = [])
16
 * @method DeleteMPULayout deleteMPULayout(array $options = [])
17
 * @method DeleteMPURule deleteMPURule(array $options = [])
18
 * @method DeleteRecordTemplate deleteRecordTemplate(array $options = [])
19
 * @method DescribeApps describeApps(array $options = [])
20
 * @method DescribeChannelParticipants describeChannelParticipants(array $options = [])
21
 * @method DescribeChannelUsers describeChannelUsers(array $options = [])
22
 * @method DescribeConferenceAuthInfo describeConferenceAuthInfo(array $options = [])
23
 * @method DescribeMPULayoutInfo describeMPULayoutInfo(array $options = [])
24
 * @method DescribeMPULayoutInfoList describeMPULayoutInfoList(array $options = [])
25
 * @method DescribeMPULayoutList describeMPULayoutList(array $options = [])
26
 * @method DescribeMPURule describeMPURule(array $options = [])
27
 * @method DescribeRecordFiles describeRecordFiles(array $options = [])
28
 * @method DescribeRecordTasks describeRecordTasks(array $options = [])
29
 * @method DescribeRecordTemplates describeRecordTemplates(array $options = [])
30
 * @method DescribeRTCAppKey describeRTCAppKey(array $options = [])
31
 * @method DescribeRtcChannelCntData describeRtcChannelCntData(array $options = [])
32
 * @method DescribeRtcChannelDetail describeRtcChannelDetail(array $options = [])
33
 * @method DescribeRtcChannelList describeRtcChannelList(array $options = [])
34
 * @method DescribeRtcChannelMetric describeRtcChannelMetric(array $options = [])
35
 * @method DescribeRtcChannelMetrics describeRtcChannelMetrics(array $options = [])
36
 * @method DescribeRtcChannels describeRtcChannels(array $options = [])
37
 * @method DescribeRtcChannelUserList describeRtcChannelUserList(array $options = [])
38
 * @method DescribeRtcDurationData describeRtcDurationData(array $options = [])
39
 * @method DescribeRtcPeakChannelCntData describeRtcPeakChannelCntData(array $options = [])
40
 * @method DescribeRtcPeakUserCntData describeRtcPeakUserCntData(array $options = [])
41
 * @method DescribeRtcQualityMetric describeRtcQualityMetric(array $options = [])
42
 * @method DescribeRtcScale describeRtcScale(array $options = [])
43
 * @method DescribeRtcScaleDetail describeRtcScaleDetail(array $options = [])
44
 * @method DescribeRtcUserCntData describeRtcUserCntData(array $options = [])
45
 * @method DescribeRtcUserEvents describeRtcUserEvents(array $options = [])
46
 * @method DescribeRtcUserList describeRtcUserList(array $options = [])
47
 * @method DescribeUserInfoInChannel describeUserInfoInChannel(array $options = [])
48
 * @method DisableMPURule disableMPURule(array $options = [])
49
 * @method EnableMPURule enableMPURule(array $options = [])
50
 * @method GetMPUTaskStatus getMPUTaskStatus(array $options = [])
51
 * @method ModifyApp modifyApp(array $options = [])
52
 * @method ModifyConference modifyConference(array $options = [])
53
 * @method ModifyMPULayout modifyMPULayout(array $options = [])
54
 * @method MuteAudio muteAudio(array $options = [])
55
 * @method MuteAudioAll muteAudioAll(array $options = [])
56
 * @method ReceiveNotify receiveNotify(array $options = [])
57
 * @method RemoveParticipants removeParticipants(array $options = [])
58
 * @method RemoveTerminals removeTerminals(array $options = [])
59
 * @method SetChannelProperty setChannelProperty(array $options = [])
60
 * @method StartMPUTask startMPUTask(array $options = [])
61
 * @method StartRecordTask startRecordTask(array $options = [])
62
 * @method StopChannelUserPublish stopChannelUserPublish(array $options = [])
63
 * @method StopMPUTask stopMPUTask(array $options = [])
64
 * @method StopRecordTask stopRecordTask(array $options = [])
65
 * @method UnmuteAudio unmuteAudio(array $options = [])
66
 * @method UnmuteAudioAll unmuteAudioAll(array $options = [])
67
 * @method UpdateChannel updateChannel(array $options = [])
68
 * @method UpdateMPULayout updateMPULayout(array $options = [])
69
 * @method UpdateRecordTask updateRecordTask(array $options = [])
70
 * @method UpdateRecordTemplate updateRecordTemplate(array $options = [])
71
 */
72
class RtcApiResolver extends ApiResolver
73
{
74
}
75
76
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
77
{
78
    /** @var string */
79
    public $product = 'rtc';
80
81
    /** @var string */
82
    public $version = '2018-01-11';
83
84
    /** @var string */
85
    public $method = 'POST';
86
87
    /** @var string */
88
    public $serviceCode = 'rtc';
89
}
90
91
/**
92
 * @method array getFormats()
93
 * @method string getOssFilePrefix()
94
 * @method $this withOssFilePrefix($value)
95
 * @method string getBackgroundColor()
96
 * @method $this withBackgroundColor($value)
97
 * @method string getTaskProfile()
98
 * @method $this withTaskProfile($value)
99
 * @method array getLayoutIds()
100
 * @method string getShowLog()
101
 * @method $this withShowLog($value)
102
 * @method string getOssBucket()
103
 * @method $this withOssBucket($value)
104
 * @method string getDelayStopTime()
105
 * @method $this withDelayStopTime($value)
106
 * @method string getFileSplitInterval()
107
 * @method $this withFileSplitInterval($value)
108
 * @method string getMnsQueue()
109
 * @method $this withMnsQueue($value)
110
 * @method string getHttpCallbackUrl()
111
 * @method $this withHttpCallbackUrl($value)
112
 * @method array getWatermarks()
113
 * @method string getOwnerId()
114
 * @method $this withOwnerId($value)
115
 * @method string getAppId()
116
 * @method $this withAppId($value)
117
 * @method array getBackgrounds()
118
 * @method string getName()
119
 * @method $this withName($value)
120
 * @method string getMediaEncode()
121
 * @method $this withMediaEncode($value)
122
 */
123
class AddRecordTemplate extends Rpc
124
{
125
126
    /**
127
     * @param array $formats
128
     *
129
     * @return $this
130
     */
131
	public function withFormats(array $formats)
132
	{
133
	    $this->data['Formats'] = $formats;
134
		foreach ($formats as $i => $iValue) {
135
			$this->options['query']['Formats.' . ($i + 1)] = $iValue;
136
		}
137
138
		return $this;
139
    }
140
141
    /**
142
     * @param array $layoutIds
143
     *
144
     * @return $this
145
     */
146
	public function withLayoutIds(array $layoutIds)
147
	{
148
	    $this->data['LayoutIds'] = $layoutIds;
149
		foreach ($layoutIds as $i => $iValue) {
150
			$this->options['query']['LayoutIds.' . ($i + 1)] = $iValue;
151
		}
152
153
		return $this;
154
    }
155
156
    /**
157
     * @param array $watermarks
158
     *
159
     * @return $this
160
     */
161
	public function withWatermarks(array $watermarks)
162
	{
163
	    $this->data['Watermarks'] = $watermarks;
164
		foreach ($watermarks as $depth1 => $depth1Value) {
165
			if(isset($depth1Value['Url'])){
166
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
167
			}
168
			if(isset($depth1Value['Alpha'])){
169
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Alpha'] = $depth1Value['Alpha'];
170
			}
171
			if(isset($depth1Value['Display'])){
172
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
173
			}
174
			if(isset($depth1Value['X'])){
175
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
176
			}
177
			if(isset($depth1Value['Y'])){
178
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
179
			}
180
			if(isset($depth1Value['Width'])){
181
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
182
			}
183
			if(isset($depth1Value['Height'])){
184
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
185
			}
186
			if(isset($depth1Value['ZOrder'])){
187
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
188
			}
189
		}
190
191
		return $this;
192
    }
193
194
    /**
195
     * @param array $backgrounds
196
     *
197
     * @return $this
198
     */
199
	public function withBackgrounds(array $backgrounds)
200
	{
201
	    $this->data['Backgrounds'] = $backgrounds;
202
		foreach ($backgrounds as $depth1 => $depth1Value) {
203
			if(isset($depth1Value['Url'])){
204
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
205
			}
206
			if(isset($depth1Value['Display'])){
207
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
208
			}
209
			if(isset($depth1Value['X'])){
210
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
211
			}
212
			if(isset($depth1Value['Y'])){
213
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
214
			}
215
			if(isset($depth1Value['Width'])){
216
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
217
			}
218
			if(isset($depth1Value['Height'])){
219
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
220
			}
221
			if(isset($depth1Value['ZOrder'])){
222
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
223
			}
224
		}
225
226
		return $this;
227
    }
228
}
229
230
/**
231
 * @method string getShowLog()
232
 * @method $this withShowLog($value)
233
 * @method string getOwnerId()
234
 * @method $this withOwnerId($value)
235
 * @method string getAppId()
236
 * @method $this withAppId($value)
237
 * @method string getChannelId()
238
 * @method $this withChannelId($value)
239
 */
240
class CreateChannel extends Rpc
241
{
242
}
243
244
/**
245
 * @method string getClientToken()
246
 * @method $this withClientToken($value)
247
 * @method string getStartTime()
248
 * @method $this withStartTime($value)
249
 * @method string getType()
250
 * @method $this withType($value)
251
 * @method string getConferenceName()
252
 * @method $this withConferenceName($value)
253
 * @method string getShowLog()
254
 * @method $this withShowLog($value)
255
 * @method string getOwnerId()
256
 * @method $this withOwnerId($value)
257
 * @method string getAppId()
258
 * @method $this withAppId($value)
259
 * @method string getRemindNotice()
260
 * @method $this withRemindNotice($value)
261
 */
262
class CreateConference extends Rpc
263
{
264
}
265
266
/**
267
 * @method array getPanes()
268
 * @method string getShowLog()
269
 * @method $this withShowLog($value)
270
 * @method string getOwnerId()
271
 * @method $this withOwnerId($value)
272
 * @method string getAppId()
273
 * @method $this withAppId($value)
274
 * @method string getName()
275
 * @method $this withName($value)
276
 * @method string getAudioMixCount()
277
 * @method $this withAudioMixCount($value)
278
 */
279
class CreateMPULayout extends Rpc
280
{
281
282
    /**
283
     * @param array $panes
284
     *
285
     * @return $this
286
     */
287
	public function withPanes(array $panes)
288
	{
289
	    $this->data['Panes'] = $panes;
290
		foreach ($panes as $depth1 => $depth1Value) {
291
			if(isset($depth1Value['PaneId'])){
292
				$this->options['query']['Panes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
293
			}
294
			if(isset($depth1Value['MajorPane'])){
295
				$this->options['query']['Panes.' . ($depth1 + 1) . '.MajorPane'] = $depth1Value['MajorPane'];
296
			}
297
			if(isset($depth1Value['X'])){
298
				$this->options['query']['Panes.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
299
			}
300
			if(isset($depth1Value['Y'])){
301
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
302
			}
303
			if(isset($depth1Value['Width'])){
304
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
305
			}
306
			if(isset($depth1Value['Height'])){
307
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
308
			}
309
			if(isset($depth1Value['ZOrder'])){
310
				$this->options['query']['Panes.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
311
			}
312
		}
313
314
		return $this;
315
    }
316
}
317
318
/**
319
 * @method string getBackgroundColor()
320
 * @method $this withBackgroundColor($value)
321
 * @method string getCropMode()
322
 * @method $this withCropMode($value)
323
 * @method string getChannelPrefix()
324
 * @method $this withChannelPrefix($value)
325
 * @method string getTaskProfile()
326
 * @method $this withTaskProfile($value)
327
 * @method array getLayoutIds()
328
 * @method string getShowLog()
329
 * @method $this withShowLog($value)
330
 * @method string getPlayDomain()
331
 * @method $this withPlayDomain($value)
332
 * @method string getOwnerId()
333
 * @method $this withOwnerId($value)
334
 * @method string getAppId()
335
 * @method $this withAppId($value)
336
 * @method string getMediaEncode()
337
 * @method $this withMediaEncode($value)
338
 * @method string getCallBack()
339
 * @method $this withCallBack($value)
340
 */
341
class CreateMPURule extends Rpc
342
{
343
344
    /**
345
     * @param array $layoutIds
346
     *
347
     * @return $this
348
     */
349
	public function withLayoutIds(array $layoutIds)
350
	{
351
	    $this->data['LayoutIds'] = $layoutIds;
352
		foreach ($layoutIds as $i => $iValue) {
353
			$this->options['query']['LayoutIds.' . ($i + 1)] = $iValue;
354
		}
355
356
		return $this;
357
    }
358
}
359
360
/**
361
 * @method string getShowLog()
362
 * @method $this withShowLog($value)
363
 * @method string getOwnerId()
364
 * @method $this withOwnerId($value)
365
 */
366
class CreateServiceLinkedRoleForRtc extends Rpc
367
{
368
}
369
370
/**
371
 * @method string getShowLog()
372
 * @method $this withShowLog($value)
373
 * @method string getOwnerId()
374
 * @method $this withOwnerId($value)
375
 * @method string getAppId()
376
 * @method $this withAppId($value)
377
 * @method string getChannelId()
378
 * @method $this withChannelId($value)
379
 */
380
class DeleteChannel extends Rpc
381
{
382
}
383
384
/**
385
 * @method string getConferenceId()
386
 * @method $this withConferenceId($value)
387
 * @method string getShowLog()
388
 * @method $this withShowLog($value)
389
 * @method string getOwnerId()
390
 * @method $this withOwnerId($value)
391
 * @method string getAppId()
392
 * @method $this withAppId($value)
393
 */
394
class DeleteConference extends Rpc
395
{
396
}
397
398
/**
399
 * @method string getLayoutId()
400
 * @method $this withLayoutId($value)
401
 * @method string getShowLog()
402
 * @method $this withShowLog($value)
403
 * @method string getOwnerId()
404
 * @method $this withOwnerId($value)
405
 * @method string getAppId()
406
 * @method $this withAppId($value)
407
 */
408
class DeleteMPULayout extends Rpc
409
{
410
}
411
412
/**
413
 * @method string getShowLog()
414
 * @method $this withShowLog($value)
415
 * @method string getOwnerId()
416
 * @method $this withOwnerId($value)
417
 * @method string getAppId()
418
 * @method $this withAppId($value)
419
 * @method string getRuleId()
420
 * @method $this withRuleId($value)
421
 */
422
class DeleteMPURule extends Rpc
423
{
424
}
425
426
/**
427
 * @method string getShowLog()
428
 * @method $this withShowLog($value)
429
 * @method string getOwnerId()
430
 * @method $this withOwnerId($value)
431
 * @method string getTemplateId()
432
 * @method $this withTemplateId($value)
433
 * @method string getAppId()
434
 * @method $this withAppId($value)
435
 */
436
class DeleteRecordTemplate extends Rpc
437
{
438
}
439
440
/**
441
 * @method string getPageNum()
442
 * @method $this withPageNum($value)
443
 * @method string getPageSize()
444
 * @method $this withPageSize($value)
445
 * @method string getShowLog()
446
 * @method $this withShowLog($value)
447
 * @method string getOrder()
448
 * @method $this withOrder($value)
449
 * @method string getOwnerId()
450
 * @method $this withOwnerId($value)
451
 * @method string getAppId()
452
 * @method $this withAppId($value)
453
 * @method string getStatus()
454
 * @method $this withStatus($value)
455
 */
456
class DescribeApps extends Rpc
457
{
458
}
459
460
/**
461
 * @method string getPageNum()
462
 * @method $this withPageNum($value)
463
 * @method string getPageSize()
464
 * @method $this withPageSize($value)
465
 * @method string getShowLog()
466
 * @method $this withShowLog($value)
467
 * @method string getOrder()
468
 * @method $this withOrder($value)
469
 * @method string getOwnerId()
470
 * @method $this withOwnerId($value)
471
 * @method string getAppId()
472
 * @method $this withAppId($value)
473
 * @method string getChannelId()
474
 * @method $this withChannelId($value)
475
 */
476
class DescribeChannelParticipants extends Rpc
477
{
478
}
479
480
/**
481
 * @method string getShowLog()
482
 * @method $this withShowLog($value)
483
 * @method string getOwnerId()
484
 * @method $this withOwnerId($value)
485
 * @method string getAppId()
486
 * @method $this withAppId($value)
487
 * @method string getChannelId()
488
 * @method $this withChannelId($value)
489
 */
490
class DescribeChannelUsers extends Rpc
491
{
492
}
493
494
/**
495
 * @method string getConferenceId()
496
 * @method $this withConferenceId($value)
497
 * @method string getShowLog()
498
 * @method $this withShowLog($value)
499
 * @method string getOwnerId()
500
 * @method $this withOwnerId($value)
501
 * @method string getAppId()
502
 * @method $this withAppId($value)
503
 */
504
class DescribeConferenceAuthInfo extends Rpc
505
{
506
}
507
508
/**
509
 * @method string getLayoutId()
510
 * @method $this withLayoutId($value)
511
 * @method string getShowLog()
512
 * @method $this withShowLog($value)
513
 * @method string getOwnerId()
514
 * @method $this withOwnerId($value)
515
 * @method string getAppId()
516
 * @method $this withAppId($value)
517
 */
518
class DescribeMPULayoutInfo extends Rpc
519
{
520
}
521
522
/**
523
 * @method string getPageNum()
524
 * @method $this withPageNum($value)
525
 * @method string getLayoutId()
526
 * @method $this withLayoutId($value)
527
 * @method string getPageSize()
528
 * @method $this withPageSize($value)
529
 * @method string getShowLog()
530
 * @method $this withShowLog($value)
531
 * @method string getOwnerId()
532
 * @method $this withOwnerId($value)
533
 * @method string getAppId()
534
 * @method $this withAppId($value)
535
 * @method string getName()
536
 * @method $this withName($value)
537
 */
538
class DescribeMPULayoutInfoList extends Rpc
539
{
540
}
541
542
/**
543
 * @method string getShowLog()
544
 * @method $this withShowLog($value)
545
 * @method string getOwnerId()
546
 * @method $this withOwnerId($value)
547
 * @method string getAppId()
548
 * @method $this withAppId($value)
549
 */
550
class DescribeMPULayoutList extends Rpc
551
{
552
}
553
554
/**
555
 * @method string getShowLog()
556
 * @method $this withShowLog($value)
557
 * @method string getOwnerId()
558
 * @method $this withOwnerId($value)
559
 * @method string getAppId()
560
 * @method $this withAppId($value)
561
 */
562
class DescribeMPURule extends Rpc
563
{
564
}
565
566
/**
567
 * @method string getStartTime()
568
 * @method $this withStartTime($value)
569
 * @method string getPageNum()
570
 * @method $this withPageNum($value)
571
 * @method array getTaskIds()
572
 * @method string getPageSize()
573
 * @method $this withPageSize($value)
574
 * @method string getShowLog()
575
 * @method $this withShowLog($value)
576
 * @method string getEndTime()
577
 * @method $this withEndTime($value)
578
 * @method string getOwnerId()
579
 * @method $this withOwnerId($value)
580
 * @method string getAppId()
581
 * @method $this withAppId($value)
582
 * @method string getChannelId()
583
 * @method $this withChannelId($value)
584
 */
585
class DescribeRecordFiles extends Rpc
586
{
587
588
    /**
589
     * @param array $taskIds
590
     *
591
     * @return $this
592
     */
593
	public function withTaskIds(array $taskIds)
594
	{
595
	    $this->data['TaskIds'] = $taskIds;
596
		foreach ($taskIds as $i => $iValue) {
597
			$this->options['query']['TaskIds.' . ($i + 1)] = $iValue;
598
		}
599
600
		return $this;
601
    }
602
}
603
604
/**
605
 * @method string getStartTime()
606
 * @method $this withStartTime($value)
607
 * @method array getTaskIds()
608
 * @method string getPageNum()
609
 * @method $this withPageNum($value)
610
 * @method string getPageSize()
611
 * @method $this withPageSize($value)
612
 * @method string getShowLog()
613
 * @method $this withShowLog($value)
614
 * @method string getEndTime()
615
 * @method $this withEndTime($value)
616
 * @method string getOwnerId()
617
 * @method $this withOwnerId($value)
618
 * @method string getAppId()
619
 * @method $this withAppId($value)
620
 * @method string getChannelId()
621
 * @method $this withChannelId($value)
622
 * @method string getStatus()
623
 * @method $this withStatus($value)
624
 */
625
class DescribeRecordTasks extends Rpc
626
{
627
628
    /**
629
     * @param array $taskIds
630
     *
631
     * @return $this
632
     */
633
	public function withTaskIds(array $taskIds)
634
	{
635
	    $this->data['TaskIds'] = $taskIds;
636
		foreach ($taskIds as $i => $iValue) {
637
			$this->options['query']['TaskIds.' . ($i + 1)] = $iValue;
638
		}
639
640
		return $this;
641
    }
642
}
643
644
/**
645
 * @method array getTemplateIds()
646
 * @method string getPageNum()
647
 * @method $this withPageNum($value)
648
 * @method string getPageSize()
649
 * @method $this withPageSize($value)
650
 * @method string getShowLog()
651
 * @method $this withShowLog($value)
652
 * @method string getOwnerId()
653
 * @method $this withOwnerId($value)
654
 * @method string getAppId()
655
 * @method $this withAppId($value)
656
 */
657
class DescribeRecordTemplates extends Rpc
658
{
659
660
    /**
661
     * @param array $templateIds
662
     *
663
     * @return $this
664
     */
665
	public function withTemplateIds(array $templateIds)
666
	{
667
	    $this->data['TemplateIds'] = $templateIds;
668
		foreach ($templateIds as $i => $iValue) {
669
			$this->options['query']['TemplateIds.' . ($i + 1)] = $iValue;
670
		}
671
672
		return $this;
673
    }
674
}
675
676
/**
677
 * @method string getShowLog()
678
 * @method $this withShowLog($value)
679
 * @method string getOwnerId()
680
 * @method $this withOwnerId($value)
681
 * @method string getAppId()
682
 * @method $this withAppId($value)
683
 */
684
class DescribeRTCAppKey extends Rpc
685
{
686
}
687
688
/**
689
 * @method string getStartTime()
690
 * @method $this withStartTime($value)
691
 * @method string getServiceArea()
692
 * @method $this withServiceArea($value)
693
 * @method string getShowLog()
694
 * @method $this withShowLog($value)
695
 * @method string getEndTime()
696
 * @method $this withEndTime($value)
697
 * @method string getOwnerId()
698
 * @method $this withOwnerId($value)
699
 * @method string getAppId()
700
 * @method $this withAppId($value)
701
 * @method string getInterval()
702
 * @method $this withInterval($value)
703
 */
704
class DescribeRtcChannelCntData extends Rpc
705
{
706
}
707
708
/**
709
 * @method string getStartTime()
710
 * @method $this withStartTime($value)
711
 * @method string getPageSize()
712
 * @method $this withPageSize($value)
713
 * @method string getShowLog()
714
 * @method $this withShowLog($value)
715
 * @method string getEndTime()
716
 * @method $this withEndTime($value)
717
 * @method string getOwnerId()
718
 * @method $this withOwnerId($value)
719
 * @method string getPageNo()
720
 * @method $this withPageNo($value)
721
 * @method string getAppId()
722
 * @method $this withAppId($value)
723
 * @method string getChannelId()
724
 * @method $this withChannelId($value)
725
 */
726
class DescribeRtcChannelDetail extends Rpc
727
{
728
}
729
730
/**
731
 * @method string getSortType()
732
 * @method $this withSortType($value)
733
 * @method string getUserId()
734
 * @method $this withUserId($value)
735
 * @method string getServiceArea()
736
 * @method $this withServiceArea($value)
737
 * @method string getPageSize()
738
 * @method $this withPageSize($value)
739
 * @method string getShowLog()
740
 * @method $this withShowLog($value)
741
 * @method string getOwnerId()
742
 * @method $this withOwnerId($value)
743
 * @method string getPageNo()
744
 * @method $this withPageNo($value)
745
 * @method string getAppId()
746
 * @method $this withAppId($value)
747
 * @method string getChannelId()
748
 * @method $this withChannelId($value)
749
 * @method string getTimePoint()
750
 * @method $this withTimePoint($value)
751
 */
752
class DescribeRtcChannelList extends Rpc
753
{
754
}
755
756
/**
757
 * @method string getShowLog()
758
 * @method $this withShowLog($value)
759
 * @method string getOwnerId()
760
 * @method $this withOwnerId($value)
761
 * @method string getAppId()
762
 * @method $this withAppId($value)
763
 * @method string getChannelId()
764
 * @method $this withChannelId($value)
765
 * @method string getTimePoint()
766
 * @method $this withTimePoint($value)
767
 */
768
class DescribeRtcChannelMetric extends Rpc
769
{
770
}
771
772
/**
773
 * @method string getStartTime()
774
 * @method $this withStartTime($value)
775
 * @method string getSubUid()
776
 * @method $this withSubUid($value)
777
 * @method string getPubUid()
778
 * @method $this withPubUid($value)
779
 * @method string getShowLog()
780
 * @method $this withShowLog($value)
781
 * @method string getEndTime()
782
 * @method $this withEndTime($value)
783
 * @method string getOwnerId()
784
 * @method $this withOwnerId($value)
785
 * @method string getAppId()
786
 * @method $this withAppId($value)
787
 * @method string getChannelId()
788
 * @method $this withChannelId($value)
789
 */
790
class DescribeRtcChannelMetrics extends Rpc
791
{
792
}
793
794
/**
795
 * @method string getStartTime()
796
 * @method $this withStartTime($value)
797
 * @method string getPageSize()
798
 * @method $this withPageSize($value)
799
 * @method string getShowLog()
800
 * @method $this withShowLog($value)
801
 * @method string getEndTime()
802
 * @method $this withEndTime($value)
803
 * @method string getOwnerId()
804
 * @method $this withOwnerId($value)
805
 * @method string getPageNo()
806
 * @method $this withPageNo($value)
807
 * @method string getAppId()
808
 * @method $this withAppId($value)
809
 * @method string getChannelId()
810
 * @method $this withChannelId($value)
811
 */
812
class DescribeRtcChannels extends Rpc
813
{
814
}
815
816
/**
817
 * @method string getPageSize()
818
 * @method $this withPageSize($value)
819
 * @method string getShowLog()
820
 * @method $this withShowLog($value)
821
 * @method string getOwnerId()
822
 * @method $this withOwnerId($value)
823
 * @method string getPageNo()
824
 * @method $this withPageNo($value)
825
 * @method string getAppId()
826
 * @method $this withAppId($value)
827
 * @method string getChannelId()
828
 * @method $this withChannelId($value)
829
 * @method string getTimePoint()
830
 * @method $this withTimePoint($value)
831
 */
832
class DescribeRtcChannelUserList extends Rpc
833
{
834
}
835
836
/**
837
 * @method string getStartTime()
838
 * @method $this withStartTime($value)
839
 * @method string getServiceArea()
840
 * @method $this withServiceArea($value)
841
 * @method string getShowLog()
842
 * @method $this withShowLog($value)
843
 * @method string getEndTime()
844
 * @method $this withEndTime($value)
845
 * @method string getOwnerId()
846
 * @method $this withOwnerId($value)
847
 * @method string getAppId()
848
 * @method $this withAppId($value)
849
 * @method string getInterval()
850
 * @method $this withInterval($value)
851
 */
852
class DescribeRtcDurationData extends Rpc
853
{
854
}
855
856
/**
857
 * @method string getStartTime()
858
 * @method $this withStartTime($value)
859
 * @method string getServiceArea()
860
 * @method $this withServiceArea($value)
861
 * @method string getShowLog()
862
 * @method $this withShowLog($value)
863
 * @method string getEndTime()
864
 * @method $this withEndTime($value)
865
 * @method string getOwnerId()
866
 * @method $this withOwnerId($value)
867
 * @method string getAppId()
868
 * @method $this withAppId($value)
869
 * @method string getInterval()
870
 * @method $this withInterval($value)
871
 */
872
class DescribeRtcPeakChannelCntData extends Rpc
873
{
874
}
875
876
/**
877
 * @method string getStartTime()
878
 * @method $this withStartTime($value)
879
 * @method string getServiceArea()
880
 * @method $this withServiceArea($value)
881
 * @method string getShowLog()
882
 * @method $this withShowLog($value)
883
 * @method string getEndTime()
884
 * @method $this withEndTime($value)
885
 * @method string getOwnerId()
886
 * @method $this withOwnerId($value)
887
 * @method string getAppId()
888
 * @method $this withAppId($value)
889
 * @method string getInterval()
890
 * @method $this withInterval($value)
891
 */
892
class DescribeRtcPeakUserCntData extends Rpc
893
{
894
}
895
896
/**
897
 * @method string getStartTime()
898
 * @method $this withStartTime($value)
899
 * @method string getShowLog()
900
 * @method $this withShowLog($value)
901
 * @method string getSubUser()
902
 * @method $this withSubUser($value)
903
 * @method string getEndTime()
904
 * @method $this withEndTime($value)
905
 * @method string getOwnerId()
906
 * @method $this withOwnerId($value)
907
 * @method string getPubUser()
908
 * @method $this withPubUser($value)
909
 * @method string getAppId()
910
 * @method $this withAppId($value)
911
 * @method string getChannelId()
912
 * @method $this withChannelId($value)
913
 */
914
class DescribeRtcQualityMetric extends Rpc
915
{
916
}
917
918
/**
919
 * @method string getStartTime()
920
 * @method $this withStartTime($value)
921
 * @method string getShowLog()
922
 * @method $this withShowLog($value)
923
 * @method string getEndTime()
924
 * @method $this withEndTime($value)
925
 * @method string getOwnerId()
926
 * @method $this withOwnerId($value)
927
 * @method string getAppId()
928
 * @method $this withAppId($value)
929
 */
930
class DescribeRtcScale extends Rpc
931
{
932
}
933
934
/**
935
 * @method string getStartTime()
936
 * @method $this withStartTime($value)
937
 * @method string getShowLog()
938
 * @method $this withShowLog($value)
939
 * @method string getEndTime()
940
 * @method $this withEndTime($value)
941
 * @method string getOwnerId()
942
 * @method $this withOwnerId($value)
943
 * @method string getAppId()
944
 * @method $this withAppId($value)
945
 */
946
class DescribeRtcScaleDetail extends Rpc
947
{
948
}
949
950
/**
951
 * @method string getStartTime()
952
 * @method $this withStartTime($value)
953
 * @method string getServiceArea()
954
 * @method $this withServiceArea($value)
955
 * @method string getShowLog()
956
 * @method $this withShowLog($value)
957
 * @method string getEndTime()
958
 * @method $this withEndTime($value)
959
 * @method string getOwnerId()
960
 * @method $this withOwnerId($value)
961
 * @method string getAppId()
962
 * @method $this withAppId($value)
963
 * @method string getInterval()
964
 * @method $this withInterval($value)
965
 */
966
class DescribeRtcUserCntData extends Rpc
967
{
968
}
969
970
/**
971
 * @method string getStartTime()
972
 * @method $this withStartTime($value)
973
 * @method string getUid()
974
 * @method $this withUid($value)
975
 * @method string getShowLog()
976
 * @method $this withShowLog($value)
977
 * @method string getEndTime()
978
 * @method $this withEndTime($value)
979
 * @method string getOwnerId()
980
 * @method $this withOwnerId($value)
981
 * @method string getAppId()
982
 * @method $this withAppId($value)
983
 * @method string getChannelId()
984
 * @method $this withChannelId($value)
985
 */
986
class DescribeRtcUserEvents extends Rpc
987
{
988
}
989
990
/**
991
 * @method string getStartTime()
992
 * @method $this withStartTime($value)
993
 * @method string getShowLog()
994
 * @method $this withShowLog($value)
995
 * @method string getSubUser()
996
 * @method $this withSubUser($value)
997
 * @method string getEndTime()
998
 * @method $this withEndTime($value)
999
 * @method string getOwnerId()
1000
 * @method $this withOwnerId($value)
1001
 * @method string getPubUser()
1002
 * @method $this withPubUser($value)
1003
 * @method string getAppId()
1004
 * @method $this withAppId($value)
1005
 * @method string getChannelId()
1006
 * @method $this withChannelId($value)
1007
 */
1008
class DescribeRtcUserList extends Rpc
1009
{
1010
}
1011
1012
/**
1013
 * @method string getUserId()
1014
 * @method $this withUserId($value)
1015
 * @method string getShowLog()
1016
 * @method $this withShowLog($value)
1017
 * @method string getOwnerId()
1018
 * @method $this withOwnerId($value)
1019
 * @method string getAppId()
1020
 * @method $this withAppId($value)
1021
 * @method string getChannelId()
1022
 * @method $this withChannelId($value)
1023
 */
1024
class DescribeUserInfoInChannel extends Rpc
1025
{
1026
}
1027
1028
/**
1029
 * @method string getShowLog()
1030
 * @method $this withShowLog($value)
1031
 * @method string getOwnerId()
1032
 * @method $this withOwnerId($value)
1033
 * @method string getAppId()
1034
 * @method $this withAppId($value)
1035
 * @method string getRuleId()
1036
 * @method $this withRuleId($value)
1037
 */
1038
class DisableMPURule extends Rpc
1039
{
1040
}
1041
1042
/**
1043
 * @method string getShowLog()
1044
 * @method $this withShowLog($value)
1045
 * @method string getOwnerId()
1046
 * @method $this withOwnerId($value)
1047
 * @method string getAppId()
1048
 * @method $this withAppId($value)
1049
 * @method string getRuleId()
1050
 * @method $this withRuleId($value)
1051
 */
1052
class EnableMPURule extends Rpc
1053
{
1054
}
1055
1056
/**
1057
 * @method string getTaskId()
1058
 * @method $this withTaskId($value)
1059
 * @method string getShowLog()
1060
 * @method $this withShowLog($value)
1061
 * @method string getOwnerId()
1062
 * @method $this withOwnerId($value)
1063
 * @method string getAppId()
1064
 * @method $this withAppId($value)
1065
 */
1066
class GetMPUTaskStatus extends Rpc
1067
{
1068
}
1069
1070
/**
1071
 * @method string getAppName()
1072
 * @method $this withAppName($value)
1073
 * @method string getShowLog()
1074
 * @method $this withShowLog($value)
1075
 * @method string getOwnerId()
1076
 * @method $this withOwnerId($value)
1077
 * @method string getAppId()
1078
 * @method $this withAppId($value)
1079
 */
1080
class ModifyApp extends Rpc
1081
{
1082
}
1083
1084
/**
1085
 * @method string getStartTime()
1086
 * @method $this withStartTime($value)
1087
 * @method string getType()
1088
 * @method $this withType($value)
1089
 * @method string getConferenceId()
1090
 * @method $this withConferenceId($value)
1091
 * @method string getConferenceName()
1092
 * @method $this withConferenceName($value)
1093
 * @method string getShowLog()
1094
 * @method $this withShowLog($value)
1095
 * @method string getOwnerId()
1096
 * @method $this withOwnerId($value)
1097
 * @method string getAppId()
1098
 * @method $this withAppId($value)
1099
 * @method string getRemindNotice()
1100
 * @method $this withRemindNotice($value)
1101
 */
1102
class ModifyConference extends Rpc
1103
{
1104
}
1105
1106
/**
1107
 * @method string getLayoutId()
1108
 * @method $this withLayoutId($value)
1109
 * @method array getPanes()
1110
 * @method string getShowLog()
1111
 * @method $this withShowLog($value)
1112
 * @method string getOwnerId()
1113
 * @method $this withOwnerId($value)
1114
 * @method string getAppId()
1115
 * @method $this withAppId($value)
1116
 * @method string getName()
1117
 * @method $this withName($value)
1118
 * @method string getAudioMixCount()
1119
 * @method $this withAudioMixCount($value)
1120
 */
1121
class ModifyMPULayout extends Rpc
1122
{
1123
1124
    /**
1125
     * @param array $panes
1126
     *
1127
     * @return $this
1128
     */
1129
	public function withPanes(array $panes)
1130
	{
1131
	    $this->data['Panes'] = $panes;
1132
		foreach ($panes as $depth1 => $depth1Value) {
1133
			if(isset($depth1Value['PaneId'])){
1134
				$this->options['query']['Panes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
1135
			}
1136
			if(isset($depth1Value['MajorPane'])){
1137
				$this->options['query']['Panes.' . ($depth1 + 1) . '.MajorPane'] = $depth1Value['MajorPane'];
1138
			}
1139
			if(isset($depth1Value['X'])){
1140
				$this->options['query']['Panes.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1141
			}
1142
			if(isset($depth1Value['Y'])){
1143
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1144
			}
1145
			if(isset($depth1Value['Width'])){
1146
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
1147
			}
1148
			if(isset($depth1Value['Height'])){
1149
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
1150
			}
1151
			if(isset($depth1Value['ZOrder'])){
1152
				$this->options['query']['Panes.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1153
			}
1154
		}
1155
1156
		return $this;
1157
    }
1158
}
1159
1160
/**
1161
 * @method array getParticipantIds()
1162
 * @method string getConferenceId()
1163
 * @method $this withConferenceId($value)
1164
 * @method string getShowLog()
1165
 * @method $this withShowLog($value)
1166
 * @method string getOwnerId()
1167
 * @method $this withOwnerId($value)
1168
 * @method string getAppId()
1169
 * @method $this withAppId($value)
1170
 */
1171
class MuteAudio extends Rpc
1172
{
1173
1174
    /**
1175
     * @param array $participantIds
1176
     *
1177
     * @return $this
1178
     */
1179
	public function withParticipantIds(array $participantIds)
1180
	{
1181
	    $this->data['ParticipantIds'] = $participantIds;
1182
		foreach ($participantIds as $i => $iValue) {
1183
			$this->options['query']['ParticipantIds.' . ($i + 1)] = $iValue;
1184
		}
1185
1186
		return $this;
1187
    }
1188
}
1189
1190
/**
1191
 * @method string getConferenceId()
1192
 * @method $this withConferenceId($value)
1193
 * @method string getShowLog()
1194
 * @method $this withShowLog($value)
1195
 * @method string getOwnerId()
1196
 * @method $this withOwnerId($value)
1197
 * @method string getParticipantId()
1198
 * @method $this withParticipantId($value)
1199
 * @method string getAppId()
1200
 * @method $this withAppId($value)
1201
 */
1202
class MuteAudioAll extends Rpc
1203
{
1204
}
1205
1206
/**
1207
 * @method string getTraceId()
1208
 * @method $this withTraceId($value)
1209
 * @method string getContent()
1210
 * @method $this withContent($value)
1211
 * @method string getEvent()
1212
 * @method $this withEvent($value)
1213
 * @method string getShowLog()
1214
 * @method $this withShowLog($value)
1215
 * @method string getOwnerId()
1216
 * @method $this withOwnerId($value)
1217
 * @method string getContentType()
1218
 * @method $this withContentType($value)
1219
 * @method string getBizId()
1220
 * @method $this withBizId($value)
1221
 */
1222
class ReceiveNotify extends Rpc
1223
{
1224
}
1225
1226
/**
1227
 * @method array getParticipantIds()
1228
 * @method string getConferenceId()
1229
 * @method $this withConferenceId($value)
1230
 * @method string getShowLog()
1231
 * @method $this withShowLog($value)
1232
 * @method string getOwnerId()
1233
 * @method $this withOwnerId($value)
1234
 * @method string getAppId()
1235
 * @method $this withAppId($value)
1236
 */
1237
class RemoveParticipants extends Rpc
1238
{
1239
1240
    /**
1241
     * @param array $participantIds
1242
     *
1243
     * @return $this
1244
     */
1245
	public function withParticipantIds(array $participantIds)
1246
	{
1247
	    $this->data['ParticipantIds'] = $participantIds;
1248
		foreach ($participantIds as $i => $iValue) {
1249
			$this->options['query']['ParticipantIds.' . ($i + 1)] = $iValue;
1250
		}
1251
1252
		return $this;
1253
    }
1254
}
1255
1256
/**
1257
 * @method array getTerminalIds()
1258
 * @method string getShowLog()
1259
 * @method $this withShowLog($value)
1260
 * @method string getOwnerId()
1261
 * @method $this withOwnerId($value)
1262
 * @method string getAppId()
1263
 * @method $this withAppId($value)
1264
 * @method string getChannelId()
1265
 * @method $this withChannelId($value)
1266
 */
1267
class RemoveTerminals extends Rpc
1268
{
1269
1270
    /**
1271
     * @param array $terminalIds
1272
     *
1273
     * @return $this
1274
     */
1275
	public function withTerminalIds(array $terminalIds)
1276
	{
1277
	    $this->data['TerminalIds'] = $terminalIds;
1278
		foreach ($terminalIds as $i => $iValue) {
1279
			$this->options['query']['TerminalIds.' . ($i + 1)] = $iValue;
1280
		}
1281
1282
		return $this;
1283
    }
1284
}
1285
1286
/**
1287
 * @method string getStartTime()
1288
 * @method $this withStartTime($value)
1289
 * @method string getMaxUserNum()
1290
 * @method $this withMaxUserNum($value)
1291
 * @method string getDuration()
1292
 * @method $this withDuration($value)
1293
 * @method string getShowLog()
1294
 * @method $this withShowLog($value)
1295
 * @method string getTopics()
1296
 * @method $this withTopics($value)
1297
 * @method string getOwnerId()
1298
 * @method $this withOwnerId($value)
1299
 * @method string getPriority()
1300
 * @method $this withPriority($value)
1301
 * @method string getAppId()
1302
 * @method $this withAppId($value)
1303
 * @method string getChannelId()
1304
 * @method $this withChannelId($value)
1305
 */
1306
class SetChannelProperty extends Rpc
1307
{
1308
}
1309
1310
/**
1311
 * @method string getPayloadType()
1312
 * @method $this withPayloadType($value)
1313
 * @method array getUserPanes()
1314
 * @method string getBackgroundColor()
1315
 * @method $this withBackgroundColor($value)
1316
 * @method string getReportVad()
1317
 * @method $this withReportVad($value)
1318
 * @method string getSourceType()
1319
 * @method $this withSourceType($value)
1320
 * @method string getTaskId()
1321
 * @method $this withTaskId($value)
1322
 * @method array getClockWidgets()
1323
 * @method string getShowLog()
1324
 * @method $this withShowLog($value)
1325
 * @method string getVadInterval()
1326
 * @method $this withVadInterval($value)
1327
 * @method array getWatermarks()
1328
 * @method string getOwnerId()
1329
 * @method $this withOwnerId($value)
1330
 * @method string getMediaEncode()
1331
 * @method $this withMediaEncode($value)
1332
 * @method string getRtpExtInfo()
1333
 * @method $this withRtpExtInfo($value)
1334
 * @method string getCropMode()
1335
 * @method $this withCropMode($value)
1336
 * @method string getTaskProfile()
1337
 * @method $this withTaskProfile($value)
1338
 * @method array getLayoutIds()
1339
 * @method string getStreamURL()
1340
 * @method $this withStreamURL($value)
1341
 * @method string getStreamType()
1342
 * @method $this withStreamType($value)
1343
 * @method array getSubSpecUsers()
1344
 * @method string getAppId()
1345
 * @method $this withAppId($value)
1346
 * @method array getBackgrounds()
1347
 * @method string getTimeStampRef()
1348
 * @method $this withTimeStampRef($value)
1349
 * @method string getMixMode()
1350
 * @method $this withMixMode($value)
1351
 * @method string getChannelId()
1352
 * @method $this withChannelId($value)
1353
 */
1354
class StartMPUTask extends Rpc
1355
{
1356
1357
    /**
1358
     * @param array $userPanes
1359
     *
1360
     * @return $this
1361
     */
1362
	public function withUserPanes(array $userPanes)
1363
	{
1364
	    $this->data['UserPanes'] = $userPanes;
1365
		foreach ($userPanes as $depth1 => $depth1Value) {
1366
			if(isset($depth1Value['PaneId'])){
1367
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
1368
			}
1369
			if(isset($depth1Value['UserId'])){
1370
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.UserId'] = $depth1Value['UserId'];
1371
			}
1372
			if(isset($depth1Value['SourceType'])){
1373
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.SourceType'] = $depth1Value['SourceType'];
1374
			}
1375
			foreach ($depth1Value['Images'] as $depth2 => $depth2Value) {
1376
				if(isset($depth2Value['Url'])){
1377
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Url'] = $depth2Value['Url'];
1378
				}
1379
				if(isset($depth2Value['Display'])){
1380
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Display'] = $depth2Value['Display'];
1381
				}
1382
				if(isset($depth2Value['X'])){
1383
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
1384
				}
1385
				if(isset($depth2Value['Y'])){
1386
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
1387
				}
1388
				if(isset($depth2Value['Width'])){
1389
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Width'] = $depth2Value['Width'];
1390
				}
1391
				if(isset($depth2Value['Height'])){
1392
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Height'] = $depth2Value['Height'];
1393
				}
1394
				if(isset($depth2Value['ZOrder'])){
1395
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
1396
				}
1397
			}
1398
			foreach ($depth1Value['Texts'] as $depth2 => $depth2Value) {
1399
				if(isset($depth2Value['Text'])){
1400
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Text'] = $depth2Value['Text'];
1401
				}
1402
				if(isset($depth2Value['X'])){
1403
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
1404
				}
1405
				if(isset($depth2Value['Y'])){
1406
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
1407
				}
1408
				if(isset($depth2Value['FontType'])){
1409
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontType'] = $depth2Value['FontType'];
1410
				}
1411
				if(isset($depth2Value['FontSize'])){
1412
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontSize'] = $depth2Value['FontSize'];
1413
				}
1414
				if(isset($depth2Value['FontColor'])){
1415
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontColor'] = $depth2Value['FontColor'];
1416
				}
1417
				if(isset($depth2Value['ZOrder'])){
1418
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
1419
				}
1420
			}
1421
		}
1422
1423
		return $this;
1424
    }
1425
1426
    /**
1427
     * @param array $clockWidgets
1428
     *
1429
     * @return $this
1430
     */
1431
	public function withClockWidgets(array $clockWidgets)
1432
	{
1433
	    $this->data['ClockWidgets'] = $clockWidgets;
1434
		foreach ($clockWidgets as $depth1 => $depth1Value) {
1435
			if(isset($depth1Value['X'])){
1436
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1437
			}
1438
			if(isset($depth1Value['Y'])){
1439
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1440
			}
1441
			if(isset($depth1Value['FontType'])){
1442
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.FontType'] = $depth1Value['FontType'];
1443
			}
1444
			if(isset($depth1Value['FontSize'])){
1445
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.FontSize'] = $depth1Value['FontSize'];
1446
			}
1447
			if(isset($depth1Value['FontColor'])){
1448
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.FontColor'] = $depth1Value['FontColor'];
1449
			}
1450
			if(isset($depth1Value['ZOrder'])){
1451
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1452
			}
1453
		}
1454
1455
		return $this;
1456
    }
1457
1458
    /**
1459
     * @param array $watermarks
1460
     *
1461
     * @return $this
1462
     */
1463
	public function withWatermarks(array $watermarks)
1464
	{
1465
	    $this->data['Watermarks'] = $watermarks;
1466
		foreach ($watermarks as $depth1 => $depth1Value) {
1467
			if(isset($depth1Value['Url'])){
1468
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
1469
			}
1470
			if(isset($depth1Value['Alpha'])){
1471
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Alpha'] = $depth1Value['Alpha'];
1472
			}
1473
			if(isset($depth1Value['Display'])){
1474
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
1475
			}
1476
			if(isset($depth1Value['X'])){
1477
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1478
			}
1479
			if(isset($depth1Value['Y'])){
1480
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1481
			}
1482
			if(isset($depth1Value['Width'])){
1483
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
1484
			}
1485
			if(isset($depth1Value['Height'])){
1486
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
1487
			}
1488
			if(isset($depth1Value['ZOrder'])){
1489
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1490
			}
1491
		}
1492
1493
		return $this;
1494
    }
1495
1496
    /**
1497
     * @param array $layoutIds
1498
     *
1499
     * @return $this
1500
     */
1501
	public function withLayoutIds(array $layoutIds)
1502
	{
1503
	    $this->data['LayoutIds'] = $layoutIds;
1504
		foreach ($layoutIds as $i => $iValue) {
1505
			$this->options['query']['LayoutIds.' . ($i + 1)] = $iValue;
1506
		}
1507
1508
		return $this;
1509
    }
1510
1511
    /**
1512
     * @param array $subSpecUsers
1513
     *
1514
     * @return $this
1515
     */
1516
	public function withSubSpecUsers(array $subSpecUsers)
1517
	{
1518
	    $this->data['SubSpecUsers'] = $subSpecUsers;
1519
		foreach ($subSpecUsers as $i => $iValue) {
1520
			$this->options['query']['SubSpecUsers.' . ($i + 1)] = $iValue;
1521
		}
1522
1523
		return $this;
1524
    }
1525
1526
    /**
1527
     * @param array $backgrounds
1528
     *
1529
     * @return $this
1530
     */
1531
	public function withBackgrounds(array $backgrounds)
1532
	{
1533
	    $this->data['Backgrounds'] = $backgrounds;
1534
		foreach ($backgrounds as $depth1 => $depth1Value) {
1535
			if(isset($depth1Value['Url'])){
1536
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
1537
			}
1538
			if(isset($depth1Value['Display'])){
1539
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
1540
			}
1541
			if(isset($depth1Value['X'])){
1542
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1543
			}
1544
			if(isset($depth1Value['Y'])){
1545
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1546
			}
1547
			if(isset($depth1Value['Width'])){
1548
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
1549
			}
1550
			if(isset($depth1Value['Height'])){
1551
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
1552
			}
1553
			if(isset($depth1Value['ZOrder'])){
1554
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1555
			}
1556
		}
1557
1558
		return $this;
1559
    }
1560
}
1561
1562
/**
1563
 * @method array getUserPanes()
1564
 * @method string getTaskId()
1565
 * @method $this withTaskId($value)
1566
 * @method string getShowLog()
1567
 * @method $this withShowLog($value)
1568
 * @method string getOwnerId()
1569
 * @method $this withOwnerId($value)
1570
 * @method string getTemplateId()
1571
 * @method $this withTemplateId($value)
1572
 * @method array getSubSpecUsers()
1573
 * @method string getAppId()
1574
 * @method $this withAppId($value)
1575
 * @method string getChannelId()
1576
 * @method $this withChannelId($value)
1577
 */
1578
class StartRecordTask extends Rpc
1579
{
1580
1581
    /**
1582
     * @param array $userPanes
1583
     *
1584
     * @return $this
1585
     */
1586
	public function withUserPanes(array $userPanes)
1587
	{
1588
	    $this->data['UserPanes'] = $userPanes;
1589
		foreach ($userPanes as $depth1 => $depth1Value) {
1590
			if(isset($depth1Value['PaneId'])){
1591
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
1592
			}
1593
			if(isset($depth1Value['UserId'])){
1594
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.UserId'] = $depth1Value['UserId'];
1595
			}
1596
			if(isset($depth1Value['SourceType'])){
1597
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.SourceType'] = $depth1Value['SourceType'];
1598
			}
1599
			foreach ($depth1Value['Images'] as $depth2 => $depth2Value) {
1600
				if(isset($depth2Value['Url'])){
1601
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Url'] = $depth2Value['Url'];
1602
				}
1603
				if(isset($depth2Value['Display'])){
1604
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Display'] = $depth2Value['Display'];
1605
				}
1606
				if(isset($depth2Value['X'])){
1607
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
1608
				}
1609
				if(isset($depth2Value['Y'])){
1610
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
1611
				}
1612
				if(isset($depth2Value['Width'])){
1613
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Width'] = $depth2Value['Width'];
1614
				}
1615
				if(isset($depth2Value['Height'])){
1616
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Height'] = $depth2Value['Height'];
1617
				}
1618
				if(isset($depth2Value['ZOrder'])){
1619
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
1620
				}
1621
			}
1622
			foreach ($depth1Value['Texts'] as $depth2 => $depth2Value) {
1623
				if(isset($depth2Value['Text'])){
1624
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Text'] = $depth2Value['Text'];
1625
				}
1626
				if(isset($depth2Value['X'])){
1627
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
1628
				}
1629
				if(isset($depth2Value['Y'])){
1630
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
1631
				}
1632
				if(isset($depth2Value['FontType'])){
1633
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontType'] = $depth2Value['FontType'];
1634
				}
1635
				if(isset($depth2Value['FontSize'])){
1636
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontSize'] = $depth2Value['FontSize'];
1637
				}
1638
				if(isset($depth2Value['FontColor'])){
1639
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontColor'] = $depth2Value['FontColor'];
1640
				}
1641
				if(isset($depth2Value['ZOrder'])){
1642
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
1643
				}
1644
			}
1645
		}
1646
1647
		return $this;
1648
    }
1649
1650
    /**
1651
     * @param array $subSpecUsers
1652
     *
1653
     * @return $this
1654
     */
1655
	public function withSubSpecUsers(array $subSpecUsers)
1656
	{
1657
	    $this->data['SubSpecUsers'] = $subSpecUsers;
1658
		foreach ($subSpecUsers as $i => $iValue) {
1659
			$this->options['query']['SubSpecUsers.' . ($i + 1)] = $iValue;
1660
		}
1661
1662
		return $this;
1663
    }
1664
}
1665
1666
/**
1667
 * @method string getUserId()
1668
 * @method $this withUserId($value)
1669
 * @method string getShowLog()
1670
 * @method $this withShowLog($value)
1671
 * @method string getOwnerId()
1672
 * @method $this withOwnerId($value)
1673
 * @method string getAppId()
1674
 * @method $this withAppId($value)
1675
 * @method string getChannelId()
1676
 * @method $this withChannelId($value)
1677
 */
1678
class StopChannelUserPublish extends Rpc
1679
{
1680
}
1681
1682
/**
1683
 * @method string getTaskId()
1684
 * @method $this withTaskId($value)
1685
 * @method string getShowLog()
1686
 * @method $this withShowLog($value)
1687
 * @method string getOwnerId()
1688
 * @method $this withOwnerId($value)
1689
 * @method string getAppId()
1690
 * @method $this withAppId($value)
1691
 */
1692
class StopMPUTask extends Rpc
1693
{
1694
}
1695
1696
/**
1697
 * @method string getTaskId()
1698
 * @method $this withTaskId($value)
1699
 * @method string getShowLog()
1700
 * @method $this withShowLog($value)
1701
 * @method string getOwnerId()
1702
 * @method $this withOwnerId($value)
1703
 * @method string getAppId()
1704
 * @method $this withAppId($value)
1705
 */
1706
class StopRecordTask extends Rpc
1707
{
1708
}
1709
1710
/**
1711
 * @method array getParticipantIds()
1712
 * @method string getConferenceId()
1713
 * @method $this withConferenceId($value)
1714
 * @method string getShowLog()
1715
 * @method $this withShowLog($value)
1716
 * @method string getOwnerId()
1717
 * @method $this withOwnerId($value)
1718
 * @method string getAppId()
1719
 * @method $this withAppId($value)
1720
 */
1721
class UnmuteAudio extends Rpc
1722
{
1723
1724
    /**
1725
     * @param array $participantIds
1726
     *
1727
     * @return $this
1728
     */
1729
	public function withParticipantIds(array $participantIds)
1730
	{
1731
	    $this->data['ParticipantIds'] = $participantIds;
1732
		foreach ($participantIds as $i => $iValue) {
1733
			$this->options['query']['ParticipantIds.' . ($i + 1)] = $iValue;
1734
		}
1735
1736
		return $this;
1737
    }
1738
}
1739
1740
/**
1741
 * @method string getConferenceId()
1742
 * @method $this withConferenceId($value)
1743
 * @method string getShowLog()
1744
 * @method $this withShowLog($value)
1745
 * @method string getOwnerId()
1746
 * @method $this withOwnerId($value)
1747
 * @method string getParticipantId()
1748
 * @method $this withParticipantId($value)
1749
 * @method string getAppId()
1750
 * @method $this withAppId($value)
1751
 */
1752
class UnmuteAudioAll extends Rpc
1753
{
1754
}
1755
1756
/**
1757
 * @method string getShowLog()
1758
 * @method $this withShowLog($value)
1759
 * @method string getOwnerId()
1760
 * @method $this withOwnerId($value)
1761
 * @method string getNonce()
1762
 * @method $this withNonce($value)
1763
 * @method string getAppId()
1764
 * @method $this withAppId($value)
1765
 * @method string getChannelId()
1766
 * @method $this withChannelId($value)
1767
 */
1768
class UpdateChannel extends Rpc
1769
{
1770
}
1771
1772
/**
1773
 * @method array getUserPanes()
1774
 * @method string getBackgroundColor()
1775
 * @method $this withBackgroundColor($value)
1776
 * @method string getCropMode()
1777
 * @method $this withCropMode($value)
1778
 * @method array getLayoutIds()
1779
 * @method string getTaskId()
1780
 * @method $this withTaskId($value)
1781
 * @method array getClockWidgets()
1782
 * @method string getShowLog()
1783
 * @method $this withShowLog($value)
1784
 * @method array getWatermarks()
1785
 * @method string getOwnerId()
1786
 * @method $this withOwnerId($value)
1787
 * @method string getAppId()
1788
 * @method $this withAppId($value)
1789
 * @method array getBackgrounds()
1790
 */
1791
class UpdateMPULayout extends Rpc
1792
{
1793
1794
    /**
1795
     * @param array $userPanes
1796
     *
1797
     * @return $this
1798
     */
1799
	public function withUserPanes(array $userPanes)
1800
	{
1801
	    $this->data['UserPanes'] = $userPanes;
1802
		foreach ($userPanes as $depth1 => $depth1Value) {
1803
			if(isset($depth1Value['PaneId'])){
1804
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
1805
			}
1806
			if(isset($depth1Value['UserId'])){
1807
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.UserId'] = $depth1Value['UserId'];
1808
			}
1809
			if(isset($depth1Value['SourceType'])){
1810
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.SourceType'] = $depth1Value['SourceType'];
1811
			}
1812
			foreach ($depth1Value['Images'] as $depth2 => $depth2Value) {
1813
				if(isset($depth2Value['Url'])){
1814
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Url'] = $depth2Value['Url'];
1815
				}
1816
				if(isset($depth2Value['Display'])){
1817
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Display'] = $depth2Value['Display'];
1818
				}
1819
				if(isset($depth2Value['X'])){
1820
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
1821
				}
1822
				if(isset($depth2Value['Y'])){
1823
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
1824
				}
1825
				if(isset($depth2Value['Width'])){
1826
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Width'] = $depth2Value['Width'];
1827
				}
1828
				if(isset($depth2Value['Height'])){
1829
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Height'] = $depth2Value['Height'];
1830
				}
1831
				if(isset($depth2Value['ZOrder'])){
1832
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
1833
				}
1834
			}
1835
			foreach ($depth1Value['Texts'] as $depth2 => $depth2Value) {
1836
				if(isset($depth2Value['Text'])){
1837
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Text'] = $depth2Value['Text'];
1838
				}
1839
				if(isset($depth2Value['X'])){
1840
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
1841
				}
1842
				if(isset($depth2Value['Y'])){
1843
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
1844
				}
1845
				if(isset($depth2Value['FontType'])){
1846
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontType'] = $depth2Value['FontType'];
1847
				}
1848
				if(isset($depth2Value['FontSize'])){
1849
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontSize'] = $depth2Value['FontSize'];
1850
				}
1851
				if(isset($depth2Value['FontColor'])){
1852
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontColor'] = $depth2Value['FontColor'];
1853
				}
1854
				if(isset($depth2Value['ZOrder'])){
1855
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
1856
				}
1857
			}
1858
		}
1859
1860
		return $this;
1861
    }
1862
1863
    /**
1864
     * @param array $layoutIds
1865
     *
1866
     * @return $this
1867
     */
1868
	public function withLayoutIds(array $layoutIds)
1869
	{
1870
	    $this->data['LayoutIds'] = $layoutIds;
1871
		foreach ($layoutIds as $i => $iValue) {
1872
			$this->options['query']['LayoutIds.' . ($i + 1)] = $iValue;
1873
		}
1874
1875
		return $this;
1876
    }
1877
1878
    /**
1879
     * @param array $clockWidgets
1880
     *
1881
     * @return $this
1882
     */
1883
	public function withClockWidgets(array $clockWidgets)
1884
	{
1885
	    $this->data['ClockWidgets'] = $clockWidgets;
1886
		foreach ($clockWidgets as $depth1 => $depth1Value) {
1887
			if(isset($depth1Value['X'])){
1888
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1889
			}
1890
			if(isset($depth1Value['Y'])){
1891
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1892
			}
1893
			if(isset($depth1Value['FontType'])){
1894
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.FontType'] = $depth1Value['FontType'];
1895
			}
1896
			if(isset($depth1Value['FontSize'])){
1897
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.FontSize'] = $depth1Value['FontSize'];
1898
			}
1899
			if(isset($depth1Value['FontColor'])){
1900
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.FontColor'] = $depth1Value['FontColor'];
1901
			}
1902
			if(isset($depth1Value['ZOrder'])){
1903
				$this->options['query']['ClockWidgets.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1904
			}
1905
		}
1906
1907
		return $this;
1908
    }
1909
1910
    /**
1911
     * @param array $watermarks
1912
     *
1913
     * @return $this
1914
     */
1915
	public function withWatermarks(array $watermarks)
1916
	{
1917
	    $this->data['Watermarks'] = $watermarks;
1918
		foreach ($watermarks as $depth1 => $depth1Value) {
1919
			if(isset($depth1Value['Url'])){
1920
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
1921
			}
1922
			if(isset($depth1Value['Alpha'])){
1923
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Alpha'] = $depth1Value['Alpha'];
1924
			}
1925
			if(isset($depth1Value['Display'])){
1926
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
1927
			}
1928
			if(isset($depth1Value['X'])){
1929
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1930
			}
1931
			if(isset($depth1Value['Y'])){
1932
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1933
			}
1934
			if(isset($depth1Value['Width'])){
1935
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
1936
			}
1937
			if(isset($depth1Value['Height'])){
1938
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
1939
			}
1940
			if(isset($depth1Value['ZOrder'])){
1941
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1942
			}
1943
		}
1944
1945
		return $this;
1946
    }
1947
1948
    /**
1949
     * @param array $backgrounds
1950
     *
1951
     * @return $this
1952
     */
1953
	public function withBackgrounds(array $backgrounds)
1954
	{
1955
	    $this->data['Backgrounds'] = $backgrounds;
1956
		foreach ($backgrounds as $depth1 => $depth1Value) {
1957
			if(isset($depth1Value['Url'])){
1958
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
1959
			}
1960
			if(isset($depth1Value['Display'])){
1961
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
1962
			}
1963
			if(isset($depth1Value['X'])){
1964
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1965
			}
1966
			if(isset($depth1Value['Y'])){
1967
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1968
			}
1969
			if(isset($depth1Value['Width'])){
1970
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
1971
			}
1972
			if(isset($depth1Value['Height'])){
1973
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
1974
			}
1975
			if(isset($depth1Value['ZOrder'])){
1976
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1977
			}
1978
		}
1979
1980
		return $this;
1981
    }
1982
}
1983
1984
/**
1985
 * @method array getUserPanes()
1986
 * @method string getTaskId()
1987
 * @method $this withTaskId($value)
1988
 * @method string getShowLog()
1989
 * @method $this withShowLog($value)
1990
 * @method string getOwnerId()
1991
 * @method $this withOwnerId($value)
1992
 * @method string getTemplateId()
1993
 * @method $this withTemplateId($value)
1994
 * @method array getSubSpecUsers()
1995
 * @method string getAppId()
1996
 * @method $this withAppId($value)
1997
 * @method string getChannelId()
1998
 * @method $this withChannelId($value)
1999
 */
2000
class UpdateRecordTask extends Rpc
2001
{
2002
2003
    /**
2004
     * @param array $userPanes
2005
     *
2006
     * @return $this
2007
     */
2008
	public function withUserPanes(array $userPanes)
2009
	{
2010
	    $this->data['UserPanes'] = $userPanes;
2011
		foreach ($userPanes as $depth1 => $depth1Value) {
2012
			if(isset($depth1Value['PaneId'])){
2013
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
2014
			}
2015
			if(isset($depth1Value['UserId'])){
2016
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.UserId'] = $depth1Value['UserId'];
2017
			}
2018
			if(isset($depth1Value['SourceType'])){
2019
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.SourceType'] = $depth1Value['SourceType'];
2020
			}
2021
			foreach ($depth1Value['Images'] as $depth2 => $depth2Value) {
2022
				if(isset($depth2Value['Url'])){
2023
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Url'] = $depth2Value['Url'];
2024
				}
2025
				if(isset($depth2Value['Display'])){
2026
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Display'] = $depth2Value['Display'];
2027
				}
2028
				if(isset($depth2Value['X'])){
2029
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
2030
				}
2031
				if(isset($depth2Value['Y'])){
2032
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
2033
				}
2034
				if(isset($depth2Value['Width'])){
2035
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Width'] = $depth2Value['Width'];
2036
				}
2037
				if(isset($depth2Value['Height'])){
2038
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Height'] = $depth2Value['Height'];
2039
				}
2040
				if(isset($depth2Value['ZOrder'])){
2041
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
2042
				}
2043
			}
2044
			foreach ($depth1Value['Texts'] as $depth2 => $depth2Value) {
2045
				if(isset($depth2Value['Text'])){
2046
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Text'] = $depth2Value['Text'];
2047
				}
2048
				if(isset($depth2Value['X'])){
2049
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
2050
				}
2051
				if(isset($depth2Value['Y'])){
2052
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
2053
				}
2054
				if(isset($depth2Value['FontType'])){
2055
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontType'] = $depth2Value['FontType'];
2056
				}
2057
				if(isset($depth2Value['FontSize'])){
2058
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontSize'] = $depth2Value['FontSize'];
2059
				}
2060
				if(isset($depth2Value['FontColor'])){
2061
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontColor'] = $depth2Value['FontColor'];
2062
				}
2063
				if(isset($depth2Value['ZOrder'])){
2064
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
2065
				}
2066
			}
2067
		}
2068
2069
		return $this;
2070
    }
2071
2072
    /**
2073
     * @param array $subSpecUsers
2074
     *
2075
     * @return $this
2076
     */
2077
	public function withSubSpecUsers(array $subSpecUsers)
2078
	{
2079
	    $this->data['SubSpecUsers'] = $subSpecUsers;
2080
		foreach ($subSpecUsers as $i => $iValue) {
2081
			$this->options['query']['SubSpecUsers.' . ($i + 1)] = $iValue;
2082
		}
2083
2084
		return $this;
2085
    }
2086
}
2087
2088
/**
2089
 * @method array getFormats()
2090
 * @method string getOssFilePrefix()
2091
 * @method $this withOssFilePrefix($value)
2092
 * @method string getBackgroundColor()
2093
 * @method $this withBackgroundColor($value)
2094
 * @method string getTaskProfile()
2095
 * @method $this withTaskProfile($value)
2096
 * @method array getLayoutIds()
2097
 * @method string getShowLog()
2098
 * @method $this withShowLog($value)
2099
 * @method string getOssBucket()
2100
 * @method $this withOssBucket($value)
2101
 * @method string getMnsQueue()
2102
 * @method $this withMnsQueue($value)
2103
 * @method string getFileSplitInterval()
2104
 * @method $this withFileSplitInterval($value)
2105
 * @method string getHttpCallbackUrl()
2106
 * @method $this withHttpCallbackUrl($value)
2107
 * @method array getWatermarks()
2108
 * @method string getOwnerId()
2109
 * @method $this withOwnerId($value)
2110
 * @method string getTemplateId()
2111
 * @method $this withTemplateId($value)
2112
 * @method string getAppId()
2113
 * @method $this withAppId($value)
2114
 * @method array getBackgrounds()
2115
 * @method string getName()
2116
 * @method $this withName($value)
2117
 * @method string getMediaEncode()
2118
 * @method $this withMediaEncode($value)
2119
 */
2120
class UpdateRecordTemplate extends Rpc
2121
{
2122
2123
    /**
2124
     * @param array $formats
2125
     *
2126
     * @return $this
2127
     */
2128
	public function withFormats(array $formats)
2129
	{
2130
	    $this->data['Formats'] = $formats;
2131
		foreach ($formats as $i => $iValue) {
2132
			$this->options['query']['Formats.' . ($i + 1)] = $iValue;
2133
		}
2134
2135
		return $this;
2136
    }
2137
2138
    /**
2139
     * @param array $layoutIds
2140
     *
2141
     * @return $this
2142
     */
2143
	public function withLayoutIds(array $layoutIds)
2144
	{
2145
	    $this->data['LayoutIds'] = $layoutIds;
2146
		foreach ($layoutIds as $i => $iValue) {
2147
			$this->options['query']['LayoutIds.' . ($i + 1)] = $iValue;
2148
		}
2149
2150
		return $this;
2151
    }
2152
2153
    /**
2154
     * @param array $watermarks
2155
     *
2156
     * @return $this
2157
     */
2158
	public function withWatermarks(array $watermarks)
2159
	{
2160
	    $this->data['Watermarks'] = $watermarks;
2161
		foreach ($watermarks as $depth1 => $depth1Value) {
2162
			if(isset($depth1Value['Url'])){
2163
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
2164
			}
2165
			if(isset($depth1Value['Alpha'])){
2166
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Alpha'] = $depth1Value['Alpha'];
2167
			}
2168
			if(isset($depth1Value['Display'])){
2169
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
2170
			}
2171
			if(isset($depth1Value['X'])){
2172
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
2173
			}
2174
			if(isset($depth1Value['Y'])){
2175
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
2176
			}
2177
			if(isset($depth1Value['Width'])){
2178
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
2179
			}
2180
			if(isset($depth1Value['Height'])){
2181
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
2182
			}
2183
			if(isset($depth1Value['ZOrder'])){
2184
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
2185
			}
2186
		}
2187
2188
		return $this;
2189
    }
2190
2191
    /**
2192
     * @param array $backgrounds
2193
     *
2194
     * @return $this
2195
     */
2196
	public function withBackgrounds(array $backgrounds)
2197
	{
2198
	    $this->data['Backgrounds'] = $backgrounds;
2199
		foreach ($backgrounds as $depth1 => $depth1Value) {
2200
			if(isset($depth1Value['Url'])){
2201
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
2202
			}
2203
			if(isset($depth1Value['Display'])){
2204
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
2205
			}
2206
			if(isset($depth1Value['X'])){
2207
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
2208
			}
2209
			if(isset($depth1Value['Y'])){
2210
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
2211
			}
2212
			if(isset($depth1Value['Width'])){
2213
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
2214
			}
2215
			if(isset($depth1Value['Height'])){
2216
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
2217
			}
2218
			if(isset($depth1Value['ZOrder'])){
2219
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
2220
			}
2221
		}
2222
2223
		return $this;
2224
    }
2225
}
2226