Show / Hide Table of Contents

Interface IBanRepository

Namespace: SlipeServer.Server.Bans
Assembly: SlipeServer.Server.dll
Syntax
public interface IBanRepository

Methods

| Edit this page View Source

AddBan(string?, IPAddress?, DateTime?, string?, string?, string?)

Declaration
Ban AddBan(string? serial, IPAddress? ipAddress, DateTime? expiryTimeUtc = null, string? reason = null, string? bannedPlayerName = null, string? bannerName = null)
Parameters
Type Name Description
string serial
IPAddress ipAddress
DateTime? expiryTimeUtc
string reason
string bannedPlayerName
string bannerName
Returns
Type Description
Ban
| Edit this page View Source

GetBans()

Declaration
IEnumerable<Ban> GetBans()
Returns
Type Description
IEnumerable<Ban>
| Edit this page View Source

IsIpOrSerialBanned(string?, IPAddress?, out Ban?)

Declaration
bool IsIpOrSerialBanned(string? serial, IPAddress? ipAddress, out Ban? ban)
Parameters
Type Name Description
string serial
IPAddress ipAddress
Ban ban
Returns
Type Description
bool
| Edit this page View Source

RemoveBan(Ban)

Declaration
void RemoveBan(Ban ban)
Parameters
Type Name Description
Ban ban
| Edit this page View Source

RemoveBan(Guid)

Declaration
void RemoveBan(Guid id)
Parameters
Type Name Description
Guid id
| Edit this page View Source

RemoveBans(string?, IPAddress?)

Declaration
void RemoveBans(string? serial, IPAddress? ipAddress)
Parameters
Type Name Description
string serial
IPAddress ipAddress
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX