15 lines
753 B
C#
15 lines
753 B
C#
|
using SharpChat.Users.Remote;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Net;
|
|||
|
|
|||
|
namespace SharpChat.Bans {
|
|||
|
public interface IBanClient {
|
|||
|
void GetBanList(Action<IEnumerable<IBanRecord>> onSuccess, Action<Exception> onFailure);
|
|||
|
void CheckBan(IRemoteUser subject, IPAddress ipAddress, Action<IBanRecord> onSuccess, Action<Exception> onFailure);
|
|||
|
void CreateBan(IRemoteUser subject, IRemoteUser moderator, bool perma, TimeSpan duration, string reason, Action<bool> onSuccess, Action<Exception> onFailure);
|
|||
|
void RemoveBan(IRemoteUser subject, Action<bool> onSuccess, Action<Exception> onFailure);
|
|||
|
void RemoveBan(IPAddress ipAddress, Action<bool> onSuccess, Action<Exception> onFailure);
|
|||
|
}
|
|||
|
}
|