Class IrcMessage
Inheritance
System.Object
IrcMessage
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
public abstract class IrcMessage
Properties
| Improve this Doc View SourceDateReceived
Date when message came in or was spawned
Declaration
public DateTime DateReceived { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Methods
| Improve this Doc View SourceCreate(ParsedIrcMessage)
Declaration
public static IServerMessage Create(ParsedIrcMessage parsedMessage)
Parameters
Type | Name | Description |
---|---|---|
ParsedIrcMessage | parsedMessage |
Returns
Type | Description |
---|---|
IServerMessage |
RegisterServerMessageType(Type)
Register an additional server message type
Declaration
public static void RegisterServerMessageType(Type messageType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | messageType | Type of message to add |
Remarks
Used to extend built-in message types
RegisterServerMessageType(Type, String)
Register an additional server message type
Declaration
public static void RegisterServerMessageType(Type messageType, string command)
Parameters
Type | Name | Description |
---|---|---|
System.Type | messageType | Type of message to add |
System.String | command | IRC command to associate message type with |
Remarks
Used to extend built-in message types
RegisterServerMessageType<TMessage>()
Register an additional server message type
Declaration
public static void RegisterServerMessageType<TMessage>()
where TMessage : IServerMessage
Type Parameters
Name | Description |
---|---|
TMessage | Type of message to add |
Remarks
Used to extend built-in message types
RegisterServerMessageType<TMessage>(String)
Register an additional server message type
Declaration
public static void RegisterServerMessageType<TMessage>(string command)
where TMessage : IServerMessage
Parameters
Type | Name | Description |
---|---|---|
System.String | command | IRC command to associate message type with |
Type Parameters
Name | Description |
---|---|
TMessage | Type of message to add |
Remarks
Used to extend built-in message types
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()