C# Class IrcDotNet.IrcChannel

Inheritance: INotifyPropertyChanged, IIrcMessageTarget, IIrcMessageReceiveHandler, IIrcMessageReceiver
Afficher le fichier Open project: IrcDotNet/IrcDotNet Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

GetChannelUser() public méthode

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.
Résultat IrcChannelUser

GetModes() public méthode

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. ///
Résultat void

GetTopic() public méthode

Requests the current topic of the channel.
public GetTopic ( ) : void
Résultat void

Invite() public méthode

public Invite ( IrcUser user ) : void
user IrcUser The user to invite to the channel
Résultat void

Invite() public méthode

Invites the the specified user to the channel.
public Invite ( string userNickName ) : void
userNickName string The nick name of the user to invite.
Résultat void

Kick() public méthode

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.
Résultat void

Leave() public méthode

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. ///
Résultat void

OnMessageReceived() protected méthode

Raises the MessageReceived event.
protected OnMessageReceived ( IrcMessageEventArgs e ) : void
e IrcMessageEventArgs The instance containing the event data.
Résultat void

OnModesChanged() protected méthode

Raises the ModesChanged event.
protected OnModesChanged ( IrcUserEventArgs e ) : void
e IrcUserEventArgs The instance containing the event data.
Résultat void

OnNoticeReceived() protected méthode

Raises the NoticeReceived event.
protected OnNoticeReceived ( IrcMessageEventArgs e ) : void
e IrcMessageEventArgs The instance containing the event data.
Résultat void

OnPreviewMessageReceived() protected méthode

Raises the PreviewMessageReceived event.
protected OnPreviewMessageReceived ( IrcPreviewMessageEventArgs e ) : void
e IrcPreviewMessageEventArgs The instance containing the event data.
Résultat void

OnPreviewNoticeReceived() protected méthode

Raises the PreviewNoticeReceived event.
protected OnPreviewNoticeReceived ( IrcPreviewMessageEventArgs e ) : void
e IrcPreviewMessageEventArgs The instance containing the event data.
Résultat void

OnPropertyChanged() protected méthode

Raises the PropertyChanged event.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs The instance containing the event data.
Résultat void

OnTopicChanged() protected méthode

Raises the TopicChanged event.
protected OnTopicChanged ( IrcUserEventArgs e ) : void
e IrcUserEventArgs The instance containing the event data.
Résultat void

OnUserInvited() protected méthode

Raises the UserInvited event.
protected OnUserInvited ( IrcUserEventArgs e ) : void
e IrcUserEventArgs The instance containing the event data.
Résultat void

OnUserJoined() protected méthode

Raises the UserJoined event.
protected OnUserJoined ( IrcChannelUserEventArgs e ) : void
e IrcChannelUserEventArgs The instance containing the event data.
Résultat void

OnUserKicked() protected méthode

Raises the UserKicked event.
protected OnUserKicked ( IrcChannelUserEventArgs e ) : void
e IrcChannelUserEventArgs The instance containing the event data.
Résultat void

OnUserLeft() protected méthode

Raises the UserLeft event.
protected OnUserLeft ( IrcChannelUserEventArgs e ) : void
e IrcChannelUserEventArgs The instance containing the event data.
Résultat void

OnUsersListReceived() protected méthode

Raises the UsersListReceived event.
protected OnUsersListReceived ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
Résultat void

SetModes() public méthode

public SetModes ( ) : void
Résultat void

SetModes() public méthode

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. ///
Résultat void

SetModes() public méthode

is . is .
public SetModes ( IEnumerable setModes, IEnumerable unsetModes, IEnumerable modeParameters = null ) : void
setModes IEnumerable
unsetModes IEnumerable
modeParameters IEnumerable
Résultat void

SetModes() public méthode

public SetModes ( string modes ) : void
modes string
Résultat void

SetModes() public méthode

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. ///
Résultat void

SetTopic() public méthode

Sets the topic of the channel to the specified text.
public SetTopic ( string newTopic ) : void
newTopic string The new topic to set.
Résultat void

ToString() public méthode

Returns a string representation of this instance.
public ToString ( ) : string
Résultat string