18 lines
486 B
C#
18 lines
486 B
C#
using System.Net;
|
|
|
|
namespace SharpChat.Bans;
|
|
|
|
public interface BansClient {
|
|
Task BanCreate(
|
|
BanKind kind,
|
|
TimeSpan duration,
|
|
IPAddress remoteAddr,
|
|
string? userId = null,
|
|
string? reason = null,
|
|
IPAddress? issuerRemoteAddr = null,
|
|
string? issuerUserId = null
|
|
);
|
|
Task<bool> BanRevoke(BanInfo info);
|
|
Task<BanInfo?> BanGet(string? userIdOrName = null, IPAddress? remoteAddr = null);
|
|
Task<BanInfo[]> BanGetList();
|
|
}
|