-
Notifications
You must be signed in to change notification settings - Fork 10
/
StreamsVideoCreateRequest.ts
65 lines (56 loc) · 1.48 KB
/
StreamsVideoCreateRequest.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';
import StreamsEncodingProfile from './StreamsEncodingProfile';
/**
* @export
* @class StreamsVideoCreateRequest
*/
export class StreamsVideoCreateRequest {
/**
* The streams input asset URL
* @type {string}
* @memberof StreamsVideoCreateRequest
*/
public assetUrl?: string;
/**
* Title of the stream
* @type {string}
* @memberof StreamsVideoCreateRequest
*/
public title?: string;
/**
* Description of the stream
* @type {string}
* @memberof StreamsVideoCreateRequest
*/
public description?: string;
/**
* Id of the domain restriction config to use
* @type {string}
* @memberof StreamsVideoCreateRequest
*/
public domainRestrictionId?: string;
/**
* Profile to be used in encoding
* @type {StreamsEncodingProfile}
* @memberof StreamsVideoCreateRequest
*/
public encodingProfile?: StreamsEncodingProfile;
/**
* If set to true the Stream is only accessible via a token
* @type {boolean}
* @memberof StreamsVideoCreateRequest
*/
public signed?: boolean;
constructor(obj?: Partial<StreamsVideoCreateRequest>) {
if(!obj) {
return;
}
this.assetUrl = map(obj.assetUrl);
this.title = map(obj.title);
this.description = map(obj.description);
this.domainRestrictionId = map(obj.domainRestrictionId);
this.encodingProfile = map(obj.encodingProfile);
this.signed = map(obj.signed);
}
}
export default StreamsVideoCreateRequest;