﻿using Railgun.Common.Chat.Events;

namespace Railgun.Common.Chat.Users.Events
{
    public class ChatUserDisconnectedEvent : ChatEvent, IHasChatUser, IHasChatUserRemove
    {
        public ChatUser User { get; private set; }
        public ChatSession Session { get; private set; }
        public ChatUserRemove UserRemove { get; private set; }

        public ChatUserDisconnectedEvent(ChatUser user, ChatSession session, ChatUserRemove mode)
        {
            User = user;
            Session = session;
            UserRemove = mode;
        }

        public override string ToString()
        {
            return base.ToString() + " " + User.Username;
        }
    }
}
