UNPKG

richpartners-telegram-sdk

Version:
23 lines 927 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AdsFactory = void 0; const index_js_1 = require("../factory/index.js"); const index_js_2 = require("../types/index.js"); class AdsFactory { static createRichPartnersAdsByType(type) { switch (type) { case index_js_2.WidgetType.PUSH_STYLE: return new index_js_1.PushStyleAds(); case index_js_2.WidgetType.EMBEDDED_BANNER: return new index_js_1.EmbeddedBannerAds(); case index_js_2.WidgetType.INTERSTITIAL_BANNER: return new index_js_1.InterstitialBannerAds(); case index_js_2.WidgetType.INTERSTITIAL_VIDEO: return new index_js_1.InterstitialVideoAds(); default: throw new Error("WidgetType not found"); } } } exports.AdsFactory = AdsFactory; //# sourceMappingURL=AdsFactory.js.map