From bdf058ab5c936463a022f62ffbb55bb71c26e856 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 12 Mar 2025 19:52:15 +0100 Subject: More work --- MatrixContentFilter/Abstractions/IContentFilter.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'MatrixContentFilter/Abstractions') diff --git a/MatrixContentFilter/Abstractions/IContentFilter.cs b/MatrixContentFilter/Abstractions/IContentFilter.cs index 108030b..8bd01ff 100644 --- a/MatrixContentFilter/Abstractions/IContentFilter.cs +++ b/MatrixContentFilter/Abstractions/IContentFilter.cs @@ -1,12 +1,15 @@ using System.Diagnostics; using LibMatrix; using LibMatrix.Responses; -using MatrixContentFilter.EventTypes; namespace MatrixContentFilter.Abstractions; -public abstract class IContentFilter -{ +public abstract class IContentFilter { + private protected abstract string GetFilterName(); + private protected abstract string GetEventTypeName(); + private protected abstract string? GetEventSubtypeName(); + private protected abstract string? GetMetricsPrefix(); + public virtual Task ProcessSyncAsync(SyncResponse syncEvent) { var type = this.GetType().FullName; Console.WriteLine($"WARNING: {type} does not implement ProcessSyncAsync(SyncResponse syncEvent)"); @@ -24,4 +27,6 @@ public abstract class IContentFilter } public int ActionCount { get; set; } = 0; + + } \ No newline at end of file -- cgit 1.5.1