Class ReportListener
A listener used to notify an event onto a collection of reported Q&As.
Inheritance
System.Object
ReportListener
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: peno_cluster_moderator
Assembly: peno_cluster_moderator.dll
Syntax
public class ReportListener : IReportListener, IUpdateListener<(string, string, string)>
Constructors
| Improve this Doc View SourceReportListener(IModeratorPanel)
Create a new ReportListener that knows about an IModeratorPanel
Declaration
public ReportListener(IModeratorPanel moderatorPanel)
Parameters
Type | Name | Description |
---|---|---|
IModeratorPanel | moderatorPanel | An IModeratorPanel with reported QAs in it. |
Methods
| Improve this Doc View SourceAddEvent((String, String, String))
Flag the given word (3-tuple (id,question,answer)) as offensive.
Declaration
public void AddEvent((string, string, string) word)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.String, System.String, System.String> | word | The word to flag. |
RemoveEvent((String, String, String))
Flag the given word (3-tuple (id,question,answer)) as safe.
Declaration
public void RemoveEvent((string, string, string) word)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.String, System.String, System.String> | word | The word to flag. |