Show / Hide Table of Contents

Class ReportListener

A listener used to notify an event onto a collection of reported Q&As.

Inheritance
System.Object
ReportListener
Implements
IReportListener
IUpdateListener<System.ValueTuple<System.String, System.String, System.String>>
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 Source

ReportListener(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 Source

AddEvent((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.

| Improve this Doc View Source

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.

Implements

IReportListener
IUpdateListener<T>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX