internal Message(S22.Xmpp.Core.Message message) : base(null, null, null, null, null) { this.timestamp = DateTime.Now; message.ThrowIfNull <S22.Xmpp.Core.Message>("message"); this.type = this.ParseType(message.Data.GetAttribute("type")); base.element = message.Data; this.AlternateSubjects = new XmlDictionary(base.element, "subject", "xml:lang"); this.AlternateBodies = new XmlDictionary(base.element, "body", "xml:lang"); }
/// <summary> /// Initializes a new instance of the MessageEventArgs class. /// </summary> /// <param name="stanza">The Message stanza on whose behalf the event is /// raised.</param> /// <exception cref="ArgumentNullException">The stanza parameter /// is null.</exception> public MessageEventArgs(Message stanza) { stanza.ThrowIfNull("stanza"); Stanza = stanza; }
/// <summary> /// Initializes a new instance of the MessageEventArgs class. /// </summary> /// <param name="stanza">The Message stanza on whose behalf the event is /// raised.</param> /// <exception cref="ArgumentNullException">The stanza parameter /// is null.</exception> public MessageEventArgs(Message stanza) { stanza.ThrowIfNull("stanza"); Stanza = stanza; }
public MessageEventArgs(Message stanza) { stanza.ThrowIfNull <Message>("stanza"); this.Stanza = stanza; }