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

26 lines
726 B
TypeScript

// Metro module 5828 (f5829).
import { ShopBlockType } from "../../../_bundle/Module5829";
class CountdownTimerBlockRecord {
type = ShopBlockType.COUNTDOWN_TIMER;
constructor(a0) {
this.title = a0.title;
this.body = a0.body;
this.bannerUrl = a0.banner_url;
this.endTime = new Date(a0.end_time);
this.textColor = a0.text_color;
}
static fromServer(a0) {
const r11 = {
__proto__: CountdownTimerBlockRecord.prototype
};
r11.type = ShopBlockType.COUNTDOWN_TIMER;
r11.title = a0.title;
r11.body = a0.body;
r11.bannerUrl = a0.banner_url;
r11.endTime = new Date(a0.end_time);
r11.textColor = a0.text_color;
return r11;
}
}
export { CountdownTimerBlockRecord };