C# Class RohBot.Rooms.Room

Afficher le fichier Open project: Rohansi/RohBot Class Usage Examples

Méthodes publiques

Свойство Type Description
DisableBanning bool
IsHidden bool
IsLogging bool
IsPrivate bool
IsWhitelisted bool
RoomInfo RoomInfo
ShowWebStates bool

Méthodes publiques

Méthode Description
Ban ( string name ) : void
Demod ( string name ) : void
GetHistoryLines ( Connection connection ) : List

Called by SendHistory.

IsBanned ( string name ) : bool
IsMod ( string name ) : bool
Leave ( ) : void

Called when leaving the room. Must call base.

Mod ( string name ) : void
Room ( RoomInfo roomInfo ) : System
Send ( string str ) : void

Send a message as the bot. Should call base.

SendHistory ( Connection connection ) : void

Called when somebody joins the room. Should call base.

SendLine ( HistoryLine line ) : void

Called when a message is being sent to the room. Should call base.

SendLineFilter ( HistoryLine line, IEnumerable sessions ) : IEnumerable

Filter sessions which receive lines from SendLine.

SendMessage ( Connection connection, string message ) : void

Called when somebody sends a message.

SessionDisconnect ( Session session ) : void
SessionEnter ( Session session ) : void
SessionLeft ( Session session ) : void
Unban ( string name ) : void
Update ( ) : void

Private Methods

Méthode Description
AddHistory ( HistoryLine line ) : void
ClearScrollbackFor ( Connection connection ) : void

Method Details

Ban() public méthode

public Ban ( string name ) : void
name string
Résultat void

Demod() public méthode

public Demod ( string name ) : void
name string
Résultat void

GetHistoryLines() public méthode

Called by SendHistory.
public GetHistoryLines ( Connection connection ) : List
connection Connection
Résultat List

IsBanned() public méthode

public IsBanned ( string name ) : bool
name string
Résultat bool

IsMod() public méthode

public IsMod ( string name ) : bool
name string
Résultat bool

Leave() public méthode

Called when leaving the room. Must call base.
public Leave ( ) : void
Résultat void

Mod() public méthode

public Mod ( string name ) : void
name string
Résultat void

Room() public méthode

public Room ( RoomInfo roomInfo ) : System
roomInfo RoomInfo
Résultat System

Send() public méthode

Send a message as the bot. Should call base.
public Send ( string str ) : void
str string
Résultat void

SendHistory() public méthode

Called when somebody joins the room. Should call base.
public SendHistory ( Connection connection ) : void
connection Connection
Résultat void

SendLine() public méthode

Called when a message is being sent to the room. Should call base.
public SendLine ( HistoryLine line ) : void
line HistoryLine
Résultat void

SendLineFilter() public méthode

Filter sessions which receive lines from SendLine.
public SendLineFilter ( HistoryLine line, IEnumerable sessions ) : IEnumerable
line HistoryLine
sessions IEnumerable
Résultat IEnumerable

SendMessage() public méthode

Called when somebody sends a message.
public SendMessage ( Connection connection, string message ) : void
connection Connection
message string
Résultat void

SessionDisconnect() public méthode

public SessionDisconnect ( Session session ) : void
session Session
Résultat void

SessionEnter() public méthode

public SessionEnter ( Session session ) : void
session Session
Résultat void

SessionLeft() public méthode

public SessionLeft ( Session session ) : void
session Session
Résultat void

Unban() public méthode

public Unban ( string name ) : void
name string
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

DisableBanning public_oe property

public bool DisableBanning
Résultat bool

IsHidden public_oe property

public bool IsHidden
Résultat bool

IsLogging public_oe property

public bool IsLogging
Résultat bool

IsPrivate public_oe property

public bool IsPrivate
Résultat bool

IsWhitelisted public_oe property

public bool IsWhitelisted
Résultat bool

RoomInfo public_oe property

public RoomInfo RoomInfo
Résultat RoomInfo

ShowWebStates public_oe property

public bool ShowWebStates
Résultat bool