c8osdkjscore
Version:
convertigo's sdk js core
19 lines (14 loc) • 598 B
text/typescript
/**
* Defines whether the response should be retrieved from local cache or from Convertigo server when the device can access the network.<br/>
* When the device has no network access, the local cache response is used, if existing.
*/
export class Priority {
public isAvailable: boolean;
//noinspection JSUnusedLocalSymbols
public static SERVER: Priority = new Priority(false);
//noinspection JSUnusedLocalSymbols
public static LOCAL: Priority = new Priority(true);
constructor(isAvailable: boolean) {
this.isAvailable = isAvailable;
}
}