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 ( 25f211...85bd0d )
by
unknown
18:55 queued 12:30
created

UpdateMPULayout   A

Complexity

Total Complexity 42

Size/Duplication

Total Lines 158
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 42
eloc 80
c 2
b 0
f 0
dl 0
loc 158
rs 9.0399

4 Methods

Rating   Name   Duplication   Size   Complexity  
C withWatermarks() 0 31 10
A withLayoutIds() 0 8 2
F withUserPanes() 0 62 21
B withBackgrounds() 0 28 9

How to fix   Complexity   

Complex Class

Complex classes like UpdateMPULayout often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

While breaking up the class, it is a good idea to analyze how other classes use UpdateMPULayout, and based on these observations, apply Extract Interface, too.

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 CreateMAURule createMAURule(array $options = [])
12
 * @method CreateMPULayout createMPULayout(array $options = [])
13
 * @method CreateMPURule createMPURule(array $options = [])
14
 * @method CreateServiceLinkedRoleForRtc createServiceLinkedRoleForRtc(array $options = [])
15
 * @method DeleteChannel deleteChannel(array $options = [])
16
 * @method DeleteConference deleteConference(array $options = [])
17
 * @method DeleteMAURule deleteMAURule(array $options = [])
18
 * @method DeleteMPULayout deleteMPULayout(array $options = [])
19
 * @method DeleteMPURule deleteMPURule(array $options = [])
20
 * @method DeleteRecordTemplate deleteRecordTemplate(array $options = [])
21
 * @method DescribeApps describeApps(array $options = [])
22
 * @method DescribeChannelParticipants describeChannelParticipants(array $options = [])
23
 * @method DescribeChannelUsers describeChannelUsers(array $options = [])
24
 * @method DescribeConferenceAuthInfo describeConferenceAuthInfo(array $options = [])
25
 * @method DescribeMAURule describeMAURule(array $options = [])
26
 * @method DescribeMPULayoutInfo describeMPULayoutInfo(array $options = [])
27
 * @method DescribeMPULayoutInfoList describeMPULayoutInfoList(array $options = [])
28
 * @method DescribeMPULayoutList describeMPULayoutList(array $options = [])
29
 * @method DescribeMPURule describeMPURule(array $options = [])
30
 * @method DescribeRecordTemplates describeRecordTemplates(array $options = [])
31
 * @method DescribeRTCAppKey describeRTCAppKey(array $options = [])
32
 * @method DescribeRtcChannelCntData describeRtcChannelCntData(array $options = [])
33
 * @method DescribeRtcChannelList describeRtcChannelList(array $options = [])
34
 * @method DescribeRtcChannelMetric describeRtcChannelMetric(array $options = [])
35
 * @method DescribeRtcChannelUserList describeRtcChannelUserList(array $options = [])
36
 * @method DescribeRtcDurationData describeRtcDurationData(array $options = [])
37
 * @method DescribeRtcPeakChannelCntData describeRtcPeakChannelCntData(array $options = [])
38
 * @method DescribeRtcPeakUserCntData describeRtcPeakUserCntData(array $options = [])
39
 * @method DescribeRtcQualityMetric describeRtcQualityMetric(array $options = [])
40
 * @method DescribeRtcUserCntData describeRtcUserCntData(array $options = [])
41
 * @method DescribeRtcUserList describeRtcUserList(array $options = [])
42
 * @method DescribeUserInfoInChannel describeUserInfoInChannel(array $options = [])
43
 * @method DisableMAURule disableMAURule(array $options = [])
44
 * @method DisableMPURule disableMPURule(array $options = [])
45
 * @method EnableMAURule enableMAURule(array $options = [])
46
 * @method EnableMPURule enableMPURule(array $options = [])
47
 * @method GetMPUTaskStatus getMPUTaskStatus(array $options = [])
48
 * @method ModifyApp modifyApp(array $options = [])
49
 * @method ModifyConference modifyConference(array $options = [])
50
 * @method ModifyMPULayout modifyMPULayout(array $options = [])
51
 * @method MuteAudio muteAudio(array $options = [])
52
 * @method MuteAudioAll muteAudioAll(array $options = [])
53
 * @method ReceiveNotify receiveNotify(array $options = [])
54
 * @method RemoveParticipants removeParticipants(array $options = [])
55
 * @method RemoveTerminals removeTerminals(array $options = [])
56
 * @method SetChannelProperty setChannelProperty(array $options = [])
57
 * @method StartMPUTask startMPUTask(array $options = [])
58
 * @method StartRecordTask startRecordTask(array $options = [])
59
 * @method StopChannelUserPublish stopChannelUserPublish(array $options = [])
60
 * @method StopMPUTask stopMPUTask(array $options = [])
61
 * @method StopRecordTask stopRecordTask(array $options = [])
62
 * @method UnmuteAudio unmuteAudio(array $options = [])
63
 * @method UnmuteAudioAll unmuteAudioAll(array $options = [])
64
 * @method UpdateChannel updateChannel(array $options = [])
65
 * @method UpdateMPULayout updateMPULayout(array $options = [])
66
 * @method UpdateRecordTemplate updateRecordTemplate(array $options = [])
67
 */
68
class RtcApiResolver extends ApiResolver
69
{
70
}
71
72
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
73
{
74
    /** @var string */
75
    public $product = 'rtc';
76
77
    /** @var string */
78
    public $version = '2018-01-11';
79
80
    /** @var string */
81
    public $method = 'POST';
82
83
    /** @var string */
84
    public $serviceCode = 'rtc';
85
}
86
87
/**
88
 * @method array getFormats()
89
 * @method string getOssFilePrefix()
90
 * @method $this withOssFilePrefix($value)
91
 * @method string getBackgroundColor()
92
 * @method $this withBackgroundColor($value)
93
 * @method string getTaskProfile()
94
 * @method $this withTaskProfile($value)
95
 * @method array getLayoutIds()
96
 * @method string getShowLog()
97
 * @method $this withShowLog($value)
98
 * @method string getOssBucket()
99
 * @method $this withOssBucket($value)
100
 * @method string getMnsQueue()
101
 * @method $this withMnsQueue($value)
102
 * @method string getFileSplitInterval()
103
 * @method $this withFileSplitInterval($value)
104
 * @method string getOwnerId()
105
 * @method $this withOwnerId($value)
106
 * @method string getAppId()
107
 * @method $this withAppId($value)
108
 * @method string getName()
109
 * @method $this withName($value)
110
 * @method string getMediaEncode()
111
 * @method $this withMediaEncode($value)
112
 */
113
class AddRecordTemplate extends Rpc
114
{
115
116
    /**
117
     * @param array $formats
118
     *
119
     * @return $this
120
     */
121
	public function withFormats(array $formats)
122
	{
123
	    $this->data['Formats'] = $formats;
124
		foreach ($formats as $i => $iValue) {
125
			$this->options['query']['Formats.' . ($i + 1)] = $iValue;
126
		}
127
128
		return $this;
129
    }
130
131
    /**
132
     * @param array $layoutIds
133
     *
134
     * @return $this
135
     */
136
	public function withLayoutIds(array $layoutIds)
137
	{
138
	    $this->data['LayoutIds'] = $layoutIds;
139
		foreach ($layoutIds as $i => $iValue) {
140
			$this->options['query']['LayoutIds.' . ($i + 1)] = $iValue;
141
		}
142
143
		return $this;
144
    }
145
}
146
147
/**
148
 * @method string getShowLog()
149
 * @method $this withShowLog($value)
150
 * @method string getOwnerId()
151
 * @method $this withOwnerId($value)
152
 * @method string getAppId()
153
 * @method $this withAppId($value)
154
 * @method string getChannelId()
155
 * @method $this withChannelId($value)
156
 */
