sharp-chat/SharpChat.Common/Events/IPBanRemovedEvent.cs

16 lines
399 B
C#
Raw Normal View History

2022-08-30 15:05:29 +00:00
using System;
using System.Net;
namespace SharpChat.Events {
[Event(TYPE)]
public class IPBanRemovedEvent : Event {
public const string TYPE = @"ban:remove:ip";
public IPAddress IPAddress { get; }
public IPBanRemovedEvent(IPAddress ipAddress) : base() {
IPAddress = ipAddress ?? throw new ArgumentNullException(nameof(ipAddress));
}
}
}