-
Notifications
You must be signed in to change notification settings - Fork 10
/
StreamsDomainRestrictionResponse.ts
48 lines (41 loc) · 1.18 KB
/
StreamsDomainRestrictionResponse.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
import {map, mapArray} from '../common/Mapper';
/**
* @export
* @class StreamsDomainRestrictionResponse
*/
export class StreamsDomainRestrictionResponse {
/**
* The identifier of the streams domain restriction entity
* @type {string}
* @memberof StreamsDomainRestrictionResponse
*/
public id?: string;
/**
* The list of allowed domains
* @type {string[]}
* @memberof StreamsDomainRestrictionResponse
*/
public allowedDomains?: string[];
/**
* Controls if requests to domain restricted streams without referer header should be allowed or denied
* @type {boolean}
* @memberof StreamsDomainRestrictionResponse
*/
public allowNoReferer?: boolean;
/**
* Controls if Stream is accessible via sharing URL or not
* @type {boolean}
* @memberof StreamsDomainRestrictionResponse
*/
public allowShare?: boolean;
constructor(obj?: Partial<StreamsDomainRestrictionResponse>) {
if(!obj) {
return;
}
this.id = map(obj.id);
this.allowedDomains = mapArray(obj.allowedDomains);
this.allowNoReferer = map(obj.allowNoReferer);
this.allowShare = map(obj.allowShare);
}
}
export default StreamsDomainRestrictionResponse;