﻿using Railgun.Common.Chat.Events;
using Railgun.Common.Chat.Users;

namespace Railgun.Common.Chat.Channels.Events
{
    public class ChatChannelJoinEvent : ChatEvent, IHasChatUser, IHasChatChannel
    {
        public ChatUser User { get; private set; }
        public ChatChannel Channel { get; private set; }
        public bool Initial { get; private set; }

        public ChatChannelJoinEvent(ChatChannel channel, ChatUser user, bool initial = false)
        {
            Channel = channel;
            User = user;
            Initial = initial;
        }

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