extracted ModerationRepository interface

This commit is contained in:
Nicolas Constant 2021-02-04 01:10:04 -05:00
parent 024327ffe9
commit 3e772f2cd4
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688

View file

@ -8,7 +8,13 @@ using Newtonsoft.Json.Converters;
namespace BirdsiteLive.Domain.Repository
{
public class ModerationRepository
public interface IModerationRepository
{
ModerationTypeEnum GetModerationType(ModerationEntityTypeEnum type);
ModeratedTypeEnum CheckStatus(ModerationEntityTypeEnum type, string entity);
}
public class ModerationRepository : IModerationRepository
{
private readonly Regex[] _followersWhiteListing;
private readonly Regex[] _followersBlackListing;