protected GetSourceFromPrefix ( string prefix ) : IIrcMessageSource | ||
prefix | string | The raw prefix of the message. |
return | IIrcMessageSource |
/// <summary> /// Initializes a new instance of the <see cref="IrcMessage"/> structure. /// </summary> /// <param name="client">A client object that has sent/will receive the message.</param> /// <param name="prefix">The message prefix that represents the source of the message.</param> /// <param name="command">The command name; either an alphabetic word or 3-digit number.</param> /// <param name="parameters">A list of the parameters to the message. Can contain a maximum of 15 items. /// </param> public IrcMessage(IrcClient client, string prefix, string command, IList<string> parameters) { this.Prefix = prefix; this.Command = command; this.Parameters = parameters; this.Source = client.GetSourceFromPrefix(prefix); }