Show / Hide Table of Contents

Class PrivateMessage

A private message sent to a channel or directly to a user

Inheritance
System.Object
IrcMessage
PrivateMessage
Implements
IServerMessage
IChannelMessage
IClientMessage
Inherited Members
IrcMessage.RegisterServerMessageType<TMessage>()
IrcMessage.RegisterServerMessageType<TMessage>(String)
IrcMessage.RegisterServerMessageType(Type)
IrcMessage.RegisterServerMessageType(Type, String)
IrcMessage.Create(ParsedIrcMessage)
IrcMessage.ToString()
IrcMessage.DateReceived
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GravyIrc.Messages
Assembly: GravyIrc.dll
Syntax
[ServerMessage("PRIVMSG")]
public class PrivateMessage : IrcMessage, IServerMessage, IChannelMessage, IClientMessage

Constructors

| Improve this Doc View Source

PrivateMessage(ParsedIrcMessage)

Creates a new instance from an incoming server message

Declaration
public PrivateMessage(ParsedIrcMessage parsedMessage)
Parameters
Type Name Description
ParsedIrcMessage parsedMessage

Incoming message

| Improve this Doc View Source

PrivateMessage(String, String)

Creates a new instance for an outbound message

Declaration
public PrivateMessage(string target, string text)
Parameters
Type Name Description
System.String target

Channel or nick to send to

System.String text

Message content

Properties

| Improve this Doc View Source

From

Nick of the sender

Declaration
public string From { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

IsChannelMessage

Indicates if the message was sent to a channel, not a person

Declaration
public bool IsChannelMessage { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Message

Body of the message

Declaration
public string Message { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Prefix

Additional information about the sender

Declaration
public IrcPrefix Prefix { get; }
Property Value
Type Description
IrcPrefix
| Improve this Doc View Source

Target

Declaration
public string Target { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

To

Channel or nick message was sent to

Declaration
public string To { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Tokens

Declaration
public IEnumerable<string> Tokens { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.String>

Implements

IServerMessage
IChannelMessage
IClientMessage
  • Improve this Doc
  • View Source
Back to top Generated by DocFX