Class PrivateMessage
A private message sent to a channel or directly to a user
Inherited Members
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 SourcePrivateMessage(ParsedIrcMessage)
Creates a new instance from an incoming server message
Declaration
public PrivateMessage(ParsedIrcMessage parsedMessage)
Parameters
Type | Name | Description |
---|---|---|
ParsedIrcMessage | parsedMessage | Incoming message |
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 SourceFrom
Nick of the sender
Declaration
public string From { get; }
Property Value
Type | Description |
---|---|
System.String |
IsChannelMessage
Indicates if the message was sent to a channel, not a person
Declaration
public bool IsChannelMessage { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Message
Body of the message
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System.String |
Prefix
Additional information about the sender
Declaration
public IrcPrefix Prefix { get; }
Property Value
Type | Description |
---|---|
IrcPrefix |
Target
Declaration
public string Target { get; }
Property Value
Type | Description |
---|---|
System.String |
To
Channel or nick message was sent to
Declaration
public string To { get; }
Property Value
Type | Description |
---|---|
System.String |
Tokens
Declaration
public IEnumerable<string> Tokens { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |