10 lines
285 B
C#
10 lines
285 B
C#
|
namespace SharpChat.Bans {
|
||
|
public interface BanInfo {
|
||
|
BanKind Kind { get; }
|
||
|
bool IsPermanent { get; }
|
||
|
DateTimeOffset ExpiresAt { get; }
|
||
|
public bool HasExpired => !IsPermanent && DateTimeOffset.UtcNow >= ExpiresAt;
|
||
|
string ToString();
|
||
|
}
|
||
|
}
|