nitro-react/src/events/catalog/CatalogPurchaseFailureEvent.ts

21 lines
416 B
TypeScript
Raw Normal View History

2022-02-01 07:58:19 +01:00
import { NitroEvent } from '@nitrots/nitro-renderer';
2021-05-10 19:11:16 +02:00
2022-02-01 07:58:19 +01:00
export class CatalogPurchaseFailureEvent extends NitroEvent
2021-05-10 19:11:16 +02:00
{
2022-02-01 07:58:19 +01:00
public static PURCHASE_FAILED: string = 'CPFE_PURCHASE_FAILED';
2021-05-10 19:11:16 +02:00
private _code: number;
constructor(code: number)
{
2022-02-01 07:58:19 +01:00
super(CatalogPurchaseFailureEvent.PURCHASE_FAILED);
2021-05-10 19:11:16 +02:00
this._code = code;
}
public get code(): number
{
return this._code;
}
}