import { IMessageEvent } from '@nitrots/api';
import { MessageEvent } from '@nitrots/events';
import { JoiningQueueFailedMessageParser } from '../../../parser';

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

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