-
Notifications
You must be signed in to change notification settings - Fork 10
/
SrtStatisticSend.ts
65 lines (55 loc) · 1.21 KB
/
SrtStatisticSend.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
64
import {map, mapArray} from '../common/Mapper';
/**
* @export
* @class SrtStatisticSend
*/
export class SrtStatisticSend {
/**
* @type {number}
* @memberof SrtStatisticSend
*/
public bytes?: number;
/**
* @type {number}
* @memberof SrtStatisticSend
*/
public bytesDropped?: number;
/**
* @type {number}
* @memberof SrtStatisticSend
*/
public mbitRate?: number;
/**
* @type {number}
* @memberof SrtStatisticSend
*/
public packets?: number;
/**
* @type {number}
* @memberof SrtStatisticSend
*/
public packetsDropped?: number;
/**
* @type {number}
* @memberof SrtStatisticSend
*/
public packetsLost?: number;
/**
* @type {number}
* @memberof SrtStatisticSend
*/
public packetsRetransmitted?: number;
constructor(obj?: Partial<SrtStatisticSend>) {
if(!obj) {
return;
}
this.bytes = map(obj.bytes);
this.bytesDropped = map(obj.bytesDropped);
this.mbitRate = map(obj.mbitRate);
this.packets = map(obj.packets);
this.packetsDropped = map(obj.packetsDropped);
this.packetsLost = map(obj.packetsLost);
this.packetsRetransmitted = map(obj.packetsRetransmitted);
}
}
export default SrtStatisticSend;