Show / Hide Table of Contents

Interface IModeratorPanel

An IModeratorPanel is a collection of events that can happen on the cluster moderator. It can be used by either a GUI or command-line moderator panel to modify the data stored in Cluster.

Namespace: peno_cluster_moderator
Assembly: peno_cluster_moderator.dll
Syntax
public interface IModeratorPanel

Methods

| Improve this Doc View Source

AddWord(String)

Add the given word to the blacklisted words.

Declaration
void AddWord(string word)
Parameters
Type Name Description
System.String word

The word to add.

| Improve this Doc View Source

BlockUser(String, DateTime)

Block the user with the given id and remember the data at which he/she was blocked.

Declaration
void BlockUser(string userId, DateTime date)
Parameters
Type Name Description
System.String userId

The id of the user.

System.DateTime date

The time of blocking the user.

| Improve this Doc View Source

GetBlackList()

Get a list of strings with all the blacklisted words.

Declaration
List<string> GetBlackList()
Returns
Type Description
System.Collections.Generic.List<System.String>

A list of all the blacklisted words.

| Improve this Doc View Source

GetBlockedUsers()

Get a list of 2-tuples (id,date) with all the blocked users.

Declaration
List<(string, DateTime)> GetBlockedUsers()
Returns
Type Description
System.Collections.Generic.List<System.ValueTuple<System.String, System.DateTime>>

A list of 2-tuples (id,date) with all the blocked users.

| Improve this Doc View Source

GetReportedQA()

Get a list of 3-tuples (id,question,answer) with all the reported QA-pairs.

Declaration
List<(string, string, string)> GetReportedQA()
Returns
Type Description
System.Collections.Generic.List<System.ValueTuple<System.String, System.String, System.String>>

A list of 3-tuples (id,question,answer) with all the reported QA-pairs.

| Improve this Doc View Source

OffensiveReportedQA((String, String, String))

Decide that the QA-pair is offensive.

Declaration
void OffensiveReportedQA((string, string, string) reportedQ)
Parameters
Type Name Description
System.ValueTuple<System.String, System.String, System.String> reportedQ
| Improve this Doc View Source

RemoveWord(String)

Remove the given word from the blacklisted words.

Declaration
void RemoveWord(string word)
Parameters
Type Name Description
System.String word

The word to remove from the blacklisted words.

| Improve this Doc View Source

SafeReportedQA((String, String, String))

Decide that the QA-pair is safe.

Declaration
void SafeReportedQA((string, string, string) reportedQA)
Parameters
Type Name Description
System.ValueTuple<System.String, System.String, System.String> reportedQA

The QA-pair to mark as safe, a 3-tuple (id,question,answer).

| Improve this Doc View Source

UnblockUser(String)

Unblock the user with the given id.

Declaration
void UnblockUser(string userId)
Parameters
Type Name Description
System.String userId

The id of the user.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX