示例#1
0
 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");
 }
示例#2
0
		/// <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;
		}
示例#3
0
 /// <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;
 }
示例#4
0
 public MessageEventArgs(Message stanza)
 {
     stanza.ThrowIfNull <Message>("stanza");
     this.Stanza = stanza;
 }