Files
discord-decomp/modules/collectibles/records/WideBannerBlockRecord.tsx
T
2026-11-01 12:12:55 +02:00

42 lines
1.5 KiB
TypeScript

// Metro module 5842 (f5843).
import { ShopBlockType } from "../../../_bundle/Module5829";
class WideBannerBlockRecord {
type = ShopBlockType.WIDE_BANNER;
constructor(a0) {
this.title = a0.title;
this.body = a0.body;
this.categoryStoreListingId = a0.category_store_listing_id;
this.bannerTextColor = a0.banner_text_color;
this.bannerBodyTextColor = a0.banner_body_text_color;
this.disableCta = a0.disable_cta;
this.bannerURL = a0.wide_banner_url;
this.bannerAnimatedURL = a0.wide_banner_animated_url;
this.logoURL = a0.logo_url;
this.ctaText = a0.cta_text;
this.ctaRoute = a0.cta_route;
this.isDismissible = a0.is_dismissible;
this.dismissibleContentVersion = a0.dismissible_content_version;
}
static fromServer(a0) {
const r9 = {
__proto__: WideBannerBlockRecord.prototype
};
r9.type = ShopBlockType.WIDE_BANNER;
r9.title = a0.title;
r9.body = a0.body;
r9.categoryStoreListingId = a0.category_store_listing_id;
r9.bannerTextColor = a0.banner_text_color;
r9.bannerBodyTextColor = a0.banner_body_text_color;
r9.disableCta = a0.disable_cta;
r9.bannerURL = a0.wide_banner_url;
r9.bannerAnimatedURL = a0.wide_banner_animated_url;
r9.logoURL = a0.logo_url;
r9.ctaText = a0.cta_text;
r9.ctaRoute = a0.cta_route;
r9.isDismissible = a0.is_dismissible;
r9.dismissibleContentVersion = a0.dismissible_content_version;
return r9;
}
}
export { WideBannerBlockRecord };