C# Класс RohBot.Rooms.Room

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DisableBanning bool
IsHidden bool
IsLogging bool
IsPrivate bool
IsWhitelisted bool
RoomInfo RoomInfo
ShowWebStates bool

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AddHistory ( HistoryLine line ) : void
ClearScrollbackFor ( Connection connection ) : void

Описание методов

Ban() публичный Метод

public Ban ( string name ) : void
name string
Результат void

Demod() публичный Метод

public Demod ( string name ) : void
name string
Результат void

GetHistoryLines() публичный Метод

Called by SendHistory.
public GetHistoryLines ( Connection connection ) : List
connection Connection
Результат List

IsBanned() публичный Метод

public IsBanned ( string name ) : bool
name string
Результат bool

IsMod() публичный Метод

public IsMod ( string name ) : bool
name string
Результат bool

Leave() публичный Метод

Called when leaving the room. Must call base.
public Leave ( ) : void
Результат void

Mod() публичный Метод

public Mod ( string name ) : void
name string
Результат void

Room() публичный Метод

public Room ( RoomInfo roomInfo ) : System
roomInfo RoomInfo
Результат System

Send() публичный Метод

Send a message as the bot. Should call base.
public Send ( string str ) : void
str string
Результат void

SendHistory() публичный Метод

Called when somebody joins the room. Should call base.
public SendHistory ( Connection connection ) : void
connection Connection
Результат void

SendLine() публичный Метод

Called when a message is being sent to the room. Should call base.
public SendLine ( HistoryLine line ) : void
line HistoryLine
Результат void

SendLineFilter() публичный Метод

Filter sessions which receive lines from SendLine.
public SendLineFilter ( HistoryLine line, IEnumerable sessions ) : IEnumerable
line HistoryLine
sessions IEnumerable
Результат IEnumerable

SendMessage() публичный Метод

Called when somebody sends a message.
public SendMessage ( Connection connection, string message ) : void
connection Connection
message string
Результат void

SessionDisconnect() публичный Метод

public SessionDisconnect ( Session session ) : void
session Session
Результат void

SessionEnter() публичный Метод

public SessionEnter ( Session session ) : void
session Session
Результат void

SessionLeft() публичный Метод

public SessionLeft ( Session session ) : void
session Session
Результат void

Unban() публичный Метод

public Unban ( string name ) : void
name string
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

DisableBanning публичное свойство

public bool DisableBanning
Результат bool

IsHidden публичное свойство

public bool IsHidden
Результат bool

IsLogging публичное свойство

public bool IsLogging
Результат bool

IsPrivate публичное свойство

public bool IsPrivate
Результат bool

IsWhitelisted публичное свойство

public bool IsWhitelisted
Результат bool

RoomInfo публичное свойство

public RoomInfo RoomInfo
Результат RoomInfo

ShowWebStates публичное свойство

public bool ShowWebStates
Результат bool