-
Notifications
You must be signed in to change notification settings - Fork 10
/
BillableEncodingMinutesDetails.ts
56 lines (48 loc) · 1.2 KB
/
BillableEncodingMinutesDetails.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
import {map, mapArray} from '../common/Mapper';
/**
* @export
* @class BillableEncodingMinutesDetails
*/
export class BillableEncodingMinutesDetails {
/**
* Only set if resolution information is not present.
* @type {number}
* @memberof BillableEncodingMinutesDetails
*/
public UNKNOWN?: number;
/**
* Billable minutes for audio. Available if stream is an audio stream.
* @type {number}
* @memberof BillableEncodingMinutesDetails
*/
public AUDIO?: number;
/**
* Billable minutes for SD resolutions.
* @type {number}
* @memberof BillableEncodingMinutesDetails
*/
public SD?: number;
/**
* Billable minutes for HD resolutions.
* @type {number}
* @memberof BillableEncodingMinutesDetails
*/
public HD?: number;
/**
* Billable minutes for UHD resolutions.
* @type {number}
* @memberof BillableEncodingMinutesDetails
*/
public UHD?: number;
constructor(obj?: Partial<BillableEncodingMinutesDetails>) {
if(!obj) {
return;
}
this.UNKNOWN = map(obj.UNKNOWN);
this.AUDIO = map(obj.AUDIO);
this.SD = map(obj.SD);
this.HD = map(obj.HD);
this.UHD = map(obj.UHD);
}
}
export default BillableEncodingMinutesDetails;