C# Класс IrcDotNet.IrcLocalUser

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

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

Метод Описание
GetModes ( ) : void

Requests a list of the current modes of the user.

SendMessage ( IEnumerable targets, string text ) : void

A message target may be an IrcUser, IrcChannel, or IrcTargetMask.

SendMessage ( IEnumerable targets, string text, Encoding encoding = null ) : void

Sends a message to the specified target.

SendMessage ( IIrcMessageTarget target, string text ) : void
SendMessage ( string target, string text ) : void
SendNotice ( IEnumerable targets, string text ) : void

A message target may be an IrcUser, IrcChannel, or IrcTargetMask.

SendNotice ( IEnumerable targets, string text, Encoding encoding = null ) : void

Sends a notice to the specified target.

SendNotice ( IIrcMessageTarget target, string text ) : void
SendNotice ( string target, string text ) : void
SetAway ( string text ) : void

Sets the local user as away, giving the specified message.

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

Sets the specified modes on the local user.

SetNickName ( string nickName ) : void

Sets the nick name of the local user to the specified text.

UnsetAway ( ) : void

Sets the local user as here (no longer away).

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

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

Raises the JoinedChannel event.

OnLeftChannel ( IrcChannelEventArgs e ) : void

Raises the LeftChannel event.

OnMessageReceived ( IrcMessageEventArgs e ) : void

Raises the MessageReceived event.

OnMessageSent ( IrcMessageEventArgs e ) : void

Raises the MessageSent event.

OnModesChanged ( EventArgs e ) : void

Raises the ModesChanged event.

OnNoticeReceived ( IrcMessageEventArgs e ) : void

Raises the NoticeReceived event.

OnNoticeSent ( IrcMessageEventArgs e ) : void

Raises the NoticeSent event.

OnPreviewMessageReceived ( IrcPreviewMessageEventArgs e ) : void

Raises the PreviewMessageReceived event.

OnPreviewNoticeReceived ( IrcPreviewMessageEventArgs e ) : void

Raises the PreviewNoticeReceived event.

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

Метод Описание
HandleJoinedChannel ( IrcChannel channel ) : void
HandleLeftChannel ( IrcChannel channel ) : void
HandleMessageReceived ( IIrcMessageSource source, IList targets, string text ) : void
HandleMessageSent ( IList targets, string text ) : void
HandleModesChanged ( string newModes ) : void
HandleNoticeReceived ( IIrcMessageSource source, IList targets, string text ) : void
HandleNoticeSent ( IList targets, string text ) : void
IIrcMessageReceiveHandler ( IIrcMessageSource source, IList targets, string text ) : void
IIrcMessageSendHandler ( IList targets, string text ) : void
IrcLocalUser ( string nickName, string distribution, string description ) : System
IrcLocalUser ( string nickName, string userName, string realName, IEnumerable modes = null ) : System

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

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

Requests a list of the current modes of the user.
public GetModes ( ) : void
Результат void

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

Raises the JoinedChannel event.
protected OnJoinedChannel ( IrcChannelEventArgs e ) : void
e IrcChannelEventArgs The instance containing the event data.
Результат void

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

Raises the LeftChannel event.
protected OnLeftChannel ( IrcChannelEventArgs e ) : void
e IrcChannelEventArgs The instance containing the event data.
Результат void

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

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

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

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

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

Raises the ModesChanged event.
protected OnModesChanged ( EventArgs e ) : void
e System.EventArgs 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

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

Raises the NoticeSent event.
protected OnNoticeSent ( 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

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

A message target may be an IrcUser, IrcChannel, or IrcTargetMask.
public SendMessage ( IEnumerable targets, string text ) : void
targets IEnumerable A collection of targets to which to send the message.
text string
Результат void

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

Sends a message to the specified target.
is . is .
public SendMessage ( IEnumerable targets, string text, Encoding encoding = null ) : void
targets IEnumerable A collection of the names of targets to which to send the message.
text string The ASCII-encoded text of the message to send.
encoding System.Text.Encoding The encoding in which to send the value of .
Результат void

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

public SendMessage ( IIrcMessageTarget target, string text ) : void
target IIrcMessageTarget The to which to send the message.
text string
Результат void

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

public SendMessage ( string target, string text ) : void
target string The name of the target to which to send the message.
text string
Результат void

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

A message target may be an IrcUser, IrcChannel, or IrcTargetMask.
public SendNotice ( IEnumerable targets, string text ) : void
targets IEnumerable A collection of targets to which to send the notice.
text string
Результат void

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

Sends a notice to the specified target.
is . is .
public SendNotice ( IEnumerable targets, string text, Encoding encoding = null ) : void
targets IEnumerable A collection of the names of targets to which to send the notice.
text string The ASCII-encoded text of the notice to send.
encoding System.Text.Encoding The encoding in which to send the value of .
Результат void

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

public SendNotice ( IIrcMessageTarget target, string text ) : void
target IIrcMessageTarget The to which to send the notice.
text string
Результат void

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

public SendNotice ( string target, string text ) : void
target string The name of the target to which to send the notice.
text string
Результат void

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

Sets the local user as away, giving the specified message.
is .
public SetAway ( string text ) : void
text string The text of the response sent to a user when they try to message you while away.
Результат 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 ) : void
setModes IEnumerable
unsetModes IEnumerable
Результат void

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

Sets the specified modes on the local user.
is .
public SetModes ( string modes ) : void
modes string /// The mode string that specifies mode changes, which takes the form /// `( "+" / "-" ) *( mode character )`. ///
Результат void

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

Sets the nick name of the local user to the specified text.
is .
public SetNickName ( string nickName ) : void
nickName string The new nick name of the local user.
Результат void

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

Sets the local user as here (no longer away).
public UnsetAway ( ) : void
Результат void