Show / Hide Table of Contents

Class BlockedListener

A BlockedListener is used to modify a moderator panel when it is notified of an event.

Inheritance
System.Object
BlockedListener
Implements
IBlockedListener
IUpdateListener<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 BlockedListener : IBlockedListener, IUpdateListener<string>

Constructors

| Improve this Doc View Source

BlockedListener(IModeratorPanel)

Create a new BlockedListener that knows about an IModeratorPanel

Declaration
public BlockedListener(IModeratorPanel moderatorPanel)
Parameters
Type Name Description
IModeratorPanel moderatorPanel

An IModeratorPanel with blocked users in it.

Methods

| Improve this Doc View Source

AddEvent(String)

Block the given user.

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

The user to block.

| Improve this Doc View Source

RemoveEvent(String)

Unblock the given user.

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

The user to unblock.

Implements

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