C# Класс IrcDotNet.IrcChannel

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

Private Properties

Свойство Тип Описание
HandleMessageReceived void
HandleModesChanged void
HandleNoticeReceived void
HandleTopicChanged void
HandleTypeChanged void
HandleUserInvited void
HandleUserJoined void
HandleUserKicked void
HandleUserKicked void
HandleUserLeft void
HandleUserLeft void
HandleUserNameReply void
HandleUserQuit void
HandleUsersListReceived void
IIrcMessageReceiveHandler void
IrcChannel System

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

Метод Описание
GetChannelUser ( IrcUser user ) : IrcChannelUser

Gets the IrcChannelUser in the channel that corresponds to the specified IrcUser, or if none is found.

GetModes ( string modes = null ) : void

Requests a list of the current modes of the channel, or if modes is specified, the settings for the specified modes.

GetTopic ( ) : void

Requests the current topic of the channel.

Invite ( IrcUser user ) : void
Invite ( string userNickName ) : void

Invites the the specified user to the channel.

Kick ( string userNickName, string comment = null ) : void

Kicks the specified user from the channel, giving the specified comment.

Leave ( string comment = null ) : void

Leaves the channel, giving the specified comment.

SetModes ( ) : void
SetModes ( IEnumerable newModes ) : void
SetModes ( IEnumerable setModes, IEnumerable unsetModes, IEnumerable modeParameters = null ) : void
SetModes ( string modes ) : void
SetModes ( string modes, IEnumerable modeParameters = null ) : void

Sets the specified modes on the channel.

SetTopic ( string newTopic ) : void

Sets the topic of the channel to the specified text.

ToString ( ) : string

Returns a string representation of this instance.

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

Метод Описание
OnMessageReceived ( IrcMessageEventArgs e ) : void

Raises the MessageReceived event.

OnModesChanged ( IrcUserEventArgs e ) : void

Raises the ModesChanged event.

OnNoticeReceived ( IrcMessageEventArgs e ) : void

Raises the NoticeReceived event.

OnPreviewMessageReceived ( IrcPreviewMessageEventArgs e ) : void

Raises the PreviewMessageReceived event.

OnPreviewNoticeReceived ( IrcPreviewMessageEventArgs e ) : void

Raises the PreviewNoticeReceived event.

OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the PropertyChanged event.

OnTopicChanged ( IrcUserEventArgs e ) : void

Raises the TopicChanged event.

OnUserInvited ( IrcUserEventArgs e ) : void

Raises the UserInvited event.

OnUserJoined ( IrcChannelUserEventArgs e ) : void

Raises the UserJoined event.

OnUserKicked ( IrcChannelUserEventArgs e ) : void

Raises the UserKicked event.

OnUserLeft ( IrcChannelUserEventArgs e ) : void

Raises the UserLeft event.

OnUsersListReceived ( EventArgs e ) : void

Raises the UsersListReceived event.

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

Метод Описание
HandleMessageReceived ( IIrcMessageSource source, IList targets, string text ) : void
HandleModesChanged ( IrcUser source, string newModes, IEnumerable newModeParameters ) : void
HandleNoticeReceived ( IIrcMessageSource source, IList targets, string text ) : void
HandleTopicChanged ( IrcUser source, string newTopic ) : void
HandleTypeChanged ( IrcChannelType type ) : void
HandleUserInvited ( IrcUser user ) : void
HandleUserJoined ( IrcChannelUser channelUser ) : void
HandleUserKicked ( IrcChannelUser channelUser, string comment ) : void
HandleUserKicked ( IrcUser user, string comment ) : void
HandleUserLeft ( IrcChannelUser channelUser, string comment ) : void
HandleUserLeft ( IrcUser user, string comment ) : void
HandleUserNameReply ( IrcChannelUser channelUser ) : void
HandleUserQuit ( IrcChannelUser channelUser, string comment ) : void
HandleUsersListReceived ( ) : void
IIrcMessageReceiveHandler ( IIrcMessageSource source, IList targets, string text ) : void
IrcChannel ( string name ) : System

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

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

Gets the IrcChannelUser in the channel that corresponds to the specified IrcUser, or if none is found.
is .
public GetChannelUser ( IrcUser user ) : IrcChannelUser
user IrcUser The for which to look.
Результат IrcChannelUser

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

