-
Notifications
You must be signed in to change notification settings - Fork 10
/
StreamsVideoUpdateRequest.ts
57 lines (49 loc) · 1.26 KB
/
StreamsVideoUpdateRequest.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
import {map, mapArray} from '../common/Mapper';
import StreamsVideoStatus from './StreamsVideoStatus';
/**
* @export
* @class StreamsVideoUpdateRequest
*/
export class StreamsVideoUpdateRequest {
/**
* The new status of the stream
* @type {StreamsVideoStatus}
* @memberof StreamsVideoUpdateRequest
*/
public status?: StreamsVideoStatus;
/**
* The new title of the stream
* @type {string}
* @memberof StreamsVideoUpdateRequest
*/
public title?: string;
/**
* The new description of the stream
* @type {string}
* @memberof StreamsVideoUpdateRequest
*/
public description?: string;
/**
* URL to hosted poster image
* @type {string}
* @memberof StreamsVideoUpdateRequest
*/
public posterUrl?: string;
/**
* Id of the domain restriction config to use
* @type {string}
* @memberof StreamsVideoUpdateRequest
*/
public domainRestrictionId?: string;
constructor(obj?: Partial<StreamsVideoUpdateRequest>) {
if(!obj) {
return;
}
this.status = map(obj.status);
this.title = map(obj.title);
this.description = map(obj.description);
this.posterUrl = map(obj.posterUrl);
this.domainRestrictionId = map(obj.domainRestrictionId);
}
}
export default StreamsVideoUpdateRequest;