-
Notifications
You must be signed in to change notification settings - Fork 10
/
SimpleEncodingVodJobRequest.ts
60 lines (52 loc) · 1.93 KB
/
SimpleEncodingVodJobRequest.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import {map, mapArray} from '../common/Mapper';
import EncodingTemplate from './EncodingTemplate';
import SimpleEncodingVodJobInput from './SimpleEncodingVodJobInput';
import SimpleEncodingVodJobOptions from './SimpleEncodingVodJobOptions';
import SimpleEncodingVodJobOutput from './SimpleEncodingVodJobOutput';
/**
* @export
* @class SimpleEncodingVodJobRequest
*/
export class SimpleEncodingVodJobRequest {
/**
* The template that will be used for the encoding.
* @type {EncodingTemplate}
* @memberof SimpleEncodingVodJobRequest
*/
public encodingTemplate?: EncodingTemplate;
/**
* Please take a look at the [documentation](https://bitmovin.com/docs/encoding/articles/simple-encoding-api#inputs-outputs) (required)
* @type {SimpleEncodingVodJobInput[]}
* @memberof SimpleEncodingVodJobRequest
*/
public inputs?: SimpleEncodingVodJobInput[];
/**
* Please take a look at the [documentation](https://bitmovin.com/docs/encoding/articles/simple-encoding-api#inputs-outputs) (required)
* @type {SimpleEncodingVodJobOutput[]}
* @memberof SimpleEncodingVodJobRequest
*/
public outputs?: SimpleEncodingVodJobOutput[];
/**
* Options to customize the Simple Encoding Job
* @type {SimpleEncodingVodJobOptions}
* @memberof SimpleEncodingVodJobRequest
*/
public options?: SimpleEncodingVodJobOptions;
/**
* This property will be used for naming the encoding and the manifests.
* @type {string}
* @memberof SimpleEncodingVodJobRequest
*/
public name?: string;
constructor(obj?: Partial<SimpleEncodingVodJobRequest>) {
if(!obj) {
return;
}
this.encodingTemplate = map(obj.encodingTemplate);
this.inputs = mapArray(obj.inputs, SimpleEncodingVodJobInput);
this.outputs = mapArray(obj.outputs, SimpleEncodingVodJobOutput);
this.options = map(obj.options, SimpleEncodingVodJobOptions);
this.name = map(obj.name);
}
}
export default SimpleEncodingVodJobRequest;