about summary refs log tree commit diff
path: root/MatrixContentFilter/Abstractions
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-03-12 19:52:15 +0100
committerRory& <root@rory.gay>2025-03-12 19:52:15 +0100
commitbdf058ab5c936463a022f62ffbb55bb71c26e856 (patch)
tree69914accad80f10dd8d87e3738e820c58f042537 /MatrixContentFilter/Abstractions
parentInitial commit (diff)
downloadMatrixContentFilter-master.tar.xz
More work HEAD master
Diffstat (limited to 'MatrixContentFilter/Abstractions')
-rw-r--r--MatrixContentFilter/Abstractions/IContentFilter.cs11
1 files changed, 8 insertions, 3 deletions
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