import {IMessageEvent} from "../../../../../api";
import {MessageEvent} from "../../../../../events";
import {PurchaseErrorMessageParser} from "../../parser";

export class PurchaseErrorMessageEvent extends MessageEvent implements IMessageEvent {
  constructor(callBack: Function) {
    super(callBack, PurchaseErrorMessageParser);
  }

  public getParser(): PurchaseErrorMessageParser {
    return this.parser as PurchaseErrorMessageParser;
  }
}
