import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
import { RoomVisitsData } from './RoomVisitsData';

export class RoomVisitsMessageParser implements IMessageParser
{
    private _data: RoomVisitsData;

    public flush(): boolean
    {
        return true;
    }

    public parse(wrapper: IMessageDataWrapper): boolean
    {
        this._data = new RoomVisitsData(wrapper);
        return true;
    }

    public get data(): RoomVisitsData
    {
        return this._data;
    }
}
