⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rosterquery.cs

📁 客户关系管理系统.呀不错的文件中间件编程上载质量高而且本站没有的源码
💻 CS
字号:
using System;

namespace gowk.core.packets.querys
{
	[System.Serializable]
	public class RosterQuery:Query
	{
		private Item[] items;
		public Item[] Items
		{
			get{return this.items;}
			set{this.items=value;}
		}
	}
	public class Item
	{
		string _jid,_name,_group,_ask, _subscription;
		string _action;

		[System.Xml.Serialization.XmlElement("group")]
		public string Group
		{
			get{return this._group;}
			set{this._group=value;}
		}

		[System.Xml.Serialization.XmlAttribute("jid")]
		public string Jid
		{
			get{return this._jid;}
			set{this._jid=value;}
		}

		[System.Xml.Serialization.XmlAttribute("name")]
		public string Name
		{
			get{return this._name;}
			set{this._name=value;}
		}

		[System.Xml.Serialization.XmlAttribute("subscription")]
		public string Subscription
		{
			get{return this._subscription;}
			set{this._subscription=value;}
		}
		[System.Xml.Serialization.XmlAttribute("action")]
		public string Action
		{
			get{return this._action;}
			set{this._action=value;}
		}
		[System.Xml.Serialization.XmlAttribute("ask")]
		public string Ask
		{
			get{return this._ask;}
			set{this._ask=value;}
		}
	}
	public class RosterItemCollection:System.Collections.Hashtable
	{
		public Item this[string jid]
		{
			get{return (Item)base[Jid.GetBareJid(jid)];}
			set{base[Jid.GetBareJid(jid)]=value;}
		}
		public Item this[Jid jid]
		{
			get{return (Item)base[jid.ToString(false)];}
			set{base[jid.ToString(false)]=value;}
		}
		public new System.Collections.IEnumerable GetEnumerator()
		{
			return new System.Collections.ArrayList(base.Values);
		}
		public void Add(Item itm)
		{
			base.Add(gowk.core.Jid.GetBareJid(itm.Jid),itm);
		}
	}
	public class RosterGroup
	{
		public RosterGroup()
		{
		}
		public RosterGroup(string name)
		{
			this.Name=name;
		}
		RosterItemCollection items=new RosterItemCollection();
		public string Name;
		public RosterItemCollection Items
		{
			get{return this.items;}
		}
	}
	public class RosterGroupCollection:System.Collections.Hashtable
	{
		public RosterGroup this[string groupname]
		{
			get{return (RosterGroup)base[groupname];}
			set{base[groupname]=value;}
		}
		public new System.Collections.IEnumerable GetEnumerator()
		{
			return new System.Collections.ArrayList(this.Values);
		}

	}
	public class Ask
	{
		public const string Subscribe="subscribe";
	}
	public class Subscription
	{
		public const string none="none";
		public const string to="to";
		public const string from="from";
		public const string both="both";
		public const string remove="remove";
	}
	public class Action
	{
		public const string allow="allow";
		public const string deny="deny";
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -