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 ( eaedfc...2e4acf )
by
unknown
07:22
created

DescribeRecordTasks::withTaskIds()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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