Class BlockedListener
A BlockedListener is used to modify a moderator panel when it is notified of an event.
Inheritance
System.Object
BlockedListener
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 SourceBlockedListener(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 SourceAddEvent(String)
Block the given user.
Declaration
public void AddEvent(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | The user to block. |
RemoveEvent(String)
Unblock the given user.
Declaration
public void RemoveEvent(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | The user to unblock. |