All pastes #25557 Raw Edit

Mine

public text v1 · immutable
#25557 ·published 2005-10-15 05:49 UTC
rendered paste body
using System;
using System.Xml;
using jabber;
using jabber.protocol;

namespace QueryManager.Jabber
{
	public class IQuery : Element 
	{
		public const string NS  = "jabber:x:qm";

		public IQuery(XmlDocument doc) : base("query", NS, doc) { }

		// this constructor is used by the Factory!
		public IQuery(string prefix, XmlQualifiedName qname, XmlDocument doc) : base(prefix, qname, doc) { }
	}


	public class Factory : jabber.protocol.IPacketTypes 
	{
		private static QnameType[] s_qnt = new QnameType[] 
		{
			new QnameType("query", IQuery.NS, typeof(IQuery))
			// Add other types here, perhaps sub-elements of query...
		};

		QnameType[] IPacketTypes.Types 
		{ 
			get { return s_qnt; } 
		}
	}
}