-
Notifications
You must be signed in to change notification settings - Fork 10
/
SimpleEncodingLiveJobOutput.ts
38 lines (32 loc) · 1.23 KB
/
SimpleEncodingLiveJobOutput.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import {map, mapArray} from '../common/Mapper';
import SimpleEncodingLiveJobCdnOutput from './SimpleEncodingLiveJobCdnOutput';
import SimpleEncodingLiveJobOutputType from './SimpleEncodingLiveJobOutputType';
import SimpleEncodingLiveJobUrlOutput from './SimpleEncodingLiveJobUrlOutput';
import SimpleEncodingLiveMaxResolution from './SimpleEncodingLiveMaxResolution';
export type SimpleEncodingLiveJobOutputUnion =
SimpleEncodingLiveJobUrlOutput |
SimpleEncodingLiveJobCdnOutput;
/**
* @export
* @class SimpleEncodingLiveJobOutput
*/
export class SimpleEncodingLiveJobOutput {
protected static readonly _discriminatorName = 'type';
protected static readonly _discriminatorMapping: { [key in keyof typeof SimpleEncodingLiveJobOutputType]: string; } = {
URL: 'SimpleEncodingLiveJobUrlOutput',
CDN: 'SimpleEncodingLiveJobCdnOutput'
};
/**
* The maximum output resolution to be generated
* @type {SimpleEncodingLiveMaxResolution}
* @memberof SimpleEncodingLiveJobOutput
*/
public maxResolution?: SimpleEncodingLiveMaxResolution;
constructor(obj?: Partial<SimpleEncodingLiveJobOutput>) {
if(!obj) {
return;
}
this.maxResolution = map(obj.maxResolution);
}
}
export default SimpleEncodingLiveJobOutput;