Requests a list of the current modes of the channel, or if modes is specified, the settings for the specified modes.
public GetModes ( string modes = null ) : void
modes string /// The modes for which to get the current settings, or for all /// current channel modes. ///
Результат void

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

Requests the current topic of the channel.
public GetTopic ( ) : void
Результат void

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

public Invite ( IrcUser user ) : void
user IrcUser The user to invite to the channel
Результат void

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

Invites the the specified user to the channel.
public Invite ( string userNickName ) : void
userNickName string The nick name of the user to invite.
Результат void

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

Kicks the specified user from the channel, giving the specified comment.
public Kick ( string userNickName, string comment = null ) : void
userNickName string The nick name of the user to kick from the channel.
comment string The comment to give for the kick, or for none.
Результат void

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

Leaves the channel, giving the specified comment.
public Leave ( string comment = null ) : void
comment string /// The comment to send the server upon leaving the channel, or for /// no comment. ///
Результат void

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

Raises the MessageReceived event.
protected OnMessageReceived ( IrcMessageEventArgs e ) : void
e IrcMessageEventArgs The instance containing the event data.
Результат void

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

Raises the ModesChanged event.
protected OnModesChanged ( IrcUserEventArgs e ) : void
e IrcUserEventArgs The instance containing the event data.
Результат void

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

Raises the NoticeReceived event.
protected OnNoticeReceived ( IrcMessageEventArgs e ) : void
e IrcMessageEventArgs The instance containing the event data.
Результат void

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

Raises the PreviewMessageReceived event.
protected OnPreviewMessageReceived ( IrcPreviewMessageEventArgs e ) : void
e IrcPreviewMessageEventArgs The instance containing the event data.
Результат void

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

Raises the PreviewNoticeReceived event.
protected OnPreviewNoticeReceived ( IrcPreviewMessageEventArgs e ) : void
e IrcPreviewMessageEventArgs The instance containing the event data.
Результат void

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

Raises the PropertyChanged event.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs The instance containing the event data.
Результат void

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

Raises the TopicChanged event.
protected OnTopicChanged ( IrcUserEventArgs e ) : void
e IrcUserEventArgs The instance containing the event data.
Результат void

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

Raises the UserInvited event.
protected OnUserInvited ( IrcUserEventArgs e ) : void
e IrcUserEventArgs The instance containing the event data.
Результат void

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

Raises the UserJoined event.
protected OnUserJoined ( IrcChannelUserEventArgs e ) : void
e IrcChannelUserEventArgs The instance containing the event data.
Результат void

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

Raises the UserKicked event.
protected OnUserKicked ( IrcChannelUserEventArgs e ) : void
e IrcChannelUserEventArgs The instance containing the event data.
Результат void

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

Raises the UserLeft event.
protected OnUserLeft ( IrcChannelUserEventArgs e ) : void
e IrcChannelUserEventArgs The instance containing the event data.
Результат void

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

Raises the UsersListReceived event.
protected OnUsersListReceived ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
Результат void

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

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

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

is .
public SetModes ( IEnumerable newModes ) : void
newModes IEnumerable /// A collection of mode characters that should become the new modes. /// Any modes in the collection that are not currently set will be set, and any nodes not in the collection that /// are currently set will be unset. ///
Результат void

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

is . is .
public SetModes ( IEnumerable setModes, IEnumerable unsetModes, IEnumerable modeParameters = null ) : void
setModes IEnumerable
unsetModes IEnumerable
modeParameters IEnumerable
Результат void

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

public SetModes ( string modes ) : void
modes string
Результат void

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

Sets the specified modes on the channel.
is .
public SetModes ( string modes, IEnumerable modeParameters = null ) : void
modes string /// The mode string that specifies mode changes, which takes the form /// `( "+" / "-" ) *( mode character )`. ///
modeParameters IEnumerable /// A collection of parameters to he modes, or for no /// parameters. ///
Результат void

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

Sets the topic of the channel to the specified text.
public SetTopic ( string newTopic ) : void
newTopic string The new topic to set.
Результат void

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

Returns a string representation of this instance.
public ToString ( ) : string
Результат string