using SharpChat.Bans; using SharpChat.Users.Remote; using System; using System.Collections.Generic; using System.Linq; using System.Net; namespace SharpChat.DataProvider.Null { public class NullBanClient : IBanClient { public void CheckBan(IRemoteUser subject, IPAddress ipAddress, Action onSuccess, Action onFailure) { onSuccess(null); } public void CreateBan(IRemoteUser subject, IRemoteUser moderator, bool perma, TimeSpan duration, string reason, Action onSuccess, Action onFailure) { onSuccess(true); } public void GetBanList(Action> onSuccess, Action onFailure) { onSuccess(Enumerable.Empty()); } public void RemoveBan(IRemoteUser subject, Action onSuccess, Action onFailure) { onSuccess(false); } public void RemoveBan(IPAddress ipAddress, Action onSuccess, Action onFailure) { onSuccess(false); } } }