33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
// Metro module 5839 (f5840).
|
|
import { ShopBlockType } from "../../../_bundle/Module5829";
|
|
import { getAssetDisplayConfig } from "../CollectiblesUtils";
|
|
class RewardHeroBlockRecord {
|
|
type = ShopBlockType.REWARD_HERO;
|
|
constructor(a0) {
|
|
this.categorySkuId = a0.category_sku_id;
|
|
this.name = a0.name;
|
|
this.summary = a0.summary.trim();
|
|
this.categoryStoreListingId = a0.category_store_listing_id;
|
|
this.title = a0.title;
|
|
this.rankedSkuIds = a0.ranked_sku_ids;
|
|
this.unpublishedAt = a0.unpublished_at != null ? new Date(a0.unpublished_at) : null;
|
|
this.bannerTextColor = a0.banner_text_color;
|
|
this.mobileTitle = a0.mobile_title;
|
|
this.mobileSummary = a0.mobile_summary;
|
|
this.mobileProductsTitle = a0.mobile_products_title;
|
|
this.rewardSkuId = a0.reward_sku_id;
|
|
this.heroBannerUrl = a0.hero_banner_url;
|
|
this.heroBannerAnimatedUrl = a0.hero_banner_animated_url;
|
|
this.heroRiveUrl = a0.hero_rive_url;
|
|
this.heroLogoUrl = a0.hero_logo_url;
|
|
this.mobileHeroUrl = a0.mobile_hero_url;
|
|
this.mobileHeroAnimatedUrl = a0.mobile_hero_animated_url;
|
|
this.logoDisplayConfig = getAssetDisplayConfig(a0.logo_display_config);
|
|
this.bannerDisplayConfig = getAssetDisplayConfig(a0.banner_display_config);
|
|
}
|
|
static fromServer(a0) {
|
|
return new RewardHeroBlockRecord(a0);
|
|
}
|
|
}
|
|
export { RewardHeroBlockRecord };
|