-
Notifications
You must be signed in to change notification settings - Fork 10
/
PlayerThirdPartyLicensing.ts
49 lines (42 loc) · 1.4 KB
/
PlayerThirdPartyLicensing.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
import {map, mapArray} from '../common/Mapper';
import PlayerThirdPartyLicensingErrorAction from './PlayerThirdPartyLicensingErrorAction';
/**
* @export
* @class PlayerThirdPartyLicensing
*/
export class PlayerThirdPartyLicensing {
/**
* URL to your license check server (required)
* @type {string}
* @memberof PlayerThirdPartyLicensing
*/
public licenseCheckServer?: string;
/**
* Timeout in ms (required)
* @type {number}
* @memberof PlayerThirdPartyLicensing
*/
public licenseCheckTimeout?: number;
/**
* Specify if the Licensing Request should fail or not on Third Party Licensing Error (required)
* @type {PlayerThirdPartyLicensingErrorAction}
* @memberof PlayerThirdPartyLicensing
*/
public errorAction?: PlayerThirdPartyLicensingErrorAction;
/**
* Specify if the Licensing Request should fail or not on Third Party Licensing timeout (required)
* @type {PlayerThirdPartyLicensingErrorAction}
* @memberof PlayerThirdPartyLicensing
*/
public timeoutAction?: PlayerThirdPartyLicensingErrorAction;
constructor(obj?: Partial<PlayerThirdPartyLicensing>) {
if(!obj) {
return;
}
this.licenseCheckServer = map(obj.licenseCheckServer);
this.licenseCheckTimeout = map(obj.licenseCheckTimeout);
this.errorAction = map(obj.errorAction);
this.timeoutAction = map(obj.timeoutAction);
}
}
export default PlayerThirdPartyLicensing;