-
Notifications
You must be signed in to change notification settings - Fork 10
/
StatisticsPerMuxing.ts
64 lines (55 loc) · 1.37 KB
/
StatisticsPerMuxing.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
60
61
62
63
import {map, mapArray} from '../common/Mapper';
import MuxingType from './MuxingType';
/**
* @export
* @class StatisticsPerMuxing
*/
export class StatisticsPerMuxing {
/**
* ID of the stream (required)
* @type {string}
* @memberof StatisticsPerMuxing
*/
public streamId?: string;
/**
* ID of the muxing (required)
* @type {string}
* @memberof StatisticsPerMuxing
*/
public muxingId?: string;
/**
* Multiplier for the encoded minutes. Depends on muxing type. (required)
* @type {number}
* @memberof StatisticsPerMuxing
*/
public multiplicator?: number;
/**
* Encoded bytes. (required)
* @type {number}
* @memberof StatisticsPerMuxing
*/
public encodedBytes?: number;
/**
* Resulting minutes you will be charged for. (required)
* @type {number}
* @memberof StatisticsPerMuxing
*/
public billableMinutes?: number;
/**
* @type {MuxingType}
* @memberof StatisticsPerMuxing
*/
public muxingType?: MuxingType;
constructor(obj?: Partial<StatisticsPerMuxing>) {
if(!obj) {
return;
}
this.streamId = map(obj.streamId);
this.muxingId = map(obj.muxingId);
this.multiplicator = map(obj.multiplicator);
this.encodedBytes = map(obj.encodedBytes);
this.billableMinutes = map(obj.billableMinutes);
this.muxingType = map(obj.muxingType);
}
}
export default StatisticsPerMuxing;