-
Notifications
You must be signed in to change notification settings - Fork 10
/
StreamsStyleConfigResponse.ts
56 lines (48 loc) · 1.3 KB
/
StreamsStyleConfigResponse.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
import {map, mapArray} from '../common/Mapper';
import StreamsStyleConfigPlayerStyle from './StreamsStyleConfigPlayerStyle';
/**
* @export
* @class StreamsStyleConfigResponse
*/
export class StreamsStyleConfigResponse {
/**
* The identifier of the style config
* @type {string}
* @memberof StreamsStyleConfigResponse
*/
public id?: string;
/**
* UUID of the associated organization
* @type {string}
* @memberof StreamsStyleConfigResponse
*/
public orgId?: string;
/**
* @type {StreamsStyleConfigPlayerStyle}
* @memberof StreamsStyleConfigResponse
*/
public playerStyle?: StreamsStyleConfigPlayerStyle;
/**
* URL of the watermark image
* @type {string}
* @memberof StreamsStyleConfigResponse
*/
public watermarkUrl?: string;
/**
* Target link of the watermark image
* @type {string}
* @memberof StreamsStyleConfigResponse
*/
public watermarkTargetLink?: string;
constructor(obj?: Partial<StreamsStyleConfigResponse>) {
if(!obj) {
return;
}
this.id = map(obj.id);
this.orgId = map(obj.orgId);
this.playerStyle = map(obj.playerStyle, StreamsStyleConfigPlayerStyle);
this.watermarkUrl = map(obj.watermarkUrl);
this.watermarkTargetLink = map(obj.watermarkTargetLink);
}
}
export default StreamsStyleConfigResponse;