-
Notifications
You must be signed in to change notification settings - Fork 10
/
HistoryEncoding.ts
117 lines (102 loc) · 2.91 KB
/
HistoryEncoding.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import {map, mapArray} from '../common/Mapper';
import ConvertSccCaption from './ConvertSccCaption';
import Encoding from './Encoding';
import HistoryMuxing from './HistoryMuxing';
import HistoryStream from './HistoryStream';
import Keyframe from './Keyframe';
import LiveEncoding from './LiveEncoding';
import SidecarFile from './SidecarFile';
import StartEncodingRequest from './StartEncodingRequest';
import StartLiveEncodingRequest from './StartLiveEncodingRequest';
import StreamInput from './StreamInput';
import Task from './Task';
import TransferRetry from './TransferRetry';
/**
* @export
* @class HistoryEncoding
*/
export class HistoryEncoding {
/**
* Encoding
* @type {Encoding}
* @memberof HistoryEncoding
*/
public encoding?: Encoding;
/**
* Live Details
* @type {LiveEncoding}
* @memberof HistoryEncoding
*/
public live?: LiveEncoding;
/**
* VOD Encoding Start Request
* @type {StartEncodingRequest}
* @memberof HistoryEncoding
*/
public vodStartReqeust?: StartEncodingRequest;
/**
* Live Encoding Start Request
* @type {StartLiveEncodingRequest}
* @memberof HistoryEncoding
*/
public liveStartReqeust?: StartLiveEncodingRequest;
/**
* Encoding Status
* @type {Task}
* @memberof HistoryEncoding
*/
public status?: Task;
/**
* @type {StreamInput[]}
* @memberof HistoryEncoding
*/
public inputStreams?: StreamInput[];
/**
* @type {HistoryStream[]}
* @memberof HistoryEncoding
*/
public streams?: HistoryStream[];
/**
* @type {HistoryMuxing[]}
* @memberof HistoryEncoding
*/
public muxings?: HistoryMuxing[];
/**
* @type {Keyframe[]}
* @memberof HistoryEncoding
*/
public keyFrames?: Keyframe[];
/**
* @type {SidecarFile[]}
* @memberof HistoryEncoding
*/
public sidecarFiles?: SidecarFile[];
/**
* @type {TransferRetry[]}
* @memberof HistoryEncoding
*/
public transferRetries?: TransferRetry[];
/**
* @type {ConvertSccCaption[]}
* @memberof HistoryEncoding
*/
public convertSccCaptions?: ConvertSccCaption[];
constructor(obj?: Partial<HistoryEncoding>) {
if(!obj) {
return;
}
this.encoding = map(obj.encoding, Encoding);
this.live = map(obj.live, LiveEncoding);
this.vodStartReqeust = map(obj.vodStartReqeust, StartEncodingRequest);
this.liveStartReqeust = map(obj.liveStartReqeust, StartLiveEncodingRequest);
this.status = map(obj.status, Task);
this.inputStreams = mapArray(obj.inputStreams, StreamInput);
this.streams = mapArray(obj.streams, HistoryStream);
this.muxings = mapArray(obj.muxings, HistoryMuxing);
this.keyFrames = mapArray(obj.keyFrames, Keyframe);
this.sidecarFiles = mapArray(obj.sidecarFiles, SidecarFile);
this.transferRetries = mapArray(obj.transferRetries, TransferRetry);
this.convertSccCaptions = mapArray(obj.convertSccCaptions, ConvertSccCaption);
}
}
export default HistoryEncoding;