157
class CreateChannel extends Rpc
158
{
159
}
160
161
/**
162
 * @method string getClientToken()
163
 * @method $this withClientToken($value)
164
 * @method string getStartTime()
165
 * @method $this withStartTime($value)
166
 * @method string getType()
167
 * @method $this withType($value)
168
 * @method string getConferenceName()
169
 * @method $this withConferenceName($value)
170
 * @method string getShowLog()
171
 * @method $this withShowLog($value)
172
 * @method string getOwnerId()
173
 * @method $this withOwnerId($value)
174
 * @method string getAppId()
175
 * @method $this withAppId($value)
176
 * @method string getRemindNotice()
177
 * @method $this withRemindNotice($value)
178
 */
179
class CreateConference extends Rpc
180
{
181
}
182
183
/**
184
 * @method string getUseridPrefix()
185
 * @method $this withUseridPrefix($value)
186
 * @method string getChannelPrefix()
187
 * @method $this withChannelPrefix($value)
188
 * @method string getShowLog()
189
 * @method $this withShowLog($value)
190
 * @method string getOwnerId()
191
 * @method $this withOwnerId($value)
192
 * @method string getMauTemplateId()
193
 * @method $this withMauTemplateId($value)
194
 * @method string getAppId()
195
 * @method $this withAppId($value)
196
 * @method string getCallBack()
197
 * @method $this withCallBack($value)
198
 */
199
class CreateMAURule extends Rpc
200
{
201
}
202
203
/**
204
 * @method array getPanes()
205
 * @method string getShowLog()
206
 * @method $this withShowLog($value)
207
 * @method string getOwnerId()
208
 * @method $this withOwnerId($value)
209
 * @method string getAppId()
210
 * @method $this withAppId($value)
211
 * @method string getName()
212
 * @method $this withName($value)
213
 * @method string getAudioMixCount()
214
 * @method $this withAudioMixCount($value)
215
 */
