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 ( 78e55c...d8bdd6 )
by
unknown
07:20
created

StartRecordTask::withUserPanes()   F

Complexity

Conditions 21
Paths > 20000

Size

Total Lines 62
Code Lines 39

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 39
c 2
b 0
f 0
dl 0
loc 62
rs 0
cc 21
nc 133129
nop 1

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