mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
48 lines
823 B
JavaScript
48 lines
823 B
JavaScript
|
|
import { AdProviderInterface } from "../ad_provider";
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Stores information about where we are iframed
|
|||
|
|
*/
|
|||
|
|
export class EmbedProvider {
|
|||
|
|
/**
|
|||
|
|
* @returns {string}
|
|||
|
|
*/
|
|||
|
|
getId() {
|
|||
|
|
abstract;
|
|||
|
|
return "";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Whether this provider supports ads
|
|||
|
|
* @returns {boolean}
|
|||
|
|
*/
|
|||
|
|
getSupportsAds() {
|
|||
|
|
return false;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Returns the ad provider
|
|||
|
|
* @returns {typeof AdProviderInterface}
|
|||
|
|
*/
|
|||
|
|
getAdProvider() {
|
|||
|
|
abstract;
|
|||
|
|
return null;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Whetherexternal links are supported
|
|||
|
|
* @returns {boolean}
|
|||
|
|
*/
|
|||
|
|
getSupportsExternalLinks() {
|
|||
|
|
return true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Returns whether this provider is iframed
|
|||
|
|
* @returns {boolean}
|
|||
|
|
*/
|
|||
|
|
getIsIframed() {
|
|||
|
|
return true;
|
|||
|
|
}
|
|||
|
|
}
|