mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 15:36:18 +00:00
🆙 Init V3
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { NitroEvent, PurchaseOKMessageOfferData } from '@nitrots/nitro-renderer';
|
||||
|
||||
export class CatalogPurchasedEvent extends NitroEvent
|
||||
{
|
||||
public static PURCHASE_SUCCESS: string = 'CPE_PURCHASE_SUCCESS';
|
||||
|
||||
private _purchase: PurchaseOKMessageOfferData;
|
||||
|
||||
constructor(purchase: PurchaseOKMessageOfferData)
|
||||
{
|
||||
super(CatalogPurchasedEvent.PURCHASE_SUCCESS);
|
||||
|
||||
this._purchase = purchase;
|
||||
}
|
||||
|
||||
public get purchase(): PurchaseOKMessageOfferData
|
||||
{
|
||||
return this._purchase;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user