C# Класс Squishy.Irc.IrcChannel

Наследование: IComparable, ChatTarget
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
BanMasks BanEntry>.IDictionary
Privileges UserPrivSet>.IDictionary
UnbanTimers UnbanTimer>.IDictionary
Users IrcUser>.IDictionary

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

Метод Описание
CompareTo ( object channel ) : int
GetEnumerator ( ) : IEnumerator
GetHighestPriv ( IrcUser user ) : Privilege
GetModes ( ) : string

Returns the modes that are set on this channel.

GetPrivs ( IrcUser user ) : UserPrivSet
GetUser ( string nick ) : IrcUser

Returns the User with the specified nick who is in this Channel or null if there is no such User.

HasMode ( string modes ) : bool

Returns wether or not this channel has the specified flags, independent on their sequence.

HasOp ( IrcUser user ) : bool
HasOp ( string nick ) : bool
HasPriv ( IrcUser user, Privilege priv ) : bool
HasUser ( string nick ) : bool

Returns wether or not a User with the specified nick is on this Channel.

HasVoice ( IrcUser user ) : bool
HasVoice ( string nick ) : bool
IrcChannel ( IrcClient irc, string name ) : System
Is ( string name ) : bool

Compares this channel'str name with the specified string case-insensitively.

IsBanned ( string Banmask ) : bool

Indicates wether or not the specified banmask has been set on this Channel.

IsUser ( IrcUser user, Privilege priv ) : bool
IsUser ( string nick, Privilege priv ) : bool
IsUserAtLeast ( IrcUser user, Privilege priv ) : bool
IsUserAtLeast ( string nick, Privilege priv ) : bool
Msg ( object format ) : void
Notice ( string line ) : void
ToString ( ) : string
this ( string nick ) : IrcUser

Returns a User within this channel with the corresponding nick.

Защищенные методы

Метод Описание
OnNotice ( IrcUser user, IrcChannel channel, StringStream text ) : void

Fires when the Client receives any kind of NOTICE.

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

Метод Описание
AddFlag ( Privilege priv, IrcUser user ) : void
AddMode ( string mode, string args ) : void
AddNames ( string nickString ) : Squishy.Irc.IrcUser[]
AddUnbanTimer ( UnbanTimer timer ) : void
AddUser ( IrcUser user ) : void
AddUser ( IrcUser user, string flags ) : void
BanListCompleteNotify ( ) : void
BanListEntrySentNotify ( BanEntry entry ) : void
ChanCreationTimeSentNotify ( System.DateTime creationTime ) : void
ClearModes ( ) : void
DeleteFlag ( Privilege priv, IrcUser user ) : void
DeleteMode ( string mode ) : void
DeleteUser ( IrcUser user ) : void
ElapsUnbanTimer ( UnbanTimer timer ) : void
FlagAddedNotify ( IrcUser user, Privilege priv, IrcUser target ) : void
FlagDeletedNotify ( IrcUser user, Privilege priv, IrcUser target ) : void
ModeAddedNotify ( IrcUser user, string mode, string param ) : void
ModeDeletedNotify ( IrcUser user, string mode, string param ) : void
MsgReceivedNotify ( IrcUser user, StringStream text ) : void
NoticeNotify ( IrcUser user, IrcChannel channel, StringStream text ) : void
NoticeReceivedNotify ( IrcUser user, StringStream text ) : void
OnNickChange ( IrcUser user, string oldNick ) : void
SetCreationTime ( System.DateTime when ) : void
SetTopic ( string text ) : void
TextNotify ( IrcUser user, StringStream text ) : void
TopicChangedNotify ( IrcUser user, string text, bool initial ) : void
UserJoinedNotify ( IrcUser user ) : void
UserKickedNotify ( IrcUser from, IrcUser target, string reason ) : void
UserLeftNotify ( IrcUser user, string reason ) : void
UserPartedNotify ( IrcUser user, string reason ) : void
UsersAddedNotify ( IrcUser users ) : void

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

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

public CompareTo ( object channel ) : int
channel object
Результат int

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

public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

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

public GetHighestPriv ( IrcUser user ) : Privilege
user IrcUser
Результат Privilege

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

Returns the modes that are set on this channel.
public GetModes ( ) : string
Результат string

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

public GetPrivs ( IrcUser user ) : UserPrivSet
user IrcUser
Результат UserPrivSet

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

Returns the User with the specified nick who is in this Channel or null if there is no such User.
public GetUser ( string nick ) : IrcUser
nick string
Результат IrcUser

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

Returns wether or not this channel has the specified flags, independent on their sequence.
public HasMode ( string modes ) : bool
modes string
Результат bool

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

public HasOp ( IrcUser user ) : bool
user IrcUser
Результат bool

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

public HasOp ( string nick ) : bool
nick string
Результат bool

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

public HasPriv ( IrcUser user, Privilege priv ) : bool
user IrcUser
priv Privilege
Результат bool

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

Returns wether or not a User with the specified nick is on this Channel.
public HasUser ( string nick ) : bool
nick string
Результат bool

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

public HasVoice ( IrcUser user ) : bool
user IrcUser
Результат bool

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

public HasVoice ( string nick ) : bool
nick string
Результат bool

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

public IrcChannel ( IrcClient irc, string name ) : System
irc IrcClient
name string
Результат System

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

Compares this channel'str name with the specified string case-insensitively.
public Is ( string name ) : bool
name string
Результат bool

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

Indicates wether or not the specified banmask has been set on this Channel.
public IsBanned ( string Banmask ) : bool
Banmask string
Результат bool

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

public IsUser ( IrcUser user, Privilege priv ) : bool
user IrcUser
priv Privilege
Результат bool

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

public IsUser ( string nick, Privilege priv ) : bool
nick string
priv Privilege
Результат bool

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

public IsUserAtLeast ( IrcUser user, Privilege priv ) : bool
user IrcUser
priv Privilege
Результат bool

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

public IsUserAtLeast ( string nick, Privilege priv ) : bool
nick string
priv Privilege
Результат bool

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

public Msg ( object format ) : void
format object
Результат void

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

public Notice ( string line ) : void
line string
Результат void

OnNotice() защищенный Метод

Fires when the Client receives any kind of NOTICE.
protected OnNotice ( IrcUser user, IrcChannel channel, StringStream text ) : void
user IrcUser The User who sent the text
channel IrcChannel The Channel where it was sent (can be null)
text StringStream The text which was sent
Результат void

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

public ToString ( ) : string
Результат string

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

Returns a User within this channel with the corresponding nick.
public this ( string nick ) : IrcUser
nick string
Результат IrcUser

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

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

public IDictionary BanMasks
Результат BanEntry>.IDictionary

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

public IDictionary Privileges
Результат UserPrivSet>.IDictionary

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

public IDictionary UnbanTimers
Результат UnbanTimer>.IDictionary

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

public IDictionary Users
Результат IrcUser>.IDictionary