216
class CreateMPULayout extends Rpc
217
{
218
219
    /**
220
     * @param array $panes
221
     *
222
     * @return $this
223
     */
224
	public function withPanes(array $panes)
225
	{
226
	    $this->data['Panes'] = $panes;
227
		foreach ($panes as $depth1 => $depth1Value) {
228
			if(isset($depth1Value['PaneId'])){
229
				$this->options['query']['Panes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
230
			}
231
			if(isset($depth1Value['MajorPane'])){
232
				$this->options['query']['Panes.' . ($depth1 + 1) . '.MajorPane'] = $depth1Value['MajorPane'];
233
			}
234
			if(isset($depth1Value['X'])){
235
				$this->options['query']['Panes.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
236
			}
237
			if(isset($depth1Value['Y'])){
238
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
239
			}
240
			if(isset($depth1Value['Width'])){
241
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
242
			}
243
			if(isset($depth1Value['Height'])){
244
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
245
			}
246
			if(isset($depth1Value['ZOrder'])){
247
				$this->options['query']['Panes.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
248
			}
249
		}
250
251
		return $this;
252
    }
253
}
254
255
/**
256
 * @method string getBackgroundColor()
257
 * @method $this withBackgroundColor($value)
258
 * @method string getCropMode()
259
 * @method $this withCropMode($value)
260
 * @method string getChannelPrefix()
261
 * @method $this withChannelPrefix($value)
262
 * @method string getTaskProfile()
263
 * @method $this withTaskProfile($value)
264
 * @method array getLayoutIds()
265
 * @method string getShowLog()
266
 * @method $this withShowLog($value)
267
 * @method string getPlayDomain()
268
 * @method $this withPlayDomain($value)
269
 * @method string getOwnerId()
270
 * @method $this withOwnerId($value)
271
 * @method string getAppId()
272
 * @method $this withAppId($value)
273
 * @method string getMediaEncode()
274
 * @method $this withMediaEncode($value)
275
 * @method string getCallBack()
276
 * @method $this withCallBack($value)
277
 */
278
class CreateMPURule extends Rpc
279
{
280
281
    /**
282
     * @param array $layoutIds
283
     *
284
     * @return $this
285
     */
286
	public function withLayoutIds(array $layoutIds)
287
	{
288
	    $this->data['LayoutIds'] = $layoutIds;
289
		foreach ($layoutIds as $i => $iValue) {
290
			$this->options['query']['LayoutIds.' . ($i + 1)] = $iValue;
291
		}
292
293
		return $this;
294
    }
295
}
296
297
/**
298
 * @method string getShowLog()
299
 * @method $this withShowLog($value)
300
 * @method string getOwnerId()
301
 * @method $this withOwnerId($value)
302
 */
303
class CreateServiceLinkedRoleForRtc extends Rpc
304
{
305
}
306
307
/**
308
 * @method string getShowLog()
309
 * @method $this withShowLog($value)
310
 * @method string getOwnerId()
311
 * @method $this withOwnerId($value)
312
 * @method string getAppId()
313
 * @method $this withAppId($value)
314
 * @method string getChannelId()
315
 * @method $this withChannelId($value)
316
 */
317
class DeleteChannel extends Rpc
318
{
319
}
320
321
/**
322
 * @method string getConferenceId()
323
 * @method $this withConferenceId($value)
324
 * @method string getShowLog()
325
 * @method $this withShowLog($value)
326
 * @method string getOwnerId()
327
 * @method $this withOwnerId($value)
328
 * @method string getAppId()
329
 * @method $this withAppId($value)
330
 */
331
class DeleteConference extends Rpc
332
{
333
}
334
335
/**
336
 * @method string getShowLog()
337
 * @method $this withShowLog($value)
338
 * @method string getOwnerId()
339
 * @method $this withOwnerId($value)
340
 * @method string getAppId()
341
 * @method $this withAppId($value)
342
 * @method string getRuleId()
343
 * @method $this withRuleId($value)
344
 */
345
class DeleteMAURule extends Rpc
346
{
347
}
348
349
/**
350
 * @method string getLayoutId()
351
 * @method $this withLayoutId($value)
352
 * @method string getShowLog()
353
 * @method $this withShowLog($value)
354
 * @method string getOwnerId()
355
 * @method $this withOwnerId($value)
356
 * @method string getAppId()
357
 * @method $this withAppId($value)
358
 */
359
class DeleteMPULayout extends Rpc
360
{
361
}
362
363
/**
364
 * @method string getShowLog()
365
 * @method $this withShowLog($value)
366
 * @method string getOwnerId()
367
 * @method $this withOwnerId($value)
368
 * @method string getAppId()
369
 * @method $this withAppId($value)
370
 * @method string getRuleId()
371
 * @method $this withRuleId($value)
372
 */
373
class DeleteMPURule extends Rpc
374
{
375
}
376
377
/**
378
 * @method string getShowLog()
379
 * @method $this withShowLog($value)
380
 * @method string getOwnerId()
381
 * @method $this withOwnerId($value)
382
 * @method string getTemplateId()
383
 * @method $this withTemplateId($value)
384
 * @method string getAppId()
385
 * @method $this withAppId($value)
386
 */
387
class DeleteRecordTemplate extends Rpc
388
{
389
}
390
391
/**
392
 * @method string getPageNum()
393
 * @method $this withPageNum($value)
394
 * @method string getPageSize()
395
 * @method $this withPageSize($value)
396
 * @method string getShowLog()
397
 * @method $this withShowLog($value)
398
 * @method string getOrder()
399
 * @method $this withOrder($value)
400
 * @method string getOwnerId()
401
 * @method $this withOwnerId($value)
402
 * @method string getAppId()
403
 * @method $this withAppId($value)
404
 * @method string getStatus()
405
 * @method $this withStatus($value)
406
 */
407
class DescribeApps extends Rpc
408
{
409
}
410
411
/**
412
 * @method string getPageNum()
413
 * @method $this withPageNum($value)
414
 * @method string getPageSize()
415
 * @method $this withPageSize($value)
416
 * @method string getShowLog()
417
 * @method $this withShowLog($value)
418
 * @method string getOrder()
419
 * @method $this withOrder($value)
420
 * @method string getOwnerId()
421
 * @method $this withOwnerId($value)
422
 * @method string getAppId()
423
 * @method $this withAppId($value)
424
 * @method string getChannelId()
425
 * @method $this withChannelId($value)
426
 */
427
class DescribeChannelParticipants extends Rpc
428
{
429
}
430
431
/**
432
 * @method string getShowLog()
433
 * @method $this withShowLog($value)
434
 * @method string getOwnerId()
435
 * @method $this withOwnerId($value)
436
 * @method string getAppId()
437
 * @method $this withAppId($value)
438
 * @method string getChannelId()
439
 * @method $this withChannelId($value)
440
 */
441
class DescribeChannelUsers extends Rpc
442
{
443
}
444
445
/**
446
 * @method string getConferenceId()
447
 * @method $this withConferenceId($value)
448
 * @method string getShowLog()
449
 * @method $this withShowLog($value)
450
 * @method string getOwnerId()
451
 * @method $this withOwnerId($value)
452
 * @method string getAppId()
453
 * @method $this withAppId($value)
454
 */
455
class DescribeConferenceAuthInfo extends Rpc
456
{
457
}
458
459
/**
460
 * @method string getShowLog()
461
 * @method $this withShowLog($value)
462
 * @method string getOwnerId()
463
 * @method $this withOwnerId($value)
464
 * @method string getAppId()
465
 * @method $this withAppId($value)
466
 */
467
class DescribeMAURule extends Rpc
468
{
469
}
470
471
/**
472
 * @method string getLayoutId()
473
 * @method $this withLayoutId($value)
474
 * @method string getShowLog()
475
 * @method $this withShowLog($value)
476
 * @method string getOwnerId()
477
 * @method $this withOwnerId($value)
478
 * @method string getAppId()
479
 * @method $this withAppId($value)
480
 */
481
class DescribeMPULayoutInfo extends Rpc
482
{
483
}
484
485
/**
486
 * @method string getPageNum()
487
 * @method $this withPageNum($value)
488
 * @method string getLayoutId()
489
 * @method $this withLayoutId($value)
490
 * @method string getPageSize()
491
 * @method $this withPageSize($value)
492
 * @method string getShowLog()
493
 * @method $this withShowLog($value)
494
 * @method string getOwnerId()
495
 * @method $this withOwnerId($value)
496
 * @method string getAppId()
497
 * @method $this withAppId($value)
498
 * @method string getName()
499
 * @method $this withName($value)
500
 */
501
class DescribeMPULayoutInfoList extends Rpc
502
{
503
}
504
505
/**
506
 * @method string getShowLog()
507
 * @method $this withShowLog($value)
508
 * @method string getOwnerId()
509
 * @method $this withOwnerId($value)
510
 * @method string getAppId()
511
 * @method $this withAppId($value)
512
 */
513
class DescribeMPULayoutList extends Rpc
514
{
515
}
516
517
/**
518
 * @method string getShowLog()
519
 * @method $this withShowLog($value)
520
 * @method string getOwnerId()
521
 * @method $this withOwnerId($value)
522
 * @method string getAppId()
523
 * @method $this withAppId($value)
524
 */
525
class DescribeMPURule extends Rpc
526
{
527
}
528
529
/**
530
 * @method array getTemplateIds()
531
 * @method string getPageNum()
532
 * @method $this withPageNum($value)
533
 * @method string getPageSize()
534
 * @method $this withPageSize($value)
535
 * @method string getShowLog()
536
 * @method $this withShowLog($value)
537
 * @method string getOwnerId()
538
 * @method $this withOwnerId($value)
539
 * @method string getAppId()
540
 * @method $this withAppId($value)
541
 */
542
class DescribeRecordTemplates extends Rpc
543
{
544
545
    /**
546
     * @param array $templateIds
547
     *
548
     * @return $this
549
     */
550
	public function withTemplateIds(array $templateIds)
551
	{
552
	    $this->data['TemplateIds'] = $templateIds;
553
		foreach ($templateIds as $i => $iValue) {
554
			$this->options['query']['TemplateIds.' . ($i + 1)] = $iValue;
555
		}
556
557
		return $this;
558
    }
559
}
560
561
/**
562
 * @method string getShowLog()
563
 * @method $this withShowLog($value)
564
 * @method string getOwnerId()
565
 * @method $this withOwnerId($value)
566
 * @method string getAppId()
567
 * @method $this withAppId($value)
568
 */
569
class DescribeRTCAppKey extends Rpc
570
{
571
}
572
573
/**
574
 * @method string getStartTime()
575
 * @method $this withStartTime($value)
576
 * @method string getServiceArea()
577
 * @method $this withServiceArea($value)
578
 * @method string getShowLog()
579
 * @method $this withShowLog($value)
580
 * @method string getEndTime()
581
 * @method $this withEndTime($value)
582
 * @method string getOwnerId()
583
 * @method $this withOwnerId($value)
584
 * @method string getAppId()
585
 * @method $this withAppId($value)
586
 * @method string getInterval()
587
 * @method $this withInterval($value)
588
 */
589
class DescribeRtcChannelCntData extends Rpc
590
{
591
}
592
593
/**
594
 * @method string getSortType()
595
 * @method $this withSortType($value)
596
 * @method string getUserId()
597
 * @method $this withUserId($value)
598
 * @method string getServiceArea()
599
 * @method $this withServiceArea($value)
600
 * @method string getPageSize()
601
 * @method $this withPageSize($value)
602
 * @method string getShowLog()
603
 * @method $this withShowLog($value)
604
 * @method string getOwnerId()
605
 * @method $this withOwnerId($value)
606
 * @method string getPageNo()
607
 * @method $this withPageNo($value)
608
 * @method string getAppId()
609
 * @method $this withAppId($value)
610
 * @method string getChannelId()
611
 * @method $this withChannelId($value)
612
 * @method string getTimePoint()
613
 * @method $this withTimePoint($value)
614
 */
615
class DescribeRtcChannelList extends Rpc
616
{
617
}
618
619
/**
620
 * @method string getShowLog()
621
 * @method $this withShowLog($value)
622
 * @method string getOwnerId()
623
 * @method $this withOwnerId($value)
624
 * @method string getAppId()
625
 * @method $this withAppId($value)
626
 * @method string getChannelId()
627
 * @method $this withChannelId($value)
628
 * @method string getTimePoint()
629
 * @method $this withTimePoint($value)
630
 */
631
class DescribeRtcChannelMetric extends Rpc
632
{
633
}
634
635
/**
636
 * @method string getPageSize()
637
 * @method $this withPageSize($value)
638
 * @method string getShowLog()
639
 * @method $this withShowLog($value)
640
 * @method string getOwnerId()
641
 * @method $this withOwnerId($value)
642
 * @method string getPageNo()
643
 * @method $this withPageNo($value)
644
 * @method string getAppId()
645
 * @method $this withAppId($value)
646
 * @method string getChannelId()
647
 * @method $this withChannelId($value)
648
 * @method string getTimePoint()
649
 * @method $this withTimePoint($value)
650
 */
651
class DescribeRtcChannelUserList extends Rpc
652
{
653
}
654
655
/**
656
 * @method string getStartTime()
657
 * @method $this withStartTime($value)
658
 * @method string getServiceArea()
659
 * @method $this withServiceArea($value)
660
 * @method string getShowLog()
661
 * @method $this withShowLog($value)
662
 * @method string getEndTime()
663
 * @method $this withEndTime($value)
664
 * @method string getOwnerId()
665
 * @method $this withOwnerId($value)
666
 * @method string getAppId()
667
 * @method $this withAppId($value)
668
 * @method string getInterval()
669
 * @method $this withInterval($value)
670
 */
671
class DescribeRtcDurationData extends Rpc
672
{
673
}
674
675
/**
676
 * @method string getStartTime()
677
 * @method $this withStartTime($value)
678
 * @method string getServiceArea()
679
 * @method $this withServiceArea($value)
680
 * @method string getShowLog()
681
 * @method $this withShowLog($value)
682
 * @method string getEndTime()
683
 * @method $this withEndTime($value)
684
 * @method string getOwnerId()
685
 * @method $this withOwnerId($value)
686
 * @method string getAppId()
687
 * @method $this withAppId($value)
688
 * @method string getInterval()
689
 * @method $this withInterval($value)
690
 */
691
class DescribeRtcPeakChannelCntData extends Rpc
692
{
693
}
694
695
/**
696
 * @method string getStartTime()
697
 * @method $this withStartTime($value)
698
 * @method string getServiceArea()
699
 * @method $this withServiceArea($value)
700
 * @method string getShowLog()
701
 * @method $this withShowLog($value)
702
 * @method string getEndTime()
703
 * @method $this withEndTime($value)
704
 * @method string getOwnerId()
705
 * @method $this withOwnerId($value)
706
 * @method string getAppId()
707
 * @method $this withAppId($value)
708
 * @method string getInterval()
709
 * @method $this withInterval($value)
710
 */
711
class DescribeRtcPeakUserCntData extends Rpc
712
{
713
}
714
715
/**
716
 * @method string getStartTime()
717
 * @method $this withStartTime($value)
718
 * @method string getShowLog()
719
 * @method $this withShowLog($value)
720
 * @method string getSubUser()
721
 * @method $this withSubUser($value)
722
 * @method string getEndTime()
723
 * @method $this withEndTime($value)
724
 * @method string getOwnerId()
725
 * @method $this withOwnerId($value)
726
 * @method string getPubUser()
727
 * @method $this withPubUser($value)
728
 * @method string getAppId()
729
 * @method $this withAppId($value)
730
 * @method string getChannelId()
731
 * @method $this withChannelId($value)
732
 */
733
class DescribeRtcQualityMetric extends Rpc
734
{
735
}
736
737
/**
738
 * @method string getStartTime()
739
 * @method $this withStartTime($value)
740
 * @method string getServiceArea()
741
 * @method $this withServiceArea($value)
742
 * @method string getShowLog()
743
 * @method $this withShowLog($value)
744
 * @method string getEndTime()
745
 * @method $this withEndTime($value)
746
 * @method string getOwnerId()
747
 * @method $this withOwnerId($value)
748
 * @method string getAppId()
749
 * @method $this withAppId($value)
750
 * @method string getInterval()
751
 * @method $this withInterval($value)
752
 */
753
class DescribeRtcUserCntData extends Rpc
754
{
755
}
756
757
/**
758
 * @method string getStartTime()
759
 * @method $this withStartTime($value)
760
 * @method string getShowLog()
761
 * @method $this withShowLog($value)
762
 * @method string getSubUser()
763
 * @method $this withSubUser($value)
764
 * @method string getEndTime()
765
 * @method $this withEndTime($value)
766
 * @method string getOwnerId()
767
 * @method $this withOwnerId($value)
768
 * @method string getPubUser()
769
 * @method $this withPubUser($value)
770
 * @method string getAppId()
771
 * @method $this withAppId($value)
772
 * @method string getChannelId()
773
 * @method $this withChannelId($value)
774
 */
775
class DescribeRtcUserList extends Rpc
776
{
777
}
778
779
/**
780
 * @method string getUserId()
781
 * @method $this withUserId($value)
782
 * @method string getShowLog()
783
 * @method $this withShowLog($value)
784
 * @method string getOwnerId()
785
 * @method $this withOwnerId($value)
786
 * @method string getAppId()
787
 * @method $this withAppId($value)
788
 * @method string getChannelId()
789
 * @method $this withChannelId($value)
790
 */
791
class DescribeUserInfoInChannel extends Rpc
792
{
793
}
794
795
/**
796
 * @method string getShowLog()
797
 * @method $this withShowLog($value)
798
 * @method string getOwnerId()
799
 * @method $this withOwnerId($value)
800
 * @method string getAppId()
801
 * @method $this withAppId($value)
802
 * @method string getRuleId()
803
 * @method $this withRuleId($value)
804
 */
805
class DisableMAURule extends Rpc
806
{
807
}
808
809
/**
810
 * @method string getShowLog()
811
 * @method $this withShowLog($value)
812
 * @method string getOwnerId()
813
 * @method $this withOwnerId($value)
814
 * @method string getAppId()
815
 * @method $this withAppId($value)
816
 * @method string getRuleId()
817
 * @method $this withRuleId($value)
818
 */
819
class DisableMPURule extends Rpc
820
{
821
}
822
823
/**
824
 * @method string getShowLog()
825
 * @method $this withShowLog($value)
826
 * @method string getOwnerId()
827
 * @method $this withOwnerId($value)
828
 * @method string getAppId()
829
 * @method $this withAppId($value)
830
 * @method string getRuleId()
831
 * @method $this withRuleId($value)
832
 */
833
class EnableMAURule extends Rpc
834
{
835
}
836
837
/**
838
 * @method string getShowLog()
839
 * @method $this withShowLog($value)
840
 * @method string getOwnerId()
841
 * @method $this withOwnerId($value)
842
 * @method string getAppId()
843
 * @method $this withAppId($value)
844
 * @method string getRuleId()
845
 * @method $this withRuleId($value)
846
 */
847
class EnableMPURule extends Rpc
848
{
849
}
850
851
/**
852
 * @method string getTaskId()
853
 * @method $this withTaskId($value)
854
 * @method string getShowLog()
855
 * @method $this withShowLog($value)
856
 * @method string getOwnerId()
857
 * @method $this withOwnerId($value)
858
 * @method string getAppId()
859
 * @method $this withAppId($value)
860
 */
861
class GetMPUTaskStatus extends Rpc
862
{
863
}
864
865
/**
866
 * @method string getAppName()
867
 * @method $this withAppName($value)
868
 * @method string getShowLog()
869
 * @method $this withShowLog($value)
870
 * @method string getOwnerId()
871
 * @method $this withOwnerId($value)
872
 * @method string getAppId()
873
 * @method $this withAppId($value)
874
 */
875
class ModifyApp extends Rpc
876
{
877
}
878
879
/**
880
 * @method string getStartTime()
881
 * @method $this withStartTime($value)
882
 * @method string getType()
883
 * @method $this withType($value)
884
 * @method string getConferenceId()
885
 * @method $this withConferenceId($value)
886
 * @method string getConferenceName()
887
 * @method $this withConferenceName($value)
888
 * @method string getShowLog()
889
 * @method $this withShowLog($value)
890
 * @method string getOwnerId()
891
 * @method $this withOwnerId($value)
892
 * @method string getAppId()
893
 * @method $this withAppId($value)
894
 * @method string getRemindNotice()
895
 * @method $this withRemindNotice($value)
896
 */
897
class ModifyConference extends Rpc
898
{
899
}
900
901
/**
902
 * @method string getLayoutId()
903
 * @method $this withLayoutId($value)
904
 * @method array getPanes()
905
 * @method string getShowLog()
906
 * @method $this withShowLog($value)
907
 * @method string getOwnerId()
908
 * @method $this withOwnerId($value)
909
 * @method string getAppId()
910
 * @method $this withAppId($value)
911
 * @method string getName()
912
 * @method $this withName($value)
913
 * @method string getAudioMixCount()
914
 * @method $this withAudioMixCount($value)
915
 */
916
class ModifyMPULayout extends Rpc
917
{
918
919
    /**
920
     * @param array $panes
921
     *
922
     * @return $this
923
     */
924
	public function withPanes(array $panes)
925
	{
926
	    $this->data['Panes'] = $panes;
927
		foreach ($panes as $depth1 => $depth1Value) {
928
			if(isset($depth1Value['PaneId'])){
929
				$this->options['query']['Panes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
930
			}
931
			if(isset($depth1Value['MajorPane'])){
932
				$this->options['query']['Panes.' . ($depth1 + 1) . '.MajorPane'] = $depth1Value['MajorPane'];
933
			}
934
			if(isset($depth1Value['X'])){
935
				$this->options['query']['Panes.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
936
			}
937
			if(isset($depth1Value['Y'])){
938
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
939
			}
940
			if(isset($depth1Value['Width'])){
941
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
942
			}
943
			if(isset($depth1Value['Height'])){
944
				$this->options['query']['Panes.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
945
			}
946
			if(isset($depth1Value['ZOrder'])){
947
				$this->options['query']['Panes.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
948
			}
949
		}
950
951
		return $this;
952
    }
953
}
954
955
/**
956
 * @method array getParticipantIds()
957
 * @method string getConferenceId()
958
 * @method $this withConferenceId($value)
959
 * @method string getShowLog()
960
 * @method $this withShowLog($value)
961
 * @method string getOwnerId()
962
 * @method $this withOwnerId($value)
963
 * @method string getAppId()
964
 * @method $this withAppId($value)
965
 */
966
class MuteAudio extends Rpc
967
{
968
969
    /**
970
     * @param array $participantIds
971
     *
972
     * @return $this
973
     */
974
	public function withParticipantIds(array $participantIds)
975
	{
976
	    $this->data['ParticipantIds'] = $participantIds;
977
		foreach ($participantIds as $i => $iValue) {
978
			$this->options['query']['ParticipantIds.' . ($i + 1)] = $iValue;
979
		}
980
981
		return $this;
982
    }
983
}
984
985
/**
986
 * @method string getConferenceId()
987
 * @method $this withConferenceId($value)
988
 * @method string getShowLog()
989
 * @method $this withShowLog($value)
990
 * @method string getOwnerId()
991
 * @method $this withOwnerId($value)
992
 * @method string getParticipantId()
993
 * @method $this withParticipantId($value)
994
 * @method string getAppId()
995
 * @method $this withAppId($value)
996
 */
997
class MuteAudioAll extends Rpc
998
{
999
}
1000
1001
/**
1002
 * @method string getTraceId()
1003
 * @method $this withTraceId($value)
1004
 * @method string getContent()
1005
 * @method $this withContent($value)
1006
 * @method string getEvent()
1007
 * @method $this withEvent($value)
1008
 * @method string getShowLog()
1009
 * @method $this withShowLog($value)
1010
 * @method string getOwnerId()
1011
 * @method $this withOwnerId($value)
1012
 * @method string getContentType()
1013
 * @method $this withContentType($value)
1014
 * @method string getBizId()
1015
 * @method $this withBizId($value)
1016
 */
1017
class ReceiveNotify extends Rpc
1018
{
1019
}
1020
1021
/**
1022
 * @method array getParticipantIds()
1023
 * @method string getConferenceId()
1024
 * @method $this withConferenceId($value)
1025
 * @method string getShowLog()
1026
 * @method $this withShowLog($value)
1027
 * @method string getOwnerId()
1028
 * @method $this withOwnerId($value)
1029
 * @method string getAppId()
1030
 * @method $this withAppId($value)
1031
 */
1032
class RemoveParticipants extends Rpc
1033
{
1034
1035
    /**
1036
     * @param array $participantIds
1037
     *
1038
     * @return $this
1039
     */
1040
	public function withParticipantIds(array $participantIds)
1041
	{
1042
	    $this->data['ParticipantIds'] = $participantIds;
1043
		foreach ($participantIds as $i => $iValue) {
1044
			$this->options['query']['ParticipantIds.' . ($i + 1)] = $iValue;
1045
		}
1046
1047
		return $this;
1048
    }
1049
}
1050
1051
/**
1052
 * @method array getTerminalIds()
1053
 * @method string getShowLog()
1054
 * @method $this withShowLog($value)
1055
 * @method string getOwnerId()
1056
 * @method $this withOwnerId($value)
1057
 * @method string getAppId()
1058
 * @method $this withAppId($value)
1059
 * @method string getChannelId()
1060
 * @method $this withChannelId($value)
1061
 */
1062
class RemoveTerminals extends Rpc
1063
{
1064
1065
    /**
1066
     * @param array $terminalIds
1067
     *
1068
     * @return $this
1069
     */
1070
	public function withTerminalIds(array $terminalIds)
1071
	{
1072
	    $this->data['TerminalIds'] = $terminalIds;
1073
		foreach ($terminalIds as $i => $iValue) {
1074
			$this->options['query']['TerminalIds.' . ($i + 1)] = $iValue;
1075
		}
1076
1077
		return $this;
1078
    }
1079
}
1080
1081
/**
1082
 * @method string getStartTime()
1083
 * @method $this withStartTime($value)
1084
 * @method string getMaxUserNum()
1085
 * @method $this withMaxUserNum($value)
1086
 * @method string getDuration()
1087
 * @method $this withDuration($value)
1088
 * @method string getShowLog()
1089
 * @method $this withShowLog($value)
1090
 * @method string getTopics()
1091
 * @method $this withTopics($value)
1092
 * @method string getOwnerId()
1093
 * @method $this withOwnerId($value)
1094
 * @method string getPriority()
1095
 * @method $this withPriority($value)
1096
 * @method string getAppId()
1097
 * @method $this withAppId($value)
1098
 * @method string getChannelId()
1099
 * @method $this withChannelId($value)
1100
 */
1101
class SetChannelProperty extends Rpc
1102
{
1103
}
1104
1105
/**
1106
 * @method string getPayloadType()
1107
 * @method $this withPayloadType($value)
1108
 * @method array getUserPanes()
1109
 * @method string getRtpExtInfo()
1110
 * @method $this withRtpExtInfo($value)
1111
 * @method string getBackgroundColor()
1112
 * @method $this withBackgroundColor($value)
1113
 * @method string getCropMode()
1114
 * @method $this withCropMode($value)
1115
 * @method string getReportVad()
1116
 * @method $this withReportVad($value)
1117
 * @method string getTaskProfile()
1118
 * @method $this withTaskProfile($value)
1119
 * @method array getLayoutIds()
1120
 * @method string getTaskId()
1121
 * @method $this withTaskId($value)
1122
 * @method string getShowLog()
1123
 * @method $this withShowLog($value)
1124
 * @method string getStreamURL()
1125
 * @method $this withStreamURL($value)
1126
 * @method string getVadInterval()
1127
 * @method $this withVadInterval($value)
1128
 * @method array getWatermarks()
1129
 * @method string getOwnerId()
1130
 * @method $this withOwnerId($value)
1131
 * @method array getSubSpecUsers()
1132
 * @method string getAppId()
1133
 * @method $this withAppId($value)
1134
 * @method array getBackgrounds()
1135
 * @method string getTimeStampRef()
1136
 * @method $this withTimeStampRef($value)
1137
 * @method string getMediaEncode()
1138
 * @method $this withMediaEncode($value)
1139
 * @method string getChannelId()
1140
 * @method $this withChannelId($value)
1141
 */
1142
class StartMPUTask extends Rpc
1143
{
1144
1145
    /**
1146
     * @param array $userPanes
1147
     *
1148
     * @return $this
1149
     */
1150
	public function withUserPanes(array $userPanes)
1151
	{
1152
	    $this->data['UserPanes'] = $userPanes;
1153
		foreach ($userPanes as $depth1 => $depth1Value) {
1154
			if(isset($depth1Value['PaneId'])){
1155
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
1156
			}
1157
			if(isset($depth1Value['UserId'])){
1158
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.UserId'] = $depth1Value['UserId'];
1159
			}
1160
			if(isset($depth1Value['SourceType'])){
1161
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.SourceType'] = $depth1Value['SourceType'];
1162
			}
1163
			foreach ($depth1Value['Images'] as $depth2 => $depth2Value) {
1164
				if(isset($depth2Value['Url'])){
1165
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Url'] = $depth2Value['Url'];
1166
				}
1167
				if(isset($depth2Value['Display'])){
1168
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Display'] = $depth2Value['Display'];
1169
				}
1170
				if(isset($depth2Value['X'])){
1171
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
1172
				}
1173
				if(isset($depth2Value['Y'])){
1174
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
1175
				}
1176
				if(isset($depth2Value['Width'])){
1177
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Width'] = $depth2Value['Width'];
1178
				}
1179
				if(isset($depth2Value['Height'])){
1180
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Height'] = $depth2Value['Height'];
1181
				}
1182
				if(isset($depth2Value['ZOrder'])){
1183
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
1184
				}
1185
			}
1186
			foreach ($depth1Value['Texts'] as $depth2 => $depth2Value) {
1187
				if(isset($depth2Value['Text'])){
1188
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Text'] = $depth2Value['Text'];
1189
				}
1190
				if(isset($depth2Value['X'])){
1191
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
1192
				}
1193
				if(isset($depth2Value['Y'])){
1194
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
1195
				}
1196
				if(isset($depth2Value['FontType'])){
1197
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontType'] = $depth2Value['FontType'];
1198
				}
1199
				if(isset($depth2Value['FontSize'])){
1200
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontSize'] = $depth2Value['FontSize'];
1201
				}
1202
				if(isset($depth2Value['FontColor'])){
1203
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontColor'] = $depth2Value['FontColor'];
1204
				}
1205
				if(isset($depth2Value['ZOrder'])){
1206
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
1207
				}
1208
			}
1209
		}
1210
1211
		return $this;
1212
    }
1213
1214
    /**
1215
     * @param array $layoutIds
1216
     *
1217
     * @return $this
1218
     */
1219
	public function withLayoutIds(array $layoutIds)
1220
	{
1221
	    $this->data['LayoutIds'] = $layoutIds;
1222
		foreach ($layoutIds as $i => $iValue) {
1223
			$this->options['query']['LayoutIds.' . ($i + 1)] = $iValue;
1224
		}
1225
1226
		return $this;
1227
    }
1228
1229
    /**
1230
     * @param array $watermarks
1231
     *
1232
     * @return $this
1233
     */
1234
	public function withWatermarks(array $watermarks)
1235
	{
1236
	    $this->data['Watermarks'] = $watermarks;
1237
		foreach ($watermarks as $depth1 => $depth1Value) {
1238
			if(isset($depth1Value['Url'])){
1239
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
1240
			}
1241
			if(isset($depth1Value['Alpha'])){
1242
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Alpha'] = $depth1Value['Alpha'];
1243
			}
1244
			if(isset($depth1Value['Display'])){
1245
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
1246
			}
1247
			if(isset($depth1Value['X'])){
1248
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1249
			}
1250
			if(isset($depth1Value['Y'])){
1251
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1252
			}
1253
			if(isset($depth1Value['Width'])){
1254
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
1255
			}
1256
			if(isset($depth1Value['Height'])){
1257
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
1258
			}
1259
			if(isset($depth1Value['ZOrder'])){
1260
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1261
			}
1262
		}
1263
1264
		return $this;
1265
    }
1266
1267
    /**
1268
     * @param array $subSpecUsers
1269
     *
1270
     * @return $this
1271
     */
1272
	public function withSubSpecUsers(array $subSpecUsers)
1273
	{
1274
	    $this->data['SubSpecUsers'] = $subSpecUsers;
1275
		foreach ($subSpecUsers as $i => $iValue) {
1276
			$this->options['query']['SubSpecUsers.' . ($i + 1)] = $iValue;
1277
		}
1278
1279
		return $this;
1280
    }
1281
1282
    /**
1283
     * @param array $backgrounds
1284
     *
1285
     * @return $this
1286
     */
1287
	public function withBackgrounds(array $backgrounds)
1288
	{
1289
	    $this->data['Backgrounds'] = $backgrounds;
1290
		foreach ($backgrounds as $depth1 => $depth1Value) {
1291
			if(isset($depth1Value['Url'])){
1292
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
1293
			}
1294
			if(isset($depth1Value['Display'])){
1295
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
1296
			}
1297
			if(isset($depth1Value['X'])){
1298
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1299
			}
1300
			if(isset($depth1Value['Y'])){
1301
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1302
			}
1303
			if(isset($depth1Value['Width'])){
1304
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
1305
			}
1306
			if(isset($depth1Value['Height'])){
1307
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
1308
			}
1309
			if(isset($depth1Value['ZOrder'])){
1310
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1311
			}
1312
		}
1313
1314
		return $this;
1315
    }
1316
}
1317
1318
/**
1319
 * @method array getUserPanes()
1320
 * @method string getTaskId()
1321
 * @method $this withTaskId($value)
1322
 * @method string getShowLog()
1323
 * @method $this withShowLog($value)
1324
 * @method string getOwnerId()
1325
 * @method $this withOwnerId($value)
1326
 * @method string getTemplateId()
1327
 * @method $this withTemplateId($value)
1328
 * @method array getSubSpecUsers()
1329
 * @method string getAppId()
1330
 * @method $this withAppId($value)
1331
 * @method string getChannelId()
1332
 * @method $this withChannelId($value)
1333
 */
1334
class StartRecordTask extends Rpc
1335
{
1336
1337
    /**
1338
     * @param array $userPanes
1339
     *
1340
     * @return $this
1341
     */
1342
	public function withUserPanes(array $userPanes)
1343
	{
1344
	    $this->data['UserPanes'] = $userPanes;
1345
		foreach ($userPanes as $depth1 => $depth1Value) {
1346
			if(isset($depth1Value['PaneId'])){
1347
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
1348
			}
1349
			if(isset($depth1Value['UserId'])){
1350
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.UserId'] = $depth1Value['UserId'];
1351
			}
1352
			if(isset($depth1Value['SourceType'])){
1353
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.SourceType'] = $depth1Value['SourceType'];
1354
			}
1355
		}
1356
1357
		return $this;
1358
    }
1359
1360
    /**
1361
     * @param array $subSpecUsers
1362
     *
1363
     * @return $this
1364
     */
1365
	public function withSubSpecUsers(array $subSpecUsers)
1366
	{
1367
	    $this->data['SubSpecUsers'] = $subSpecUsers;
1368
		foreach ($subSpecUsers as $i => $iValue) {
1369
			$this->options['query']['SubSpecUsers.' . ($i + 1)] = $iValue;
1370
		}
1371
1372
		return $this;
1373
    }
1374
}
1375
1376
/**
1377
 * @method string getUserId()
1378
 * @method $this withUserId($value)
1379
 * @method string getShowLog()
1380
 * @method $this withShowLog($value)
1381
 * @method string getOwnerId()
1382
 * @method $this withOwnerId($value)
1383
 * @method string getAppId()
1384
 * @method $this withAppId($value)
1385
 * @method string getChannelId()
1386
 * @method $this withChannelId($value)
1387
 */
1388
class StopChannelUserPublish extends Rpc
1389
{
1390
}
1391
1392
/**
1393
 * @method string getTaskId()
1394
 * @method $this withTaskId($value)
1395
 * @method string getShowLog()
1396
 * @method $this withShowLog($value)
1397
 * @method string getOwnerId()
1398
 * @method $this withOwnerId($value)
1399
 * @method string getAppId()
1400
 * @method $this withAppId($value)
1401
 */
1402
class StopMPUTask extends Rpc
1403
{
1404
}
1405
1406
/**
1407
 * @method string getTaskId()
1408
 * @method $this withTaskId($value)
1409
 * @method string getShowLog()
1410
 * @method $this withShowLog($value)
1411
 * @method string getOwnerId()
1412
 * @method $this withOwnerId($value)
1413
 * @method string getAppId()
1414
 * @method $this withAppId($value)
1415
 */
1416
class StopRecordTask extends Rpc
1417
{
1418
}
1419
1420
/**
1421
 * @method array getParticipantIds()
1422
 * @method string getConferenceId()
1423
 * @method $this withConferenceId($value)
1424
 * @method string getShowLog()
1425
 * @method $this withShowLog($value)
1426
 * @method string getOwnerId()
1427
 * @method $this withOwnerId($value)
1428
 * @method string getAppId()
1429
 * @method $this withAppId($value)
1430
 */
1431
class UnmuteAudio extends Rpc
1432
{
1433
1434
    /**
1435
     * @param array $participantIds
1436
     *
1437
     * @return $this
1438
     */
1439
	public function withParticipantIds(array $participantIds)
1440
	{
1441
	    $this->data['ParticipantIds'] = $participantIds;
1442
		foreach ($participantIds as $i => $iValue) {
1443
			$this->options['query']['ParticipantIds.' . ($i + 1)] = $iValue;
1444
		}
1445
1446
		return $this;
1447
    }
1448
}
1449
1450
/**
1451
 * @method string getConferenceId()
1452
 * @method $this withConferenceId($value)
1453
 * @method string getShowLog()
1454
 * @method $this withShowLog($value)
1455
 * @method string getOwnerId()
1456
 * @method $this withOwnerId($value)
1457
 * @method string getParticipantId()
1458
 * @method $this withParticipantId($value)
1459
 * @method string getAppId()
1460
 * @method $this withAppId($value)
1461
 */
1462
class UnmuteAudioAll extends Rpc
1463
{
1464
}
1465
1466
/**
1467
 * @method string getShowLog()
1468
 * @method $this withShowLog($value)
1469
 * @method string getOwnerId()
1470
 * @method $this withOwnerId($value)
1471
 * @method string getNonce()
1472
 * @method $this withNonce($value)
1473
 * @method string getAppId()
1474
 * @method $this withAppId($value)
1475
 * @method string getChannelId()
1476
 * @method $this withChannelId($value)
1477
 */
1478
class UpdateChannel extends Rpc
1479
{
1480
}
1481
1482
/**
1483
 * @method array getUserPanes()
1484
 * @method string getBackgroundColor()
1485
 * @method $this withBackgroundColor($value)
1486
 * @method string getCropMode()
1487
 * @method $this withCropMode($value)
1488
 * @method array getLayoutIds()
1489
 * @method string getTaskId()
1490
 * @method $this withTaskId($value)
1491
 * @method string getShowLog()
1492
 * @method $this withShowLog($value)
1493
 * @method array getWatermarks()
1494
 * @method string getOwnerId()
1495
 * @method $this withOwnerId($value)
1496
 * @method string getAppId()
1497
 * @method $this withAppId($value)
1498
 * @method array getBackgrounds()
1499
 */
1500
class UpdateMPULayout extends Rpc
1501
{
1502
1503
    /**
1504
     * @param array $userPanes
1505
     *
1506
     * @return $this
1507
     */
1508
	public function withUserPanes(array $userPanes)
1509
	{
1510
	    $this->data['UserPanes'] = $userPanes;
1511
		foreach ($userPanes as $depth1 => $depth1Value) {
1512
			if(isset($depth1Value['PaneId'])){
1513
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.PaneId'] = $depth1Value['PaneId'];
1514
			}
1515
			if(isset($depth1Value['UserId'])){
1516
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.UserId'] = $depth1Value['UserId'];
1517
			}
1518
			if(isset($depth1Value['SourceType'])){
1519
				$this->options['query']['UserPanes.' . ($depth1 + 1) . '.SourceType'] = $depth1Value['SourceType'];
1520
			}
1521
			foreach ($depth1Value['Images'] as $depth2 => $depth2Value) {
1522
				if(isset($depth2Value['Url'])){
1523
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Url'] = $depth2Value['Url'];
1524
				}
1525
				if(isset($depth2Value['Display'])){
1526
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Display'] = $depth2Value['Display'];
1527
				}
1528
				if(isset($depth2Value['X'])){
1529
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
1530
				}
1531
				if(isset($depth2Value['Y'])){
1532
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
1533
				}
1534
				if(isset($depth2Value['Width'])){
1535
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Width'] = $depth2Value['Width'];
1536
				}
1537
				if(isset($depth2Value['Height'])){
1538
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.Height'] = $depth2Value['Height'];
1539
				}
1540
				if(isset($depth2Value['ZOrder'])){
1541
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Images.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
1542
				}
1543
			}
1544
			foreach ($depth1Value['Texts'] as $depth2 => $depth2Value) {
1545
				if(isset($depth2Value['Text'])){
1546
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Text'] = $depth2Value['Text'];
1547
				}
1548
				if(isset($depth2Value['X'])){
1549
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.X'] = $depth2Value['X'];
1550
				}
1551
				if(isset($depth2Value['Y'])){
1552
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.Y'] = $depth2Value['Y'];
1553
				}
1554
				if(isset($depth2Value['FontType'])){
1555
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontType'] = $depth2Value['FontType'];
1556
				}
1557
				if(isset($depth2Value['FontSize'])){
1558
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontSize'] = $depth2Value['FontSize'];
1559
				}
1560
				if(isset($depth2Value['FontColor'])){
1561
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.FontColor'] = $depth2Value['FontColor'];
1562
				}
1563
				if(isset($depth2Value['ZOrder'])){
1564
					$this->options['query']['UserPanes.' . ($depth1 + 1) . '.Texts.' . ($depth2 + 1) . '.ZOrder'] = $depth2Value['ZOrder'];
1565
				}
1566
			}
1567
		}
1568
1569
		return $this;
1570
    }
1571
1572
    /**
1573
     * @param array $layoutIds
1574
     *
1575
     * @return $this
1576
     */
1577
	public function withLayoutIds(array $layoutIds)
1578
	{
1579
	    $this->data['LayoutIds'] = $layoutIds;
1580
		foreach ($layoutIds as $i => $iValue) {
1581
			$this->options['query']['LayoutIds.' . ($i + 1)] = $iValue;
1582
		}
1583
1584
		return $this;
1585
    }
1586
1587
    /**
1588
     * @param array $watermarks
1589
     *
1590
     * @return $this
1591
     */
1592
	public function withWatermarks(array $watermarks)
1593
	{
1594
	    $this->data['Watermarks'] = $watermarks;
1595
		foreach ($watermarks as $depth1 => $depth1Value) {
1596
			if(isset($depth1Value['Url'])){
1597
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
1598
			}
1599
			if(isset($depth1Value['Alpha'])){
1600
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Alpha'] = $depth1Value['Alpha'];
1601
			}
1602
			if(isset($depth1Value['Display'])){
1603
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
1604
			}
1605
			if(isset($depth1Value['X'])){
1606
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1607
			}
1608
			if(isset($depth1Value['Y'])){
1609
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1610
			}
1611
			if(isset($depth1Value['Width'])){
1612
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
1613
			}
1614
			if(isset($depth1Value['Height'])){
1615
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
1616
			}
1617
			if(isset($depth1Value['ZOrder'])){
1618
				$this->options['query']['Watermarks.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1619
			}
1620
		}
1621
1622
		return $this;
1623
    }
1624
1625
    /**
1626
     * @param array $backgrounds
1627
     *
1628
     * @return $this
1629
     */
1630
	public function withBackgrounds(array $backgrounds)
1631
	{
1632
	    $this->data['Backgrounds'] = $backgrounds;
1633
		foreach ($backgrounds as $depth1 => $depth1Value) {
1634
			if(isset($depth1Value['Url'])){
1635
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
1636
			}
1637
			if(isset($depth1Value['Display'])){
1638
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Display'] = $depth1Value['Display'];
1639
			}
1640
			if(isset($depth1Value['X'])){
1641
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
1642
			}
1643
			if(isset($depth1Value['Y'])){
1644
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
1645
			}
1646
			if(isset($depth1Value['Width'])){
1647
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Width'] = $depth1Value['Width'];
1648
			}
1649
			if(isset($depth1Value['Height'])){
1650
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.Height'] = $depth1Value['Height'];
1651
			}
1652
			if(isset($depth1Value['ZOrder'])){
1653
				$this->options['query']['Backgrounds.' . ($depth1 + 1) . '.ZOrder'] = $depth1Value['ZOrder'];
1654
			}
1655
		}
1656
1657
		return $this;
1658
    }
1659
}
1660
1661
/**
1662
 * @method array getFormats()
1663
 * @method string getOssFilePrefix()
1664
 * @method $this withOssFilePrefix($value)
1665
 * @method string getBackgroundColor()
1666
 * @method $this withBackgroundColor($value)
1667
 * @method string getTaskProfile()
1668
 * @method $this withTaskProfile($value)
1669
 * @method array getLayoutIds()
1670
 * @method string getShowLog()
1671
 * @method $this withShowLog($value)
1672
 * @method string getOssBucket()
1673
 * @method $this withOssBucket($value)
1674
 * @method string getMnsQueue()
1675
 * @method $this withMnsQueue($value)
1676
 * @method string getFileSplitInterval()
1677
 * @method $this withFileSplitInterval($value)
1678
 * @method string getOwnerId()
1679
 * @method $this withOwnerId($value)
1680
 * @method string getTemplateId()
1681
 * @method $this withTemplateId($value)
1682
 * @method string getAppId()
1683
 * @method $this withAppId($value)
1684
 * @method string getName()
1685
 * @method $this withName($value)
1686
 * @method string getMediaEncode()
1687
 * @method $this withMediaEncode($value)
1688
 */
1689
class UpdateRecordTemplate extends Rpc
1690
{
1691
1692
    /**
1693
     * @param array $formats
1694
     *
1695
     * @return $this
1696
     */
1697
	public function withFormats(array $formats)
1698
	{
1699
	    $this->data['Formats'] = $formats;
1700
		foreach ($formats as $i => $iValue) {
1701
			$this->options['query']['Formats.' . ($i + 1)] = $iValue;
1702
		}
1703
1704
		return $this;
1705
    }
1706
1707
    /**
1708
     * @param array $layoutIds
1709
     *
1710
     * @return $this
1711
     */
1712
	public function withLayoutIds(array $layoutIds)
1713
	{
1714
	    $this->data['LayoutIds'] = $layoutIds;
1715
		foreach ($layoutIds as $i => $iValue) {
1716
			$this->options['query']['LayoutIds.' . ($i + 1)] = $iValue;
1717
		}
1718
1719
		return $this;
1720
    }
1721
}
1722